[PATCH v3 0/2] perf parse-events: Break out tracepoint and printing
From: Ian Rogers
Date: Fri Jul 29 2022 - 16:42:35 EST
parse-events.c is a large piece of code that doesn't need to contain the
printing (perf list) and tracepoint functionality. Split apart.
v3. Split removal of #define to its own change as suggested by Jiri
Olsa <jolsa@xxxxxxxxxx>.
v2. Rebase in particular after hybrid PMU changes.
Ian Rogers (2):
perf parse-events: Don't #define YY_EXTRA_TYPE
perf parse-events: Break out tracepoint and printing.
tools/perf/builtin-list.c | 2 +-
tools/perf/builtin-lock.c | 1 +
tools/perf/builtin-timechart.c | 1 +
tools/perf/builtin-trace.c | 1 +
tools/perf/util/Build | 2 +
tools/perf/util/parse-events.c | 714 +----------------------------
tools/perf/util/parse-events.h | 31 --
tools/perf/util/print-events.c | 571 +++++++++++++++++++++++
tools/perf/util/print-events.h | 22 +
tools/perf/util/trace-event-info.c | 96 ++++
tools/perf/util/tracepoint.c | 63 +++
tools/perf/util/tracepoint.h | 25 +
12 files changed, 790 insertions(+), 739 deletions(-)
create mode 100644 tools/perf/util/print-events.c
create mode 100644 tools/perf/util/print-events.h
create mode 100644 tools/perf/util/tracepoint.c
create mode 100644 tools/perf/util/tracepoint.h
--
2.37.1.455.g008518b4e5-goog