1
0
Fork 0
mirror of https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git synced 2025-01-24 09:13:20 -05:00
linux/tools/perf
Yisheng Xie a3a4a3b37c perf top: Fix top.call-graph config option reading
When trying to add the "call-graph" variable for top into the
.perfconfig file, like:

      [top]
            call-graph = fp

I that perf_top_config() do not parse this variable.

Fix it by calling perf_default_config() when the top.call-graph variable
is set.

Signed-off-by: Yisheng Xie <xieyisheng1@huawei.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>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Wang Nan <wangnan0@huawei.com>
Fixes: b8cbb34906 ("perf config: Bring perf_default_config to the very beginning at main()")
Link: http://lkml.kernel.org/r/1520853957-36106-1-git-send-email-xieyisheng1@huawei.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2018-03-16 13:56:04 -03:00
..
arch perf tools arm64: Add libdw DWARF post unwind support for ARM64 2018-03-16 13:53:46 -03:00
bench
Documentation perf c2c record: Record physical addresses in samples 2018-03-16 13:52:57 -03:00
jvmti
pmu-events perf vendor events arm64: Enable JSON events for ThunderX2 B0 2018-03-16 13:55:41 -03:00
python
scripts
tests perf tests: Add mem2node object test 2018-03-16 13:52:48 -03:00
trace
ui perf report: Show zero counters as well in 'perf report --stat' 2018-03-16 13:55:36 -03:00
util perf unwind: Unwind with libdw doesn't take symfs into account 2018-03-16 13:55:51 -03:00
.gitignore
Build
builtin-annotate.c perf annotate: Support to display the IPC/Cycle in TUI mode 2018-03-08 11:30:52 -03:00
builtin-bench.c
builtin-buildid-cache.c
builtin-buildid-list.c
builtin-c2c.c perf c2c report: Add cacheline address count column 2018-03-16 13:53:38 -03:00
builtin-config.c
builtin-data.c
builtin-diff.c
builtin-evlist.c
builtin-ftrace.c
builtin-help.c
builtin-inject.c
builtin-kallsyms.c
builtin-kmem.c
builtin-kvm.c perf mmap: Simplify perf_mmap__read_init() 2018-03-08 10:05:53 -03:00
builtin-list.c
builtin-lock.c
builtin-mem.c
builtin-probe.c
builtin-record.c perf record: Avoid duplicate call of perf_default_config() 2018-03-16 13:55:58 -03:00
builtin-report.c perf report: Provide libtraceevent with a kernel symbol resolver 2018-03-08 11:30:51 -03:00
builtin-sched.c perf sched map: Re-annotate shortname if thread comm changed 2018-03-07 10:22:26 -03:00
builtin-script.c
builtin-stat.c perf stat: Fix core dump when flag T is used 2018-03-16 13:55:29 -03:00
builtin-timechart.c
builtin-top.c perf top: Fix top.call-graph config option reading 2018-03-16 13:56:04 -03:00
builtin-trace.c perf mmap: Simplify perf_mmap__read_init() 2018-03-08 10:05:53 -03:00
builtin-version.c
builtin.h
check-headers.sh
command-list.txt
CREDITS
design.txt
Makefile
Makefile.config perf tools arm64: Add libdw DWARF post unwind support for ARM64 2018-03-16 13:53:46 -03:00
Makefile.perf perf tools: Update tags with .cpp files 2018-03-08 11:30:47 -03:00
MANIFEST
perf-archive.sh
perf-completion.sh
perf-read-vdso.c
perf-sys.h
perf-with-kcore.sh
perf.c
perf.h perf record: Fix crash in pipe mode 2018-03-05 11:52:41 -03:00