]> git.baikalelectronics.ru Git - kernel.git/commit
perf ftrace: system_wide collection is not effective by default
authorChangbin Du <changbin.du@gmail.com>
Thu, 27 Jan 2022 13:20:10 +0000 (21:20 +0800)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Sun, 6 Feb 2022 12:19:51 +0000 (09:19 -0300)
commitfceb62124d8fe1f6fb4b64e8f11c095dca8e7ea7
treee119fd3e9fcf45a83cea59ca195727bedfd60e1d
parent407eb43ae87c969d98746c3274ae5d0f977b102e
perf ftrace: system_wide collection is not effective by default

The ftrace.target.system_wide must be set before invoking
evlist__create_maps(), otherwise it has no effect.

Fixes: 53be50282269b46c ("perf ftrace: Add 'latency' subcommand")
Signed-off-by: Changbin Du <changbin.du@gmail.com>
Acked-by: Namhyung Kim <namhyung@gmail.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: https://lore.kernel.org/r/20220127132010.4836-1-changbin.du@gmail.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-ftrace.c