Ravi Bangoria
3a9e9a4709
perf trace: Fix call-graph output
Recently, Arnaldo fixed global vs event specific --max-stack usage with
commit bd3dda9ab0 ("perf trace: Allow overriding global --max-stack
per event"). This commit is having a regression when we don't use
--max-stack at all with perf trace. Ex,
$ ./perf trace record -g ls
$ ./perf trace -i perf.data
0.076 ( 0.002 ms): ls/9109 brk(
0.196 ( 0.008 ms): ls/9109 access(filename: 0x9f998b70, mode: R
0.209 ( 0.031 ms): ls/9109 open(filename: 0x9f998978, flags: CLOEXEC
This is missing call-traces.
After patch:
$ ./perf trace -i perf.data
0.076 ( 0.002 ms): ls/9109 brk(
do_syscall_trace_leave ([kernel.kallsyms])
[0] ([unknown])
syscall_exit_work ([kernel.kallsyms])
brk (/usr/lib64/ld-2.17.so)
_dl_sysdep_start (/usr/lib64/ld-2.17.so)
_dl_start_final (/usr/lib64/ld-2.17.so)
_dl_start (/usr/lib64/ld-2.17.so)
_start (/usr/lib64/ld-2.17.so)
0.196 ( 0.008 ms): ls/9109 access(filename: 0x9f998b70, mode: R
do_syscall_trace_leave ([kernel.kallsyms])
[0] ([unknown])
Signed-off-by: Ravi Bangoria <ravi.bangoria@linux.vnet.ibm.com>
Tested-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Fixes: bd3dda9ab0 ("perf trace: Allow overriding global --max-stack per event")
Link: http://lkml.kernel.org/r/20180130053053.13214-3-ravi.bangoria@linux.vnet.ibm.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
|
2018-02-05 13:53:45 -03:00 |
| .. |
|
arch
|
perf record: Fix failed memory allocation for get_cpuid_str
|
2018-01-17 10:31:25 -03:00 |
|
bench
|
perf perf: Remove duplicate includes
|
2017-12-27 12:15:49 -03:00 |
|
Documentation
|
perf trace: Add --print-sample
|
2018-01-25 06:37:29 -03:00 |
|
jvmti
|
perf jvmti: Generate correct debug information for inlined code
|
2017-12-18 11:54:08 -03:00 |
|
pmu-events
|
perf vendor events intel: Update IvyTown files to V20
|
2018-01-25 06:37:21 -03:00 |
|
python
|
|
|
|
scripts
|
perf script python: Add script to profile and resolve physical mem type
|
2018-01-12 11:06:57 -03:00 |
|
tests
|
perf evlist: Remove fcntl.h from evlist.h
|
2018-01-25 06:37:30 -03:00 |
|
trace
|
perf trace beauty flock: Move to separate object file
|
2018-01-25 06:37:31 -03:00 |
|
ui
|
perf annotate: Get the cpuid from evsel->evlist->env in symbol__annotate()
|
2017-12-27 12:15:51 -03:00 |
|
util
|
perf record: Fix period option handling
|
2018-02-05 12:18:28 -03:00 |
|
.gitignore
|
|
|
|
Build
|
perf trace: Remove audit-libs dependency if syscall tables are present
|
2018-01-23 09:51:38 -03:00 |
|
builtin-annotate.c
|
|
|
|
builtin-bench.c
|
|
|
|
builtin-buildid-cache.c
|
perf buildid-cache: Update help text for purge command
|
2017-11-16 14:49:54 -03:00 |
|
builtin-buildid-list.c
|
|
|
|
builtin-c2c.c
|
perf unwind: Do not look just at the global callchain_param.record_mode
|
2018-01-17 10:23:32 -03:00 |
|
builtin-config.c
|
|
|
|
builtin-data.c
|
|
|
|
builtin-diff.c
|
|
|
|
builtin-evlist.c
|
|
|
|
builtin-ftrace.c
|
|
|
|
builtin-help.c
|
perf trace: Remove audit-libs dependency if syscall tables are present
|
2018-01-23 09:51:38 -03:00 |
|
builtin-inject.c
|
perf tools: Get rid of unused 'swapped' parameter from perf_event__synthesize_sample()
|
2018-01-18 09:01:23 -03:00 |
|
builtin-kallsyms.c
|
|
|
|
builtin-kmem.c
|
|
|
|
builtin-kvm.c
|
perf evlist: Remove fcntl.h from evlist.h
|
2018-01-25 06:37:30 -03:00 |
|
builtin-list.c
|
|
|
|
builtin-lock.c
|
|
|
|
builtin-mem.c
|
|
|
|
builtin-probe.c
|
|
|
|
builtin-record.c
|
perf record: Fix period option handling
|
2018-02-05 12:18:28 -03:00 |
|
builtin-report.c
|
perf report: Remove the time slices number limitation
|
2018-01-17 10:23:37 -03:00 |
|
builtin-sched.c
|
|
|
|
builtin-script.c
|
perf evlist: Remove fcntl.h from evlist.h
|
2018-01-25 06:37:30 -03:00 |
|
builtin-stat.c
|
perf perf: Remove duplicate includes
|
2017-12-27 12:15:49 -03:00 |
|
builtin-timechart.c
|
|
|
|
builtin-top.c
|
perf annotate: Get the cpuid from evsel->evlist->env in symbol__annotate()
|
2017-12-27 12:15:51 -03:00 |
|
builtin-trace.c
|
perf trace: Fix call-graph output
|
2018-02-05 13:53:45 -03:00 |
|
builtin-version.c
|
|
|
|
builtin.h
|
|
|
|
check-headers.sh
|
tools include asm-generic: Grab errno.h and errno-base.h
|
2018-01-23 09:51:37 -03:00 |
|
command-list.txt
|
|
|
|
CREDITS
|
|
|
|
design.txt
|
|
|
|
Makefile
|
|
|
|
Makefile.config
|
perf tools: Integrating the CoreSight decoding library
|
2018-01-25 06:37:23 -03:00 |
|
Makefile.perf
|
perf tools: Integrating the CoreSight decoding library
|
2018-01-25 06:37:23 -03:00 |
|
MANIFEST
|
|
|
|
perf-archive.sh
|
|
|
|
perf-completion.sh
|
perf tools: Auto-complete for events with ':'
|
2017-12-27 12:16:00 -03:00 |
|
perf-read-vdso.c
|
|
|
|
perf-sys.h
|
|
|
|
perf-with-kcore.sh
|
|
|
|
perf.c
|
perf trace: Remove audit-libs dependency if syscall tables are present
|
2018-01-23 09:51:38 -03:00 |
|
perf.h
|
perf record: Fix period option handling
|
2018-02-05 12:18:28 -03:00 |