mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-05 07:16:56 +07:00
64eff7d9c4
Allow user to specify list of symbols which cause the dump of callchains to stop at that symbol. Committer notes: Testing it: # perf record -ag usleep 1 [ perf record: Woken up 1 times to write data ] [ perf record: Captured and wrote 1.177 MB perf.data (33 samples) ] # # # Without it: # # perf script swapper 0 [000] 9693.370039: 1 cycles:ppp: 2072ad x86_pmu_enable (/usr/lib/debug/lib/modules/4.8.8-300.fc25.x86_64/vmlinux) 3a29d7 perf_pmu_enable.part.90 (/usr/lib/debug/lib/modules/4.8.8-300.fc25.x86_64/vmlinux) 3a713a ctx_resched (/usr/lib/debug/lib/modules/4.8.8-300.fc25.x86_64/vmlinux) 3a76c1 __perf_event_enable (/usr/lib/debug/lib/modules/4.8.8-300.fc25.x86_64/vmlinux) 3a0390 event_function (/usr/lib/debug/lib/modules/4.8.8-300.fc25.x86_64/vmlinux) 3a1cff remote_function (/usr/lib/debug/lib/modules/4.8.8-300.fc25.x86_64/vmlinux) 326978 flush_smp_call_function_queue (/usr/lib/debug/lib/modules/4.8.8-300.fc25.x86_64/vmlinux) 327413 generic_smp_call_function_single_interrupt (/usr/lib/debug/lib/modules/4.8.8-300.fc25.x86_64/vmlinux) 249b37 smp_call_function_single_interrupt (/usr/lib/debug/lib/modules/4.8.8-300.fc25.x86_64/vmlinux) a04b2c call_function_single_interrupt (/usr/lib/debug/lib/modules/4.8.8-300.fc25.x86_64/vmlinux) 889427 cpuidle_enter (/usr/lib/debug/lib/modules/4.8.8-300.fc25.x86_64/vmlinux) 2e534a call_cpuidle (/usr/lib/debug/lib/modules/4.8.8-300.fc25.x86_64/vmlinux) 2e5730 cpu_startup_entry (/usr/lib/debug/lib/modules/4.8.8-300.fc25.x86_64/vmlinux) 9f5167 rest_init (/usr/lib/debug/lib/modules/4.8.8-300.fc25.x86_64/vmlinux) 137ffeb start_kernel ([kernel.vmlinux].init.text) 137f2ca x86_64_start_reservations ([kernel.vmlinux].init.text) 137f419 x86_64_start_kernel ([kernel.vmlinux].init.text) swapper 0 [000] 9693.370044: 1 cycles:ppp: 20ca1b intel_pmu_handle_irq (/usr/lib/debug/lib/modules/4.8.8-300.fc25.x86_64/vmlinux) 205b0c perf_event_nmi_handler (/usr/lib/debug/lib/modules/4.8.8-300.fc25.x86_64/vmlinux) 22a14a nmi_handle (/usr/lib/debug/lib/modules/4.8.8-300.fc25.x86_64/vmlinux) 22a6b3 default_do_nmi (/usr/lib/debug/lib/modules/4.8.8-300.fc25.x86_64/vmlinux) 22a83c do_nmi (/usr/lib/debug/lib/modules/4.8.8-300.fc25.x86_64/vmlinux) a03fb1 end_repeat_nmi (/usr/lib/debug/lib/modules/4.8.8-300.fc25.x86_64/vmlinux) 3a29d7 perf_pmu_enable.part.90 (/usr/lib/debug/lib/modules/4.8.8-300.fc25.x86_64/vmlinux) 3a713a ctx_resched (/usr/lib/debug/lib/modules/4.8.8-300.fc25.x86_64/vmlinux) 3a76c1 __perf_event_enable (/usr/lib/debug/lib/modules/4.8.8-300.fc25.x86_64/vmlinux) 3a0390 event_function (/usr/lib/debug/lib/modules/4.8.8-300.fc25.x86_64/vmlinux) 3a1cff remote_function (/usr/lib/debug/lib/modules/4.8.8-300.fc25.x86_64/vmlinux) 326978 flush_smp_call_function_queue (/usr/lib/debug/lib/modules/4.8.8-300.fc25.x86_64/vmlinux) 327413 generic_smp_call_function_single_interrupt (/usr/lib/debug/lib/modules/4.8.8-300.fc25.x86_64/vmlinux) 249b37 smp_call_function_single_interrupt (/usr/lib/debug/lib/modules/4.8.8-300.fc25.x86_64/vmlinux) a04b2c call_function_single_interrupt (/usr/lib/debug/lib/modules/4.8.8-300.fc25.x86_64/vmlinux) 889427 cpuidle_enter (/usr/lib/debug/lib/modules/4.8.8-300.fc25.x86_64/vmlinux) 2e534a call_cpuidle (/usr/lib/debug/lib/modules/4.8.8-300.fc25.x86_64/vmlinux) 2e5730 cpu_startup_entry (/usr/lib/debug/lib/modules/4.8.8-300.fc25.x86_64/vmlinux) 9f5167 rest_init (/usr/lib/debug/lib/modules/4.8.8-300.fc25.x86_64/vmlinux) 137ffeb start_kernel ([kernel.vmlinux].init.text) 137f2ca x86_64_start_reservations ([kernel.vmlinux].init.text) # # # Using it to see just what are the calls from the 'remote_function' function: # # perf script --stop-bt remote_function swapper 0 [000] 9693.370039: 1 cycles:ppp: 2072ad x86_pmu_enable (/usr/lib/debug/lib/modules/4.8.8-300.fc25.x86_64/vmlinux) 3a29d7 perf_pmu_enable.part.90 (/usr/lib/debug/lib/modules/4.8.8-300.fc25.x86_64/vmlinux) 3a713a ctx_resched (/usr/lib/debug/lib/modules/4.8.8-300.fc25.x86_64/vmlinux) 3a76c1 __perf_event_enable (/usr/lib/debug/lib/modules/4.8.8-300.fc25.x86_64/vmlinux) 3a0390 event_function (/usr/lib/debug/lib/modules/4.8.8-300.fc25.x86_64/vmlinux) 3a1cff remote_function (/usr/lib/debug/lib/modules/4.8.8-300.fc25.x86_64/vmlinux) swapper 0 [000] 9693.370044: 1 cycles:ppp: 20ca1b intel_pmu_handle_irq (/usr/lib/debug/lib/modules/4.8.8-300.fc25.x86_64/vmlinux) 205b0c perf_event_nmi_handler (/usr/lib/debug/lib/modules/4.8.8-300.fc25.x86_64/vmlinux) 22a14a nmi_handle (/usr/lib/debug/lib/modules/4.8.8-300.fc25.x86_64/vmlinux) 22a6b3 default_do_nmi (/usr/lib/debug/lib/modules/4.8.8-300.fc25.x86_64/vmlinux) 22a83c do_nmi (/usr/lib/debug/lib/modules/4.8.8-300.fc25.x86_64/vmlinux) a03fb1 end_repeat_nmi (/usr/lib/debug/lib/modules/4.8.8-300.fc25.x86_64/vmlinux) 3a29d7 perf_pmu_enable.part.90 (/usr/lib/debug/lib/modules/4.8.8-300.fc25.x86_64/vmlinux) 3a713a ctx_resched (/usr/lib/debug/lib/modules/4.8.8-300.fc25.x86_64/vmlinux) 3a76c1 __perf_event_enable (/usr/lib/debug/lib/modules/4.8.8-300.fc25.x86_64/vmlinux) 3a0390 event_function (/usr/lib/debug/lib/modules/4.8.8-300.fc25.x86_64/vmlinux) 3a1cff remote_function (/usr/lib/debug/lib/modules/4.8.8-300.fc25.x86_64/vmlinux) Signed-off-by: David Ahern <dsa@cumulusnetworks.com> Tested-by: Arnaldo Carvalho de Melo <acme@redhat.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Peter Zijlstra <peterz@infradead.org> Link: http://lkml.kernel.org/r/1480104021-36275-1-git-send-email-dsahern@gmail.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com> |
||
---|---|---|
.. | ||
include | ||
intel-pt-decoder | ||
libunwind | ||
scripting-engines | ||
alias.c | ||
annotate.c | ||
annotate.h | ||
auxtrace.c | ||
auxtrace.h | ||
block-range.c | ||
block-range.h | ||
bpf-loader.c | ||
bpf-loader.h | ||
bpf-prologue.c | ||
bpf-prologue.h | ||
Build | ||
build-id.c | ||
build-id.h | ||
cache.h | ||
call-path.c | ||
call-path.h | ||
callchain.c | ||
callchain.h | ||
cgroup.c | ||
cgroup.h | ||
cloexec.c | ||
cloexec.h | ||
color.c | ||
color.h | ||
comm.c | ||
comm.h | ||
config.c | ||
config.h | ||
counts.c | ||
counts.h | ||
cpumap.c | ||
cpumap.h | ||
cs-etm.h | ||
ctype.c | ||
data-convert-bt.c | ||
data-convert-bt.h | ||
data-convert.h | ||
data.c | ||
data.h | ||
db-export.c | ||
db-export.h | ||
debug.c | ||
debug.h | ||
demangle-java.c | ||
demangle-java.h | ||
demangle-rust.c | ||
demangle-rust.h | ||
drv_configs.c | ||
drv_configs.h | ||
dso.c | ||
dso.h | ||
dwarf-aux.c | ||
dwarf-aux.h | ||
dwarf-regs.c | ||
env.c | ||
env.h | ||
event.c | ||
event.h | ||
evlist.c | ||
evlist.h | ||
evsel_fprintf.c | ||
evsel.c | ||
evsel.h | ||
find-vdso-map.c | ||
genelf_debug.c | ||
genelf.c | ||
genelf.h | ||
generate-cmdlist.sh | ||
group.h | ||
header.c | ||
header.h | ||
help-unknown-cmd.c | ||
help-unknown-cmd.h | ||
hist.c | ||
hist.h | ||
intel-bts.c | ||
intel-bts.h | ||
intel-pt.c | ||
intel-pt.h | ||
intlist.c | ||
intlist.h | ||
jit.h | ||
jitdump.c | ||
jitdump.h | ||
kvm-stat.h | ||
levenshtein.c | ||
levenshtein.h | ||
llvm-utils.c | ||
llvm-utils.h | ||
lzma.c | ||
machine.c | ||
machine.h | ||
map.c | ||
map.h | ||
mem-events.c | ||
mem-events.h | ||
ordered-events.c | ||
ordered-events.h | ||
parse-branch-options.c | ||
parse-branch-options.h | ||
parse-events.c | ||
parse-events.h | ||
parse-events.l | ||
parse-events.y | ||
parse-regs-options.c | ||
parse-regs-options.h | ||
path.c | ||
perf_regs.c | ||
perf_regs.h | ||
perf-hooks-list.h | ||
perf-hooks.c | ||
perf-hooks.h | ||
PERF-VERSION-GEN | ||
pmu.c | ||
pmu.h | ||
pmu.l | ||
pmu.y | ||
probe-event.c | ||
probe-event.h | ||
probe-file.c | ||
probe-file.h | ||
probe-finder.c | ||
probe-finder.h | ||
pstack.c | ||
pstack.h | ||
python-ext-sources | ||
python.c | ||
quote.c | ||
quote.h | ||
rb_resort.h | ||
rblist.c | ||
rblist.h | ||
record.c | ||
session.c | ||
session.h | ||
setup.py | ||
sort.c | ||
sort.h | ||
srcline.c | ||
stat-shadow.c | ||
stat.c | ||
stat.h | ||
strbuf.c | ||
strbuf.h | ||
strfilter.c | ||
strfilter.h | ||
string.c | ||
strlist.c | ||
strlist.h | ||
svghelper.c | ||
svghelper.h | ||
symbol_fprintf.c | ||
symbol-elf.c | ||
symbol-minimal.c | ||
symbol.c | ||
symbol.h | ||
syscalltbl.c | ||
syscalltbl.h | ||
target.c | ||
target.h | ||
term.c | ||
term.h | ||
thread_map.c | ||
thread_map.h | ||
thread-stack.c | ||
thread-stack.h | ||
thread.c | ||
thread.h | ||
tool.h | ||
top.c | ||
top.h | ||
trace-event-info.c | ||
trace-event-parse.c | ||
trace-event-read.c | ||
trace-event-scripting.c | ||
trace-event.c | ||
trace-event.h | ||
trigger.h | ||
tsc.c | ||
tsc.h | ||
unwind-libdw.c | ||
unwind-libdw.h | ||
unwind-libunwind-local.c | ||
unwind-libunwind.c | ||
unwind.h | ||
usage.c | ||
util.c | ||
util.h | ||
values.c | ||
values.h | ||
vdso.c | ||
vdso.h | ||
xyarray.c | ||
xyarray.h | ||
zlib.c |