[RFC 0/3] perf tool: Add new event group management
From: Jiri Olsa
Date: Thu Dec 15 2011 - 10:31:42 EST
hi,
adding support for creating event groups based on the way they
are specified on the command line.
As reading through some lkml postings like:
http://marc.info/?t=130105133700002&r=1&w=2
http://marc.info/?t=129065042800002&r=1&w=2
it seems decided to use bison/flex for event parsing first,
and do the group management on the top of it.. and thats what
I'm trying to do in this patchset.
Since this is quite hot code I expect some discussion/reposts ;),
so sending it first as RFC..
attached patches:
1/3 perf, tool: Add parser generator for events parsing
2/3 perf, tool: Add new event group management
3/3 perf, tool: Add more automated tests for event parsing
thanks for comments,
jirka
---
tools/perf/Makefile | 23 ++
tools/perf/builtin-record.c | 8 +-
tools/perf/builtin-stat.c | 10 +-
tools/perf/builtin-test.c | 245 ++++++++++++++++++-
tools/perf/builtin-top.c | 8 +-
tools/perf/perf.h | 2 +-
tools/perf/util/evsel.c | 28 ++-
tools/perf/util/evsel.h | 9 +-
tools/perf/util/group.c | 23 ++
tools/perf/util/group.h | 25 ++
tools/perf/util/parse-events-bison.y | 119 +++++++++
tools/perf/util/parse-events-flex.l | 111 ++++++++
tools/perf/util/parse-events.c | 465 ++++++++++++----------------------
tools/perf/util/parse-events.h | 9 +
tools/perf/util/python.c | 4 +
tools/perf/util/top.h | 2 +-
16 files changed, 760 insertions(+), 331 deletions(-)
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/