perf parse-events: pass parse_state to add_tracepoint
authorDominique Martinet <asmadeus@codewreck.org>
Thu, 9 May 2024 22:24:30 +0000 (07:24 +0900)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 10 May 2024 13:49:09 +0000 (10:49 -0300)
commit11a42964850b5b6f866f64b0157e6e99b4d7ab9d
tree5f1f198d619c0057127f01f49ce42da074358650
parent25626e19ae6df34f336f235b6b3dbd1b566d2738
perf parse-events: pass parse_state to add_tracepoint

The next patch will add another flag to parse_state that we will want to
pass to evsel__newtp_idx(), so pass the whole parse_state all the way
down instead of giving only the index

Originally-by: Jiri Olsa <jolsa@kernel.org>
Reviewed-by: Ian Rogers <irogers@google.com>
Signed-off-by: Dominique Martinet <asmadeus@codewreck.org>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: https://lore.kernel.org/r/20240510-perf_digit-v4-1-db1553f3233b@codewreck.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/parse-events.c
tools/perf/util/parse-events.h
tools/perf/util/parse-events.y