tools/runqslower: allow substituting custom vmlinux.h for the build
Subsystems (3)
Andrii Nakryiko
maintainerPATCH 1/1 tools/runqslower: allow substituting custom vmlinux.h for the build
Just like was done for bpftool and selftests in ec23eb705620 ("tools/bpftool:
Allow substituting custom vmlinux.h for the build") and ca4db6389d61 ("selftests/bpf: Allow substituting custom vmlinux.h for selftests build"), allow to provide pre-generated vmlinux.h for runqslower build.
--- tools/bpf/runqslower/Makefile | 4 ++++ 1 file changed, 4 insertions(+)
tools/bpf/runqslower/Makefile +4 -0
@@ -69,12 +69,16 @@ $(OUTPUT) $(BPFOBJ_OUTPUT) $(BPFTOOL_OUTPUT): $(QUIET_MKDIR)mkdir -p $@ $(OUTPUT)/vmlinux.h: $(VMLINUX_BTF_PATH) | $(OUTPUT) $(BPFTOOL) +ifeq ($(VMLINUX_H),) $(Q)if [ ! -e "$(VMLINUX_BTF_PATH)" ] ; then \ echo "Couldn't find kernel BTF; set VMLINUX_BTF to" \ "specify its location." >&2; \ exit 1;\ fi $(QUIET_GEN)$(BPFTOOL) btf dump file $(VMLINUX_BTF_PATH) format c > $@ +else + $(Q)cp "$(VMLINUX_H)" $@ +endif $(BPFOBJ): $(wildcard $(LIBBPF_SRC)/*.[ch] $(LIBBPF_SRC)/Makefile) | $(BPFOBJ_OUTPUT) $(Q)$(MAKE) $(submake_extras) -C $(LIBBPF_SRC) OUTPUT=$(BPFOBJ_OUTPUT) $@
Signature · 1 line
2.24.1
Quoted 7 lines · Andrii Nakryiko
Just like was done for bpftool and selftests in
ec23eb705620("tools/bpftool:
Allow substituting customvmlinux.hfor the build") andca4db6389d61("selftests/bpf: Allow substituting customvmlinux.hfor selftests build"), allow to provide pre-generatedvmlinux.hfor runqslower build.Cc Martin Lau <[email protected]>Signed-off-by Andrii Nakryiko <[email protected]>
Quoted 4 lines · Andrii Nakryiko
Just like was done for bpftool and selftests in
ec23eb705620("tools/bpftool:
Allow substituting customvmlinux.hfor the build") andca4db6389d61("selftests/bpf: Allow substituting customvmlinux.hfor selftests build"), allow to provide pre-generatedvmlinux.hfor runqslower build.
This patch was applied to bpf/bpf-next.git (refs/heads/master):
Hello:
This patch was applied to bpf/bpf-next.git (refs/heads/master):
Quoted 9 lines · On Tue, 2 Mar 2021 16:40:10 -0800 you wrote:
Just like was done for bpftool and selftests in
ec23eb705620("tools/bpftool:
Allow substituting customvmlinux.hfor the build") andca4db6389d61("selftests/bpf: Allow substituting customvmlinux.hfor selftests build"), allow to provide pre-generatedvmlinux.hfor runqslower build.Cc Martin Lau <[email protected]>Signed-off-by Andrii Nakryiko <[email protected]>[...]
Here is the summary with links:
- [bpf-next] tools/runqslower: allow substituting custom vmlinux.h for the build
https://git.kernel.org/bpf/bpf-next/c/303dcc25b5c7
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html