]> git.baikalelectronics.ru Git - kernel.git/commit
perf trace: Postpone parsing .perfconfig trace.add_events to after --verbose is processed
authorArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 1 Oct 2019 18:44:44 +0000 (15:44 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 7 Oct 2019 15:22:17 +0000 (12:22 -0300)
commit48663e0c70bea0f2261dc68ceb9d47c9f9f1774f
tree14c3d2627f1a704d1a54914118e4ed8b25c41fb7
parent4ef08341f4ef6744d07f91eafa278d17103dd0fe
perf trace: Postpone parsing .perfconfig trace.add_events to after --verbose is processed

When we add events via the '[trace]' section in perfconfig the command
line options are not yet processed, so when something goes wrong with
parsing those events and using --verbose is advised, we end up not
getting any more verbosity by doing so.

So just copy the trace.add_events string for later processing, after we
processed --verbose and the other command line options.

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Luis Cláudio Gonçalves <lclaudio@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Link: https://lkml.kernel.org/n/tip-d6wbnz85ftqljdll6ynjyjd8@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-trace.c