perf tools: Allow controlling synthesizing PERF_RECORD_ metadata events during record
authorNamhyung Kim <namhyung@kernel.org>
Wed, 11 Aug 2021 04:46:57 +0000 (21:46 -0700)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 17 Sep 2021 11:44:19 +0000 (08:44 -0300)
commit84111b9c950ec9a8b31166973e79aa77ddcee7e3
tree2032cb2379b409e67d8ba5020ea21e9d9b3efa3e
parent8228e9361e2a7447eaed87499123e85871c8bc18
perf tools: Allow controlling synthesizing PERF_RECORD_ metadata events during record

Depending on the use case, it might require some kind of synthesizing
and some not.  Make it controllable to turn off heavy operations like
MMAP for all tasks.

Currently all users are converted to enable all the synthesis by
default.  It'll be updated in the later patch.

Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Acked-by: Jiri Olsa <jolsa@redhat.com>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Ian Rogers <irogers@google.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Jin Yao <yao.jin@linux.intel.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Link: https //lore.kernel.org/r/20210811044658.1313391-1-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/bench/synthesize.c
tools/perf/builtin-kvm.c
tools/perf/builtin-record.c
tools/perf/builtin-top.c
tools/perf/builtin-trace.c
tools/perf/tests/code-reading.c
tools/perf/tests/mmap-thread-lookup.c
tools/perf/util/synthetic-events.c
tools/perf/util/synthetic-events.h