Skip to content

Commit 7246f4d

Browse files
Sasha Levintorvalds
authored andcommitted
tools/lib/lockdep: drop liblockdep
TL;DR: While a tool like liblockdep is useful, it probably doesn't belong within the kernel tree. liblockdep attempts to reuse kernel code both directly (by directly building the kernel's lockdep code) as well as indirectly (by using sanitized headers). This makes liblockdep an integral part of the kernel. It also makes liblockdep quite unique: while other userspace code might use sanitized headers, it generally doesn't attempt to use kernel code directly which means that changes on the kernel side of things don't affect (and break) it directly. All our workflows and tooling around liblockdep don't support this uniqueness. Changes that go into the kernel code aren't validated to not break in-tree userspace code. liblockdep ended up being very fragile, breaking over and over, to the point that living in the same tree as the lockdep code lost most of it's value. liblockdep should continue living in an external tree, syncing with the kernel often, in a controllable way. Signed-off-by: Sasha Levin <sashal@kernel.org> Cc: Ingo Molnar <mingo@kernel.org> Cc: Peter Zijlstra <peterz@infradead.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent d9c8e52 commit 7246f4d

39 files changed

Lines changed: 3 additions & 1229 deletions

‎MAINTAINERS‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10799,11 +10799,6 @@ F: drivers/ata/
1079910799
F: include/linux/ata.h
1080010800
F: include/linux/libata.h
1080110801

10802-
LIBLOCKDEP
10803-
M: Sasha Levin <alexander.levin@microsoft.com>
10804-
S: Maintained
10805-
F: tools/lib/lockdep/
10806-
1080710802
LIBNVDIMM BLK: MMIO-APERTURE DRIVER
1080810803
M: Dan Williams <dan.j.williams@intel.com>
1080910804
M: Vishal Verma <vishal.l.verma@intel.com>

‎tools/Makefile‎

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ help:
2424
@echo ' intel-speed-select - Intel Speed Select tool'
2525
@echo ' kvm_stat - top-like utility for displaying kvm statistics'
2626
@echo ' leds - LEDs tools'
27-
@echo ' liblockdep - user-space wrapper for kernel locking-validator'
2827
@echo ' objtool - an ELF object analysis tool'
2928
@echo ' pci - PCI tools'
3029
@echo ' perf - Linux performance measurement and analysis tool'
@@ -72,9 +71,6 @@ cgroup counter firewire hv guest bootconfig spi usb virtio vm bpf iio gpio objto
7271
bpf/%: FORCE
7372
$(call descend,$@)
7473

75-
liblockdep: FORCE
76-
$(call descend,lib/lockdep)
77-
7874
libapi: FORCE
7975
$(call descend,lib/api)
8076

@@ -101,7 +97,7 @@ freefall: FORCE
10197
kvm_stat: FORCE
10298
$(call descend,kvm/$@)
10399

104-
all: acpi cgroup counter cpupower gpio hv firewire liblockdep \
100+
all: acpi cgroup counter cpupower gpio hv firewire \
105101
perf selftests bootconfig spi turbostat usb \
106102
virtio vm bpf x86_energy_perf_policy \
107103
tmon freefall iio objtool kvm_stat wmi \
@@ -116,9 +112,6 @@ cpupower_install:
116112
cgroup_install counter_install firewire_install gpio_install hv_install iio_install perf_install bootconfig_install spi_install usb_install virtio_install vm_install bpf_install objtool_install wmi_install pci_install debugging_install tracing_install:
117113
$(call descend,$(@:_install=),install)
118114

119-
liblockdep_install:
120-
$(call descend,lib/lockdep,install)
121-
122115
selftests_install:
123116
$(call descend,testing/$(@:_install=),install)
124117

@@ -135,7 +128,7 @@ kvm_stat_install:
135128
$(call descend,kvm/$(@:_install=),install)
136129

137130
install: acpi_install cgroup_install counter_install cpupower_install gpio_install \
138-
hv_install firewire_install iio_install liblockdep_install \
131+
hv_install firewire_install iio_install \
139132
perf_install selftests_install turbostat_install usb_install \
140133
virtio_install vm_install bpf_install x86_energy_perf_policy_install \
141134
tmon_install freefall_install objtool_install kvm_stat_install \
@@ -151,9 +144,6 @@ cpupower_clean:
151144
cgroup_clean counter_clean hv_clean firewire_clean bootconfig_clean spi_clean usb_clean virtio_clean vm_clean wmi_clean bpf_clean iio_clean gpio_clean objtool_clean leds_clean pci_clean firmware_clean debugging_clean tracing_clean:
152145
$(call descend,$(@:_clean=),clean)
153146

154-
liblockdep_clean:
155-
$(call descend,lib/lockdep,clean)
156-
157147
libapi_clean:
158148
$(call descend,lib/api,clean)
159149

@@ -185,7 +175,7 @@ build_clean:
185175
clean: acpi_clean cgroup_clean counter_clean cpupower_clean hv_clean firewire_clean \
186176
perf_clean selftests_clean turbostat_clean bootconfig_clean spi_clean usb_clean virtio_clean \
187177
vm_clean bpf_clean iio_clean x86_energy_perf_policy_clean tmon_clean \
188-
freefall_clean build_clean libbpf_clean libsubcmd_clean liblockdep_clean \
178+
freefall_clean build_clean libbpf_clean libsubcmd_clean \
189179
gpio_clean objtool_clean leds_clean wmi_clean pci_clean firmware_clean debugging_clean \
190180
intel-speed-select_clean tracing_clean
191181

‎tools/lib/lockdep/.gitignore‎

Lines changed: 0 additions & 2 deletions
This file was deleted.

‎tools/lib/lockdep/Build‎

Lines changed: 0 additions & 1 deletion
This file was deleted.

‎tools/lib/lockdep/Makefile‎

Lines changed: 0 additions & 162 deletions
This file was deleted.

‎tools/lib/lockdep/common.c‎

Lines changed: 0 additions & 29 deletions
This file was deleted.

‎tools/lib/lockdep/include/liblockdep/common.h‎

Lines changed: 0 additions & 54 deletions
This file was deleted.

0 commit comments

Comments
 (0)