[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220729204217.250166-1-irogers@google.com>
Date: Fri, 29 Jul 2022 13:42:15 -0700
From: Ian Rogers <irogers@...gle.com>
To: Peter Zijlstra <peterz@...radead.org>,
Ingo Molnar <mingo@...hat.com>,
Arnaldo Carvalho de Melo <acme@...nel.org>,
Mark Rutland <mark.rutland@....com>,
Alexander Shishkin <alexander.shishkin@...ux.intel.com>,
Jiri Olsa <jolsa@...nel.org>,
Namhyung Kim <namhyung@...nel.org>,
linux-kernel@...r.kernel.org, linux-perf-users@...r.kernel.org
Cc: Stephane Eranian <eranian@...gle.com>,
Ian Rogers <irogers@...gle.com>
Subject: [PATCH v3 0/2] perf parse-events: Break out tracepoint and printing
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@...nel.org>.
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
Powered by blists - more mailing lists