[PATCH v9 00/11] Add support for JSON event files.
Sukadev Bhattiprolu
sukadev at linux.vnet.ibm.com
Tue Apr 14 16:40:53 AEST 2015
This is another attempt to resurrect Andi Kleen's patchset so users
can specify perf events by their event names rather than raw codes.
This is a rebase of Andi Kleen's patchset from Jul 30, 2014[1] to 4.0.
(I fixed minor and not so minor conflicts).
This patchset includes the perf-download tool that was dropped and sets
the default download location to the (tools/perf/pmu-events/arch/...
directory in Linus's tree.
A follow-on patchset will include the actual JSON files for Powerpc, which
are currently available on github[2].
[1] https://lkml.org/lkml/2014/7/30/693
[2] https://github.com/open-power/power-pmu-events
Andi Kleen (9):
perf, tools: Add jsmn `jasmine' JSON parser
perf, tools: Add support for text descriptions of events and alias
add
perf, tools, list: Update perf list to output descriptions
perf, tools: Add support for reading JSON event files
perf, tools: Automatically look for event file name for cpu
perf, tools: Query terminal width and use in perf list
perf, tools: Add a new pmu interface to iterate over all events
perf, tools, test: Add test case for alias and JSON parsing
perf, tools: Add a --no-desc flag to perf list
Sukadev Bhattiprolu (2):
powerpc/perf: Implement get_cpu_str()
perf-download: Download the events json file
tools/perf/Documentation/perf-download.txt | 31 +++
tools/perf/Documentation/perf-list.txt | 29 ++-
tools/perf/Documentation/perf-record.txt | 9 +-
tools/perf/Documentation/perf-stat.txt | 8 +-
tools/perf/Makefile.perf | 12 +-
tools/perf/arch/powerpc/util/header.c | 12 ++
tools/perf/arch/x86/util/header.c | 19 +-
tools/perf/builtin-list.c | 18 +-
tools/perf/builtin-record.c | 3 +
tools/perf/builtin-stat.c | 2 +
tools/perf/perf-download.sh | 171 +++++++++++++++
tools/perf/tests/aliases.c | 59 ++++++
tools/perf/tests/builtin-test.c | 4 +
tools/perf/tests/tests.h | 1 +
tools/perf/util/cache.h | 1 +
tools/perf/util/jevents.c | 287 +++++++++++++++++++++++++
tools/perf/util/jevents.h | 9 +
tools/perf/util/jsmn.c | 313 ++++++++++++++++++++++++++++
tools/perf/util/jsmn.h | 67 ++++++
tools/perf/util/json.c | 162 ++++++++++++++
tools/perf/util/json.h | 13 ++
tools/perf/util/pager.c | 15 ++
tools/perf/util/parse-events.c | 4 +-
tools/perf/util/parse-events.h | 2 +-
tools/perf/util/pmu.c | 160 +++++++++++---
tools/perf/util/pmu.h | 5 +-
26 files changed, 1365 insertions(+), 51 deletions(-)
create mode 100644 tools/perf/Documentation/perf-download.txt
create mode 100755 tools/perf/perf-download.sh
create mode 100644 tools/perf/tests/aliases.c
create mode 100644 tools/perf/util/jevents.c
create mode 100644 tools/perf/util/jevents.h
create mode 100644 tools/perf/util/jsmn.c
create mode 100644 tools/perf/util/jsmn.h
create mode 100644 tools/perf/util/json.c
create mode 100644 tools/perf/util/json.h
--
1.7.9.5
More information about the Linuxppc-dev
mailing list