OSDN Git Service

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)
commit7e035929f3fec70d411fb660c434f4a7f8ca386d
tree14c3d2627f1a704d1a54914118e4ed8b25c41fb7
parentbcddbfc5c8c952175e9a5f1a4186685fa0338a14
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