diff options
author | Thorsten Leemhuis <linux@leemhuis.info> | 2019-01-08 14:40:06 -0500 |
---|---|---|
committer | Jonathan Corbet <corbet@lwn.net> | 2019-01-08 18:29:52 -0500 |
commit | 4ab5a5d2a4a2289c2af07accbec7170ca5671f41 (patch) | |
tree | ca2eeac3a029e810e3ddc65675658bf8db5d5ce4 /tools/Makefile | |
parent | 8fe28cb58bcb235034b64cbbb7550a8a43fd88be (diff) |
tools: add a kernel-chktaint to tools/debugging
Add a script to the tools/ directory that shows if or why the running
kernel was tainted. The script was mostly written by Randy Dunlap; I
enhanced the script a bit. There does not appear to be a good home for
this script. so create tools/debugging for tools of this nature.
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Thorsten Leemhuis <linux@leemhuis.info>
[ jc: fixed conflicts, rewrote changelog ]
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Diffstat (limited to 'tools/Makefile')
-rw-r--r-- | tools/Makefile | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/tools/Makefile b/tools/Makefile index abb358a70ad0..c0d1e59f5abb 100644 --- a/tools/Makefile +++ b/tools/Makefile | |||
@@ -12,6 +12,7 @@ help: | |||
12 | @echo ' acpi - ACPI tools' | 12 | @echo ' acpi - ACPI tools' |
13 | @echo ' cgroup - cgroup tools' | 13 | @echo ' cgroup - cgroup tools' |
14 | @echo ' cpupower - a tool for all things x86 CPU power' | 14 | @echo ' cpupower - a tool for all things x86 CPU power' |
15 | @echo ' debugging - tools for debugging' | ||
15 | @echo ' firewire - the userspace part of nosy, an IEEE-1394 traffic sniffer' | 16 | @echo ' firewire - the userspace part of nosy, an IEEE-1394 traffic sniffer' |
16 | @echo ' freefall - laptop accelerometer program for disk protection' | 17 | @echo ' freefall - laptop accelerometer program for disk protection' |
17 | @echo ' gpio - GPIO tools' | 18 | @echo ' gpio - GPIO tools' |
@@ -60,7 +61,7 @@ acpi: FORCE | |||
60 | cpupower: FORCE | 61 | cpupower: FORCE |
61 | $(call descend,power/$@) | 62 | $(call descend,power/$@) |
62 | 63 | ||
63 | cgroup firewire hv guest spi usb virtio vm bpf iio gpio objtool leds wmi pci: FORCE | 64 | cgroup firewire hv guest spi usb virtio vm bpf iio gpio objtool leds wmi pci debugging: FORCE |
64 | $(call descend,$@) | 65 | $(call descend,$@) |
65 | 66 | ||
66 | liblockdep: FORCE | 67 | liblockdep: FORCE |
@@ -95,7 +96,8 @@ kvm_stat: FORCE | |||
95 | all: acpi cgroup cpupower gpio hv firewire liblockdep \ | 96 | all: acpi cgroup cpupower gpio hv firewire liblockdep \ |
96 | perf selftests spi turbostat usb \ | 97 | perf selftests spi turbostat usb \ |
97 | virtio vm bpf x86_energy_perf_policy \ | 98 | virtio vm bpf x86_energy_perf_policy \ |
98 | tmon freefall iio objtool kvm_stat wmi pci | 99 | tmon freefall iio objtool kvm_stat wmi \ |
100 | pci debugging | ||
99 | 101 | ||
100 | acpi_install: | 102 | acpi_install: |
101 | $(call descend,power/$(@:_install=),install) | 103 | $(call descend,power/$(@:_install=),install) |
@@ -103,7 +105,7 @@ acpi_install: | |||
103 | cpupower_install: | 105 | cpupower_install: |
104 | $(call descend,power/$(@:_install=),install) | 106 | $(call descend,power/$(@:_install=),install) |
105 | 107 | ||
106 | cgroup_install firewire_install gpio_install hv_install iio_install perf_install spi_install usb_install virtio_install vm_install bpf_install objtool_install wmi_install pci_install: | 108 | cgroup_install firewire_install gpio_install hv_install iio_install perf_install spi_install usb_install virtio_install vm_install bpf_install objtool_install wmi_install pci_install debugging_install: |
107 | $(call descend,$(@:_install=),install) | 109 | $(call descend,$(@:_install=),install) |
108 | 110 | ||
109 | liblockdep_install: | 111 | liblockdep_install: |
@@ -129,7 +131,7 @@ install: acpi_install cgroup_install cpupower_install gpio_install \ | |||
129 | perf_install selftests_install turbostat_install usb_install \ | 131 | perf_install selftests_install turbostat_install usb_install \ |
130 | virtio_install vm_install bpf_install x86_energy_perf_policy_install \ | 132 | virtio_install vm_install bpf_install x86_energy_perf_policy_install \ |
131 | tmon_install freefall_install objtool_install kvm_stat_install \ | 133 | tmon_install freefall_install objtool_install kvm_stat_install \ |
132 | wmi_install pci_install | 134 | wmi_install pci_install debugging_install |
133 | 135 | ||
134 | acpi_clean: | 136 | acpi_clean: |
135 | $(call descend,power/acpi,clean) | 137 | $(call descend,power/acpi,clean) |
@@ -137,7 +139,7 @@ acpi_clean: | |||
137 | cpupower_clean: | 139 | cpupower_clean: |
138 | $(call descend,power/cpupower,clean) | 140 | $(call descend,power/cpupower,clean) |
139 | 141 | ||
140 | cgroup_clean hv_clean firewire_clean spi_clean usb_clean virtio_clean vm_clean wmi_clean bpf_clean iio_clean gpio_clean objtool_clean leds_clean pci_clean: | 142 | cgroup_clean hv_clean firewire_clean spi_clean usb_clean virtio_clean vm_clean wmi_clean bpf_clean iio_clean gpio_clean objtool_clean leds_clean pci_clean debugging_clean: |
141 | $(call descend,$(@:_clean=),clean) | 143 | $(call descend,$(@:_clean=),clean) |
142 | 144 | ||
143 | liblockdep_clean: | 145 | liblockdep_clean: |
@@ -175,6 +177,6 @@ clean: acpi_clean cgroup_clean cpupower_clean hv_clean firewire_clean \ | |||
175 | perf_clean selftests_clean turbostat_clean spi_clean usb_clean virtio_clean \ | 177 | perf_clean selftests_clean turbostat_clean spi_clean usb_clean virtio_clean \ |
176 | vm_clean bpf_clean iio_clean x86_energy_perf_policy_clean tmon_clean \ | 178 | vm_clean bpf_clean iio_clean x86_energy_perf_policy_clean tmon_clean \ |
177 | freefall_clean build_clean libbpf_clean libsubcmd_clean liblockdep_clean \ | 179 | freefall_clean build_clean libbpf_clean libsubcmd_clean liblockdep_clean \ |
178 | gpio_clean objtool_clean leds_clean wmi_clean pci_clean | 180 | gpio_clean objtool_clean leds_clean wmi_clean pci_clean debugging_clean |
179 | 181 | ||
180 | .PHONY: FORCE | 182 | .PHONY: FORCE |