Home
last modified time | relevance | path

Searched refs:vmlinux (Results 1 – 25 of 47) sorted by relevance

12

/tools/perf/Documentation/
Dperf.data-directory-format.txt48 build id event received for vmlinux: 1eaa285996affce2d74d8e66dcea09a80c9941de
55 … perf 15316 2060795.480902: 1 cycles: ffffffffa2caa548 native_write_msr+0x8 (vmlinux)
56 … perf 15316 2060795.480906: 1 cycles: ffffffffa2caa548 native_write_msr+0x8 (vmlinux)
57 … perf 15316 2060795.480908: 7 cycles: ffffffffa2caa548 native_write_msr+0x8 (vmlinux)
58 … perf 15316 2060795.480910: 119 cycles: ffffffffa2caa54a native_write_msr+0xa (vmlinux)
59 …perf 15316 2060795.480912: 2109 cycles: ffffffffa2c9b7b0 native_apic_msr_write+0x0 (vmlinux)
60 …16 2060795.480914: 37606 cycles: ffffffffa2f121fe perf_event_addr_filters_exec+0x2e (vmlinux)
61 …e 15316 2060795.480924: 588287 cycles: ffffffffa303a56d page_counter_try_charge+0x6d (vmlinux)
62 … uname 15316 2060795.481067: 2261945 cycles: ffffffffa301438f kmem_cache_free+0x4f (vmlinux)
Dperf-inject.txt56 --vmlinux=<file>::
57 vmlinux pathname
59 --ignore-vmlinux::
60 Ignore vmlinux files.
Dguest-files.txt12 Guest OS kernel vmlinux.
Dperf-annotate.txt55 --vmlinux=<file>::
56 vmlinux pathname.
58 --ignore-vmlinux::
59 Ignore vmlinux files.
/tools/bpf/runqslower/
DMakefile22 VMLINUX_BTF_PATHS := $(if $(O),$(O)/vmlinux) \
23 $(if $(KBUILD_OUTPUT),$(KBUILD_OUTPUT)/vmlinux) \
24 ../../../vmlinux /sys/kernel/btf/vmlinux \
25 /boot/vmlinux-$(KERNEL_REL)
48 $(Q)$(RM) $(OUTPUT)*.skel.h $(OUTPUT)vmlinux.h
60 $(OUTPUT)/runqslower.bpf.o: $(OUTPUT)/vmlinux.h runqslower.h | libbpf_hdrs
76 $(OUTPUT)/vmlinux.h: $(VMLINUX_BTF_PATH) | $(OUTPUT) $(BPFTOOL)
/tools/sched_ext/
DREADME.md76 ## Getting a vmlinux.h file
78 You may notice that most of the example schedulers include a "vmlinux.h" file.
80 defined in some vmlinux binary that was compiled with
84 The header file is created using `bpftool`, by passing it a vmlinux binary
88 $ bpftool btf dump file /path/to/vmlinux format c > vmlinux.h
93 example, using vmlinux.h allows a scheduler to access fields defined directly
94 in vmlinux as follows:
97 #include "vmlinux.h"
98 // vmlinux.h is also implicitly included by scx_common.bpf.h.
102 * vmlinux.h provides definitions for struct task_struct and
[all …]
DMakefile76 VMLINUX_BTF_PATHS ?= $(if $(O),$(O)/vmlinux) \
77 $(if $(KBUILD_OUTPUT),$(KBUILD_OUTPUT)/vmlinux) \
78 ../../vmlinux \
79 /sys/kernel/btf/vmlinux \
80 /boot/vmlinux-$(shell uname -r)
83 $(error Cannot find a vmlinux for VMLINUX_BTF at any of "$(VMLINUX_BTF_PATHS)")
153 $(INCLUDE_DIR)/vmlinux.h: $(VMLINUX_BTF) $(BPFTOOL) | $(INCLUDE_DIR)
162 $(SCXOBJ_DIR)/%.bpf.o: %.bpf.c $(INCLUDE_DIR)/vmlinux.h include/scx/*.h \
167 $(INCLUDE_DIR)/%.bpf.skel.h: $(SCXOBJ_DIR)/%.bpf.o $(INCLUDE_DIR)/vmlinux.h $(BPFTOOL)
/tools/testing/selftests/rcutorture/bin/
Dkvm-find-errors.sh39 …elif ! test -f ${scenariobasedir}/vmlinux && ! test -f ${scenariobasedir}/vmlinux.xz && ! test -f …
41 echo No ${scenariobasedir}/vmlinux file > $i.diags
Dkvm-test-1-run-qemu.sh74 if ! test -f $base_resdir/vmlinux
77 if ! test -f $base_resdir/vmlinux
Dtorture.sh664 echo Compressing vmlinux files in ${i}: `date` >> "$tdir/log-xz" 2>&1
665 for j in $i/*/vmlinux
687 echo Linking vmlinux.xz files to re-use scenarios `date` | tee -a "$tdir/log-xz" | tee -a $T/log
692 find . -name vmlinux -print > $T/xz-todo-copy-vmlinux
693 for v in `cat $T/xz-todo-copy-vmlinux`
Dkvm-check-branches.sh86 ( cd $resdir/$ds/$idir/$rrd; rm -f */vmlinux */bzImage */System.map */Module.symvers )
/tools/testing/selftests/x86/bugs/
Dits_ret_alignment.py51 vmlinux = f"/usr/lib/debug/lib/modules/{os.uname().release}/vmlinux" variable
52 if not os.path.exists(vmlinux):
58 rethunks_start_vmlinux, rethunks_sec_offset, size = c.get_section_info(vmlinux, '.return_sites')
61 sites_offset = c.get_patch_sites(vmlinux, rethunks_sec_offset, size)
77 with open(vmlinux, 'rb') as f:
Dits_indirect_alignment.py56 vmlinux = f"/usr/lib/debug/lib/modules/{os.uname().release}/vmlinux" variable
57 if not os.path.exists(vmlinux):
63 retpolines_start_vmlinux, retpolines_sec_offset, size = c.get_section_info(vmlinux, '.retpoline_sit…
66 sites_offset = c.get_patch_sites(vmlinux, retpolines_sec_offset, size)
81 with open(vmlinux, 'rb') as f:
Dcommon.py104 def get_section_info(vmlinux, section_name): argument
106 with open(vmlinux, 'rb') as f:
116 def get_patch_sites(vmlinux, offset, size): argument
119 with open(vmlinux, 'rb') as f:
/tools/testing/selftests/sched_ext/
DMakefile40 VMLINUX_BTF_PATHS ?= $(if $(O),$(O)/vmlinux) \
41 $(if $(KBUILD_OUTPUT),$(KBUILD_OUTPUT)/vmlinux) \
42 ../../../../vmlinux \
43 /sys/kernel/btf/vmlinux \
44 /boot/vmlinux-$(shell uname -r)
47 $(error Cannot find a vmlinux for VMLINUX_BTF at any of "$(VMLINUX_BTF_PATHS)")
125 $(INCLUDE_DIR)/vmlinux.h: $(VMLINUX_BTF) $(BPFTOOL) | $(INCLUDE_DIR)
134 $(SCXOBJ_DIR)/%.bpf.o: %.bpf.c $(INCLUDE_DIR)/vmlinux.h | $(BPFOBJ) $(SCXOBJ_DIR)
138 $(INCLUDE_DIR)/%.bpf.skel.h: $(SCXOBJ_DIR)/%.bpf.o $(INCLUDE_DIR)/vmlinux.h $(BPFTOOL) | $(INCLUDE_…
/tools/perf/tests/
Dvmlinux-kallsyms.c196 struct machine vmlinux; in test__vmlinux_matches_kallsyms() local
208 machine__init(&vmlinux, "", HOST_KERNEL_ID); in test__vmlinux_matches_kallsyms()
210 maps = machine__kernel_maps(&vmlinux); in test__vmlinux_matches_kallsyms()
257 if (machine__create_kernel_maps(&vmlinux) < 0) { in test__vmlinux_matches_kallsyms()
262 args.vmlinux_map = machine__kernel_map(&vmlinux); in test__vmlinux_matches_kallsyms()
275 if (machine__load_vmlinux_path(&vmlinux) <= 0) { in test__vmlinux_matches_kallsyms()
378 machine__exit(&vmlinux); in test__vmlinux_matches_kallsyms()
/tools/testing/selftests/hid/
DMakefile86 VMLINUX_BTF_PATHS ?= $(if $(O),$(O)/vmlinux) \
87 $(if $(KBUILD_OUTPUT),$(KBUILD_OUTPUT)/vmlinux) \
88 ../../../../vmlinux \
89 /sys/kernel/btf/vmlinux \
90 /boot/vmlinux-$(shell uname -r)
93 $(error Cannot find a vmlinux for VMLINUX_BTF at any of "$(VMLINUX_BTF_PATHS)")
149 $(INCLUDE_DIR)/vmlinux.h: $(VMLINUX_BTF) $(BPFTOOL) | $(INCLUDE_DIR)
224 $(INCLUDE_DIR)/vmlinux.h \
/tools/bpf/bpftool/
DMakefile193 VMLINUX_BTF_PATHS ?= $(if $(O),$(O)/vmlinux) \
194 $(if $(KBUILD_OUTPUT),$(KBUILD_OUTPUT)/vmlinux) \
195 ../../../vmlinux \
196 /sys/kernel/btf/vmlinux \
197 /boot/vmlinux-$(shell uname -r)
208 $(OUTPUT)vmlinux.h: $(VMLINUX_BTF) $(BPFTOOL_BOOTSTRAP)
211 $(OUTPUT)vmlinux.h: $(VMLINUX_H)
215 $(OUTPUT)%.bpf.o: skeleton/%.bpf.c $(OUTPUT)vmlinux.h $(LIBBPF_BOOTSTRAP)
258 $(Q)$(RM) -- $(OUTPUT)*.skel.h $(OUTPUT)vmlinux.h
D.gitignore10 /vmlinux.h
/tools/perf/util/bpf_skel/vmlinux/
D.gitignore1 !vmlinux.h
/tools/perf/util/bpf_skel/
D.gitignore4 vmlinux.h
/tools/perf/tests/shell/
Dtrace_btf_enum.sh19 if ! ls /sys/kernel/btf/vmlinux 1>/dev/null 2>&1
/tools/testing/selftests/wireguard/qemu/
DMakefile131 KERNEL_BZIMAGE := $(KERNEL_BUILD_PATH)/vmlinux
143 KERNEL_BZIMAGE := $(KERNEL_BUILD_PATH)/vmlinux
155 KERNEL_BZIMAGE := $(KERNEL_BUILD_PATH)/vmlinux
167 KERNEL_BZIMAGE := $(KERNEL_BUILD_PATH)/vmlinux
179 KERNEL_BZIMAGE := $(KERNEL_BUILD_PATH)/vmlinux
189 KERNEL_BZIMAGE := $(KERNEL_BUILD_PATH)/vmlinux
209 KERNEL_BZIMAGE := $(KERNEL_BUILD_PATH)/vmlinux
253 KERNEL_BZIMAGE := $(KERNEL_BUILD_PATH)/vmlinux
/tools/testing/selftests/bpf/
DMakefile230 VMLINUX_BTF_PATHS ?= $(if $(O),$(O)/vmlinux) \
231 $(if $(KBUILD_OUTPUT),$(KBUILD_OUTPUT)/vmlinux) \
232 ../../../../vmlinux \
233 /sys/kernel/btf/vmlinux \
234 /boot/vmlinux-$(shell uname -r)
237 $(error Cannot find a vmlinux for VMLINUX_BTF at any of "$(VMLINUX_BTF_PATHS)")
424 $(INCLUDE_DIR)/vmlinux.h: $(VMLINUX_BTF) $(BPFTOOL) | $(INCLUDE_DIR)
427 $(Q)$(BPFTOOL) btf dump file $(VMLINUX_BTF) format c > $(INCLUDE_DIR)/.vmlinux.h.tmp
428 $(Q)cmp -s $(INCLUDE_DIR)/.vmlinux.h.tmp $@ || mv $(INCLUDE_DIR)/.vmlinux.h.tmp $@
597 $$(INCLUDE_DIR)/vmlinux.h \
/tools/perf/
DMakefile.perf244 VMLINUX_H=$(src-perf)/util/bpf_skel/vmlinux/vmlinux.h
1214 VMLINUX_BTF_ELF_PATHS ?= $(if $(O),$(O)/vmlinux) \
1215 $(if $(KBUILD_OUTPUT),$(KBUILD_OUTPUT)/vmlinux) \
1216 ../../vmlinux \
1217 /boot/vmlinux-$(shell uname -r)
1220 VMLINUX_BTF_BTF_PATHS ?= /sys/kernel/btf/vmlinux
1238 $(error Missing bpftool input for generating vmlinux.h)
1242 $(SKEL_OUT)/vmlinux.h: $(VMLINUX_BTF) $(BPFTOOL) $(VMLINUX_H)
1249 $(SKEL_TMP_OUT)/%.bpf.o: util/bpf_skel/%.bpf.c $(LIBBPF) $(SKEL_OUT)/vmlinux.h | $(SKEL_TMP_OUT)
1267 $(call QUIET_CLEAN, bpf-skel) $(RM) -r $(SKEL_TMP_OUT) $(SKELETONS) $(SKEL_OUT)/vmlinux.h

12