2015-04-19 04:34:39 +08:00
|
|
|
# Some of the tools (perf) use same make variables
|
|
|
|
# as in kernel build.
|
|
|
|
export srctree=
|
|
|
|
export objtree=
|
|
|
|
|
2012-04-12 00:36:16 +08:00
|
|
|
include scripts/Makefile.include
|
|
|
|
|
2012-04-12 00:36:17 +08:00
|
|
|
help:
|
|
|
|
@echo 'Possible targets:'
|
|
|
|
@echo ''
|
2015-12-18 20:39:15 +08:00
|
|
|
@echo ' acpi - ACPI tools'
|
|
|
|
@echo ' cgroup - cgroup tools'
|
|
|
|
@echo ' cpupower - a tool for all things x86 CPU power'
|
|
|
|
@echo ' firewire - the userspace part of nosy, an IEEE-1394 traffic sniffer'
|
|
|
|
@echo ' freefall - laptop accelerometer program for disk protection'
|
2015-10-21 21:45:54 +08:00
|
|
|
@echo ' gpio - GPIO tools'
|
2015-12-18 20:39:15 +08:00
|
|
|
@echo ' hv - tools used when in Hyper-V clients'
|
|
|
|
@echo ' iio - IIO tools'
|
2016-05-18 19:26:21 +08:00
|
|
|
@echo ' kvm_stat - top-like utility for displaying kvm statistics'
|
2016-09-17 03:16:50 +08:00
|
|
|
@echo ' leds - LEDs tools'
|
2017-05-25 20:58:44 +08:00
|
|
|
@echo ' liblockdep - user-space wrapper for kernel locking-validator'
|
2015-12-18 20:39:15 +08:00
|
|
|
@echo ' net - misc networking tools'
|
|
|
|
@echo ' perf - Linux performance measurement and analysis tool'
|
|
|
|
@echo ' selftests - various kernel selftests'
|
2016-01-15 03:39:09 +08:00
|
|
|
@echo ' spi - spi tools'
|
objtool: Add tool to perform compile-time stack metadata validation
This adds a host tool named objtool which has a "check" subcommand which
analyzes .o files to ensure the validity of stack metadata. It enforces
a set of rules on asm code and C inline assembly code so that stack
traces can be reliable.
For each function, it recursively follows all possible code paths and
validates the correct frame pointer state at each instruction.
It also follows code paths involving kernel special sections, like
.altinstructions, __jump_table, and __ex_table, which can add
alternative execution paths to a given instruction (or set of
instructions). Similarly, it knows how to follow switch statements, for
which gcc sometimes uses jump tables.
Here are some of the benefits of validating stack metadata:
a) More reliable stack traces for frame pointer enabled kernels
Frame pointers are used for debugging purposes. They allow runtime
code and debug tools to be able to walk the stack to determine the
chain of function call sites that led to the currently executing
code.
For some architectures, frame pointers are enabled by
CONFIG_FRAME_POINTER. For some other architectures they may be
required by the ABI (sometimes referred to as "backchain pointers").
For C code, gcc automatically generates instructions for setting up
frame pointers when the -fno-omit-frame-pointer option is used.
But for asm code, the frame setup instructions have to be written by
hand, which most people don't do. So the end result is that
CONFIG_FRAME_POINTER is honored for C code but not for most asm code.
For stack traces based on frame pointers to be reliable, all
functions which call other functions must first create a stack frame
and update the frame pointer. If a first function doesn't properly
create a stack frame before calling a second function, the *caller*
of the first function will be skipped on the stack trace.
For example, consider the following example backtrace with frame
pointers enabled:
[<ffffffff81812584>] dump_stack+0x4b/0x63
[<ffffffff812d6dc2>] cmdline_proc_show+0x12/0x30
[<ffffffff8127f568>] seq_read+0x108/0x3e0
[<ffffffff812cce62>] proc_reg_read+0x42/0x70
[<ffffffff81256197>] __vfs_read+0x37/0x100
[<ffffffff81256b16>] vfs_read+0x86/0x130
[<ffffffff81257898>] SyS_read+0x58/0xd0
[<ffffffff8181c1f2>] entry_SYSCALL_64_fastpath+0x12/0x76
It correctly shows that the caller of cmdline_proc_show() is
seq_read().
If we remove the frame pointer logic from cmdline_proc_show() by
replacing the frame pointer related instructions with nops, here's
what it looks like instead:
[<ffffffff81812584>] dump_stack+0x4b/0x63
[<ffffffff812d6dc2>] cmdline_proc_show+0x12/0x30
[<ffffffff812cce62>] proc_reg_read+0x42/0x70
[<ffffffff81256197>] __vfs_read+0x37/0x100
[<ffffffff81256b16>] vfs_read+0x86/0x130
[<ffffffff81257898>] SyS_read+0x58/0xd0
[<ffffffff8181c1f2>] entry_SYSCALL_64_fastpath+0x12/0x76
Notice that cmdline_proc_show()'s caller, seq_read(), has been
skipped. Instead the stack trace seems to show that
cmdline_proc_show() was called by proc_reg_read().
The benefit of "objtool check" here is that because it ensures that
*all* functions honor CONFIG_FRAME_POINTER, no functions will ever[*]
be skipped on a stack trace.
[*] unless an interrupt or exception has occurred at the very
beginning of a function before the stack frame has been created,
or at the very end of the function after the stack frame has been
destroyed. This is an inherent limitation of frame pointers.
b) 100% reliable stack traces for DWARF enabled kernels
This is not yet implemented. For more details about what is planned,
see tools/objtool/Documentation/stack-validation.txt.
c) Higher live patching compatibility rate
This is not yet implemented. For more details about what is planned,
see tools/objtool/Documentation/stack-validation.txt.
To achieve the validation, "objtool check" enforces the following rules:
1. Each callable function must be annotated as such with the ELF
function type. In asm code, this is typically done using the
ENTRY/ENDPROC macros. If objtool finds a return instruction
outside of a function, it flags an error since that usually indicates
callable code which should be annotated accordingly.
This rule is needed so that objtool can properly identify each
callable function in order to analyze its stack metadata.
2. Conversely, each section of code which is *not* callable should *not*
be annotated as an ELF function. The ENDPROC macro shouldn't be used
in this case.
This rule is needed so that objtool can ignore non-callable code.
Such code doesn't have to follow any of the other rules.
3. Each callable function which calls another function must have the
correct frame pointer logic, if required by CONFIG_FRAME_POINTER or
the architecture's back chain rules. This can by done in asm code
with the FRAME_BEGIN/FRAME_END macros.
This rule ensures that frame pointer based stack traces will work as
designed. If function A doesn't create a stack frame before calling
function B, the _caller_ of function A will be skipped on the stack
trace.
4. Dynamic jumps and jumps to undefined symbols are only allowed if:
a) the jump is part of a switch statement; or
b) the jump matches sibling call semantics and the frame pointer has
the same value it had on function entry.
This rule is needed so that objtool can reliably analyze all of a
function's code paths. If a function jumps to code in another file,
and it's not a sibling call, objtool has no way to follow the jump
because it only analyzes a single file at a time.
5. A callable function may not execute kernel entry/exit instructions.
The only code which needs such instructions is kernel entry code,
which shouldn't be be in callable functions anyway.
This rule is just a sanity check to ensure that callable functions
return normally.
It currently only supports x86_64. I tried to make the code generic so
that support for other architectures can hopefully be plugged in
relatively easily.
On my Lenovo laptop with a i7-4810MQ 4-core/8-thread CPU, building the
kernel with objtool checking every .o file adds about three seconds of
total build time. It hasn't been optimized for performance yet, so
there are probably some opportunities for better build performance.
Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Andy Lutomirski <luto@kernel.org>
Cc: Arnaldo Carvalho de Melo <acme@kernel.org>
Cc: Bernd Petrovitsch <bernd@petrovitsch.priv.at>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Chris J Arges <chris.j.arges@canonical.com>
Cc: Jiri Slaby <jslaby@suse.cz>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Michal Marek <mmarek@suse.cz>
Cc: Namhyung Kim <namhyung@gmail.com>
Cc: Pedro Alves <palves@redhat.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: live-patching@vger.kernel.org
Link: http://lkml.kernel.org/r/f3efb173de43bd067b060de73f856567c0fa1174.1456719558.git.jpoimboe@redhat.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
2016-02-29 12:22:41 +08:00
|
|
|
@echo ' objtool - an ELF object analysis tool'
|
2015-12-18 20:39:15 +08:00
|
|
|
@echo ' tmon - thermal monitoring and tuning tool'
|
|
|
|
@echo ' turbostat - Intel CPU idle stats and freq reporting tool'
|
|
|
|
@echo ' usb - USB testing tools'
|
|
|
|
@echo ' virtio - vhost test module'
|
|
|
|
@echo ' vm - misc vm tools'
|
2012-04-12 00:36:17 +08:00
|
|
|
@echo ' x86_energy_perf_policy - Intel energy policy tool'
|
|
|
|
@echo ''
|
2012-04-12 00:36:18 +08:00
|
|
|
@echo 'You can do:'
|
2013-01-29 18:48:11 +08:00
|
|
|
@echo ' $$ make -C tools/ <tool>_install'
|
2012-04-12 00:36:18 +08:00
|
|
|
@echo ''
|
|
|
|
@echo ' from the kernel command line to build and install one of'
|
|
|
|
@echo ' the tools above'
|
|
|
|
@echo ''
|
2015-11-12 06:25:34 +08:00
|
|
|
@echo ' $$ make tools/all'
|
|
|
|
@echo ''
|
|
|
|
@echo ' builds all tools.'
|
|
|
|
@echo ''
|
2012-04-12 00:36:18 +08:00
|
|
|
@echo ' $$ make tools/install'
|
|
|
|
@echo ''
|
|
|
|
@echo ' installs all tools.'
|
|
|
|
@echo ''
|
2012-04-12 00:36:17 +08:00
|
|
|
@echo 'Cleaning targets:'
|
|
|
|
@echo ''
|
|
|
|
@echo ' all of the above with the "_clean" string appended cleans'
|
|
|
|
@echo ' the respective build directory.'
|
|
|
|
@echo ' clean: a summary clean target to clean _all_ folders'
|
|
|
|
|
2014-01-15 12:04:17 +08:00
|
|
|
acpi: FORCE
|
|
|
|
$(call descend,power/$@)
|
|
|
|
|
2012-04-12 00:36:16 +08:00
|
|
|
cpupower: FORCE
|
2012-11-05 23:15:24 +08:00
|
|
|
$(call descend,power/$@)
|
2012-04-12 00:36:16 +08:00
|
|
|
|
2016-09-17 03:16:50 +08:00
|
|
|
cgroup firewire hv guest spi usb virtio vm net iio gpio objtool leds: FORCE
|
2013-02-20 23:32:30 +08:00
|
|
|
$(call descend,$@)
|
|
|
|
|
2014-05-09 01:34:01 +08:00
|
|
|
liblockdep: FORCE
|
|
|
|
$(call descend,lib/lockdep)
|
|
|
|
|
2015-04-19 04:34:38 +08:00
|
|
|
libapi: FORCE
|
2013-12-10 00:14:23 +08:00
|
|
|
$(call descend,lib/api)
|
2013-02-20 23:32:30 +08:00
|
|
|
|
2015-04-19 04:34:39 +08:00
|
|
|
# The perf build does not follow the descend function setup,
|
|
|
|
# invoking it via it's own make rule.
|
|
|
|
PERF_O = $(if $(O),$(O)/tools/perf,)
|
|
|
|
|
2015-04-19 04:34:38 +08:00
|
|
|
perf: FORCE
|
2015-04-19 04:34:39 +08:00
|
|
|
$(Q)mkdir -p $(PERF_O) .
|
|
|
|
$(Q)$(MAKE) --no-print-directory -C perf O=$(PERF_O) subdir=
|
2012-04-12 00:36:16 +08:00
|
|
|
|
|
|
|
selftests: FORCE
|
2012-11-05 23:15:24 +08:00
|
|
|
$(call descend,testing/$@)
|
2012-04-12 00:36:16 +08:00
|
|
|
|
|
|
|
turbostat x86_energy_perf_policy: FORCE
|
2012-11-05 23:15:24 +08:00
|
|
|
$(call descend,power/x86/$@)
|
2012-04-12 00:36:16 +08:00
|
|
|
|
tools/thermal: Introduce tmon, a tool for thermal subsystem
Increasingly, Linux is running on thermally constrained devices. The simple
thermal relationship between processor and fan has become past for modern
computers.
As hardware vendors cope with the thermal constraints on their products,
more sensors are added, new cooling capabilities are introduced. The
complexity of the thermal relationship can grow exponentially among cooling
devices, zones, sensors, and trip points. They can also change dynamically.
To expose such relationship to the userspace, Linux generic thermal layer
introduced sysfs entry at /sys/class/thermal with a matrix of symbolic
links, trip point bindings, and device instances. To traverse such
matrix by hand is not a trivial task. Testing is also difficult in that
thermal conditions are often exception cases that hard to reach in
normal operations.
TMON is conceived as a tool to help visualize, tune, and test the
complex thermal subsystem.
Signed-off-by: Jacob Pan <jacob.jun.pan@linux.intel.com>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
2013-10-15 07:02:27 +08:00
|
|
|
tmon: FORCE
|
|
|
|
$(call descend,thermal/$@)
|
|
|
|
|
2015-06-06 21:42:28 +08:00
|
|
|
freefall: FORCE
|
|
|
|
$(call descend,laptop/$@)
|
|
|
|
|
2017-04-11 23:34:35 +08:00
|
|
|
kvm_stat: FORCE
|
|
|
|
$(call descend,kvm/$@)
|
|
|
|
|
2017-08-17 01:31:57 +08:00
|
|
|
all: acpi cgroup cpupower gpio hv firewire liblockdep \
|
2015-11-12 06:25:34 +08:00
|
|
|
perf selftests turbostat usb \
|
|
|
|
virtio vm net x86_energy_perf_policy \
|
2017-07-29 08:36:05 +08:00
|
|
|
tmon freefall iio objtool kvm_stat
|
2015-11-12 06:25:34 +08:00
|
|
|
|
2014-01-15 12:04:17 +08:00
|
|
|
acpi_install:
|
|
|
|
$(call descend,power/$(@:_install=),install)
|
|
|
|
|
2012-04-12 00:36:16 +08:00
|
|
|
cpupower_install:
|
2012-11-05 23:15:24 +08:00
|
|
|
$(call descend,power/$(@:_install=),install)
|
2012-04-12 00:36:16 +08:00
|
|
|
|
Staging/IIO driver updates for 4.14-rc1
Here is the big staging and IIO driver update for 4.14-rc1.
Lots of staging driver fixes and cleanups, including some reorginizing
of the lustre header files to try to impose some sanity on what is, and
what is not, the uapi for that filesystem.
There are some tty core changes in here as well, as the speakup drivers
need them, and that's ok with me, they are sane and the speakup code is
getting nicer because of it.
There is also the addition of the obiligatory new wifi driver, just
because it has been a release or two since we added our last one...
Other than that, lots and lots of small coding style fixes, as usual.
All of these have been in linux-next for a while with no reported
issues.
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-----BEGIN PGP SIGNATURE-----
iG0EABECAC0WIQT0tgzFv3jCIUoxPcsxR9QN2y37KQUCWa2AbA8cZ3JlZ0Brcm9h
aC5jb20ACgkQMUfUDdst+ymboACfUsNhw+cJlVb25J70NULkye3y1PAAoJ+Ayq30
ckkLGakZayKcYEx50ffH
=KJwg
-----END PGP SIGNATURE-----
Merge tag 'staging-4.14-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging
Pull staging/IIO driver updates from Greg KH:
"Here is the big staging and IIO driver update for 4.14-rc1.
Lots of staging driver fixes and cleanups, including some reorginizing
of the lustre header files to try to impose some sanity on what is,
and what is not, the uapi for that filesystem.
There are some tty core changes in here as well, as the speakup
drivers need them, and that's ok with me, they are sane and the
speakup code is getting nicer because of it.
There is also the addition of the obiligatory new wifi driver, just
because it has been a release or two since we added our last one...
Other than that, lots and lots of small coding style fixes, as usual.
All of these have been in linux-next for a while with no reported
issues"
* tag 'staging-4.14-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging: (612 commits)
staging:rtl8188eu:core Fix remove unneccessary else block
staging: typec: fusb302: make structure fusb302_psy_desc static
staging: unisys: visorbus: make two functions static
staging: fsl-dpaa2/eth: fix off-by-one FD ctrl bitmaks
staging: r8822be: Simplify deinit_priv()
staging: r8822be: Remove some dead code
staging: vboxvideo: Use CONFIG_DRM_KMS_FB_HELPER to check for fbdefio availability
staging:rtl8188eu Fix comparison to NULL
staging: rts5208: rename mmc_ddr_tunning_rx_cmd to mmc_ddr_tuning_rx_cmd
Staging: Pi433: style fix - tabs and spaces
staging: pi433: fix spelling mistake: "preample" -> "preamble"
staging:rtl8188eu:core Fix Code Indent
staging: typec: fusb302: Export current-limit through a power_supply class dev
staging: typec: fusb302: Add support for USB2 charger detection through extcon
staging: typec: fusb302: Use client->irq as irq if set
staging: typec: fusb302: Get max snk mv/ma/mw from device-properties
staging: typec: fusb302: Set max supply voltage to 5V
staging: typec: tcpm: Add get_current_limit tcpc_dev callback
staging:rtl8188eu Use __func__ instead of function name
staging: lustre: coding style fixes found by checkpatch.pl
...
2017-09-06 01:36:26 +08:00
|
|
|
cgroup_install firewire_install gpio_install hv_install iio_install perf_install usb_install virtio_install vm_install net_install objtool_install:
|
2012-11-05 23:15:24 +08:00
|
|
|
$(call descend,$(@:_install=),install)
|
2012-04-12 00:36:16 +08:00
|
|
|
|
2017-05-25 20:58:44 +08:00
|
|
|
liblockdep_install:
|
|
|
|
$(call descend,lib/lockdep,install)
|
|
|
|
|
2012-04-12 00:36:16 +08:00
|
|
|
selftests_install:
|
2015-11-18 05:54:19 +08:00
|
|
|
$(call descend,testing/$(@:_install=),install)
|
2012-04-12 00:36:16 +08:00
|
|
|
|
|
|
|
turbostat_install x86_energy_perf_policy_install:
|
2012-11-05 23:15:24 +08:00
|
|
|
$(call descend,power/x86/$(@:_install=),install)
|
2012-04-12 00:36:16 +08:00
|
|
|
|
tools/thermal: Introduce tmon, a tool for thermal subsystem
Increasingly, Linux is running on thermally constrained devices. The simple
thermal relationship between processor and fan has become past for modern
computers.
As hardware vendors cope with the thermal constraints on their products,
more sensors are added, new cooling capabilities are introduced. The
complexity of the thermal relationship can grow exponentially among cooling
devices, zones, sensors, and trip points. They can also change dynamically.
To expose such relationship to the userspace, Linux generic thermal layer
introduced sysfs entry at /sys/class/thermal with a matrix of symbolic
links, trip point bindings, and device instances. To traverse such
matrix by hand is not a trivial task. Testing is also difficult in that
thermal conditions are often exception cases that hard to reach in
normal operations.
TMON is conceived as a tool to help visualize, tune, and test the
complex thermal subsystem.
Signed-off-by: Jacob Pan <jacob.jun.pan@linux.intel.com>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
2013-10-15 07:02:27 +08:00
|
|
|
tmon_install:
|
|
|
|
$(call descend,thermal/$(@:_install=),install)
|
|
|
|
|
2015-06-06 21:42:28 +08:00
|
|
|
freefall_install:
|
|
|
|
$(call descend,laptop/$(@:_install=),install)
|
|
|
|
|
2016-05-18 19:26:21 +08:00
|
|
|
kvm_stat_install:
|
|
|
|
$(call descend,kvm/$(@:_install=),install)
|
|
|
|
|
2016-06-20 04:41:12 +08:00
|
|
|
install: acpi_install cgroup_install cpupower_install gpio_install \
|
Staging/IIO driver updates for 4.14-rc1
Here is the big staging and IIO driver update for 4.14-rc1.
Lots of staging driver fixes and cleanups, including some reorginizing
of the lustre header files to try to impose some sanity on what is, and
what is not, the uapi for that filesystem.
There are some tty core changes in here as well, as the speakup drivers
need them, and that's ok with me, they are sane and the speakup code is
getting nicer because of it.
There is also the addition of the obiligatory new wifi driver, just
because it has been a release or two since we added our last one...
Other than that, lots and lots of small coding style fixes, as usual.
All of these have been in linux-next for a while with no reported
issues.
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-----BEGIN PGP SIGNATURE-----
iG0EABECAC0WIQT0tgzFv3jCIUoxPcsxR9QN2y37KQUCWa2AbA8cZ3JlZ0Brcm9h
aC5jb20ACgkQMUfUDdst+ymboACfUsNhw+cJlVb25J70NULkye3y1PAAoJ+Ayq30
ckkLGakZayKcYEx50ffH
=KJwg
-----END PGP SIGNATURE-----
Merge tag 'staging-4.14-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging
Pull staging/IIO driver updates from Greg KH:
"Here is the big staging and IIO driver update for 4.14-rc1.
Lots of staging driver fixes and cleanups, including some reorginizing
of the lustre header files to try to impose some sanity on what is,
and what is not, the uapi for that filesystem.
There are some tty core changes in here as well, as the speakup
drivers need them, and that's ok with me, they are sane and the
speakup code is getting nicer because of it.
There is also the addition of the obiligatory new wifi driver, just
because it has been a release or two since we added our last one...
Other than that, lots and lots of small coding style fixes, as usual.
All of these have been in linux-next for a while with no reported
issues"
* tag 'staging-4.14-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging: (612 commits)
staging:rtl8188eu:core Fix remove unneccessary else block
staging: typec: fusb302: make structure fusb302_psy_desc static
staging: unisys: visorbus: make two functions static
staging: fsl-dpaa2/eth: fix off-by-one FD ctrl bitmaks
staging: r8822be: Simplify deinit_priv()
staging: r8822be: Remove some dead code
staging: vboxvideo: Use CONFIG_DRM_KMS_FB_HELPER to check for fbdefio availability
staging:rtl8188eu Fix comparison to NULL
staging: rts5208: rename mmc_ddr_tunning_rx_cmd to mmc_ddr_tuning_rx_cmd
Staging: Pi433: style fix - tabs and spaces
staging: pi433: fix spelling mistake: "preample" -> "preamble"
staging:rtl8188eu:core Fix Code Indent
staging: typec: fusb302: Export current-limit through a power_supply class dev
staging: typec: fusb302: Add support for USB2 charger detection through extcon
staging: typec: fusb302: Use client->irq as irq if set
staging: typec: fusb302: Get max snk mv/ma/mw from device-properties
staging: typec: fusb302: Set max supply voltage to 5V
staging: typec: tcpm: Add get_current_limit tcpc_dev callback
staging:rtl8188eu Use __func__ instead of function name
staging: lustre: coding style fixes found by checkpatch.pl
...
2017-09-06 01:36:26 +08:00
|
|
|
hv_install firewire_install iio_install liblockdep_install \
|
2013-01-05 05:05:17 +08:00
|
|
|
perf_install selftests_install turbostat_install usb_install \
|
tools/thermal: Introduce tmon, a tool for thermal subsystem
Increasingly, Linux is running on thermally constrained devices. The simple
thermal relationship between processor and fan has become past for modern
computers.
As hardware vendors cope with the thermal constraints on their products,
more sensors are added, new cooling capabilities are introduced. The
complexity of the thermal relationship can grow exponentially among cooling
devices, zones, sensors, and trip points. They can also change dynamically.
To expose such relationship to the userspace, Linux generic thermal layer
introduced sysfs entry at /sys/class/thermal with a matrix of symbolic
links, trip point bindings, and device instances. To traverse such
matrix by hand is not a trivial task. Testing is also difficult in that
thermal conditions are often exception cases that hard to reach in
normal operations.
TMON is conceived as a tool to help visualize, tune, and test the
complex thermal subsystem.
Signed-off-by: Jacob Pan <jacob.jun.pan@linux.intel.com>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
2013-10-15 07:02:27 +08:00
|
|
|
virtio_install vm_install net_install x86_energy_perf_policy_install \
|
2016-05-18 19:26:21 +08:00
|
|
|
tmon_install freefall_install objtool_install kvm_stat_install
|
2012-04-12 00:36:16 +08:00
|
|
|
|
2014-01-15 12:04:17 +08:00
|
|
|
acpi_clean:
|
|
|
|
$(call descend,power/acpi,clean)
|
|
|
|
|
2012-04-12 00:36:16 +08:00
|
|
|
cpupower_clean:
|
2012-11-05 23:15:24 +08:00
|
|
|
$(call descend,power/cpupower,clean)
|
2012-04-12 00:36:16 +08:00
|
|
|
|
2017-08-17 01:31:57 +08:00
|
|
|
cgroup_clean hv_clean firewire_clean spi_clean usb_clean virtio_clean vm_clean net_clean iio_clean gpio_clean objtool_clean leds_clean:
|
2013-02-20 23:32:30 +08:00
|
|
|
$(call descend,$(@:_clean=),clean)
|
|
|
|
|
2014-05-09 01:34:01 +08:00
|
|
|
liblockdep_clean:
|
|
|
|
$(call descend,lib/lockdep,clean)
|
|
|
|
|
2015-04-19 04:34:38 +08:00
|
|
|
libapi_clean:
|
2013-12-10 00:14:23 +08:00
|
|
|
$(call descend,lib/api,clean)
|
2013-02-20 23:32:30 +08:00
|
|
|
|
2016-01-11 18:54:48 +08:00
|
|
|
libbpf_clean:
|
|
|
|
$(call descend,lib/bpf,clean)
|
|
|
|
|
|
|
|
libsubcmd_clean:
|
|
|
|
$(call descend,lib/subcmd,clean)
|
|
|
|
|
2015-04-19 04:34:38 +08:00
|
|
|
perf_clean:
|
2016-04-26 04:17:18 +08:00
|
|
|
$(Q)mkdir -p $(PERF_O) .
|
|
|
|
$(Q)$(MAKE) --no-print-directory -C perf O=$(PERF_O) subdir= clean
|
2012-04-12 00:36:16 +08:00
|
|
|
|
|
|
|
selftests_clean:
|
2012-11-05 23:15:24 +08:00
|
|
|
$(call descend,testing/$(@:_clean=),clean)
|
2012-04-12 00:36:16 +08:00
|
|
|
|
|
|
|
turbostat_clean x86_energy_perf_policy_clean:
|
2012-11-05 23:15:24 +08:00
|
|
|
$(call descend,power/x86/$(@:_clean=),clean)
|
2012-04-12 00:36:16 +08:00
|
|
|
|
tools/thermal: Introduce tmon, a tool for thermal subsystem
Increasingly, Linux is running on thermally constrained devices. The simple
thermal relationship between processor and fan has become past for modern
computers.
As hardware vendors cope with the thermal constraints on their products,
more sensors are added, new cooling capabilities are introduced. The
complexity of the thermal relationship can grow exponentially among cooling
devices, zones, sensors, and trip points. They can also change dynamically.
To expose such relationship to the userspace, Linux generic thermal layer
introduced sysfs entry at /sys/class/thermal with a matrix of symbolic
links, trip point bindings, and device instances. To traverse such
matrix by hand is not a trivial task. Testing is also difficult in that
thermal conditions are often exception cases that hard to reach in
normal operations.
TMON is conceived as a tool to help visualize, tune, and test the
complex thermal subsystem.
Signed-off-by: Jacob Pan <jacob.jun.pan@linux.intel.com>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
2013-10-15 07:02:27 +08:00
|
|
|
tmon_clean:
|
|
|
|
$(call descend,thermal/tmon,clean)
|
|
|
|
|
2015-06-06 21:42:28 +08:00
|
|
|
freefall_clean:
|
|
|
|
$(call descend,laptop/freefall,clean)
|
|
|
|
|
2016-01-11 18:54:48 +08:00
|
|
|
build_clean:
|
|
|
|
$(call descend,build,clean)
|
|
|
|
|
2017-08-17 01:31:57 +08:00
|
|
|
clean: acpi_clean cgroup_clean cpupower_clean hv_clean firewire_clean \
|
2015-11-19 06:30:37 +08:00
|
|
|
perf_clean selftests_clean turbostat_clean spi_clean usb_clean virtio_clean \
|
Staging driver patches for 4.2-rc1
Here's the big, really big, staging tree patches for 4.2-rc1.
Loads of stuff in here, almost all just coding style fixes / churn, and
a few new drivers as well, one of which I just disabled from the build a
few minutes ago due to way too many build warnings.
Other than the one "disable this driver" patch, all of these have been
in linux-next for quite a while with no reported issues.
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
iEYEABECAAYFAlWNpc0ACgkQMUfUDdst+ym8EgCg0pL1Qcf9Se3jAc96fLt+itpv
Rd0AoI9uJcq8Qm7d+IXnz3ojLnN9xvN3
=xt0u
-----END PGP SIGNATURE-----
Merge tag 'staging-4.2-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging
Pull staging driver updates from Greg KH:
"Here's the big, really big, staging tree patches for 4.2-rc1.
Loads of stuff in here, almost all just coding style fixes / churn,
and a few new drivers as well, one of which I just disabled from the
build a few minutes ago due to way too many build warnings.
Other than the one "disable this driver" patch, all of these have been
in linux-next for quite a while with no reported issues"
* tag 'staging-4.2-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging: (1163 commits)
staging: wilc1000: disable driver due to build warnings
Staging: rts5208: fix CHANGE_LINK_STATE value
Staging: sm750fb: ddk750_swi2c.c: Insert spaces before parenthesis
Staging: sm750fb: ddk750_swi2c.c: Place braces on correct lines
Staging: sm750fb: ddk750_swi2c.c: Insert spaces around operators
Staging: sm750fb: ddk750_swi2c.c: Replace spaces with tabs
Staging: sm750fb: ddk750_swi2c.h: Shorten lines to under 80 characters
Staging: sm750fb: ddk750_swi2c.h: Replace spaces with tabs
Staging: sm750fb: modedb.h: Shorten lines to under 80 characters
Staging: sm750fb: modedb.h: Replace spaces with tabs
staging: comedi: addi_apci_3120: rename 'this_board' variables
staging: comedi: addi_apci_1516: rename 'this_board' variables
staging: comedi: ni_atmio: cleanup ni_getboardtype()
staging: comedi: vmk80xx: sanity check context used to get the boardinfo
staging: comedi: vmk80xx: rename 'boardinfo' variables
staging: comedi: dt3000: rename 'this_board' variables
staging: comedi: adv_pci_dio: rename 'this_board' variables
staging: comedi: cb_pcidas64: rename 'thisboard' variables
staging: comedi: cb_pcidas: rename 'thisboard' variables
staging: comedi: me4000: rename 'thisboard' variables
...
2015-06-27 06:46:08 +08:00
|
|
|
vm_clean net_clean iio_clean x86_energy_perf_policy_clean tmon_clean \
|
2015-10-21 21:45:54 +08:00
|
|
|
freefall_clean build_clean libbpf_clean libsubcmd_clean liblockdep_clean \
|
2016-09-17 03:16:50 +08:00
|
|
|
gpio_clean objtool_clean leds_clean
|
2012-04-12 00:36:16 +08:00
|
|
|
|
|
|
|
.PHONY: FORCE
|