Home
Reading
Searching
Subscribe
Sponsors
Statistics
Posting
Contact
Spam
Lists
Links
About
Hosting
Filtering
Features Download
Marketing
Archives
FAQ
Blog
 
Gmane
From: Jiri Olsa <jolsa <at> redhat.com>
Subject: [RFC 0/3] perf tool: Add new event group management
Newsgroups: gmane.linux.kernel
Date: Thursday 15th December 2011 15:30:36 UTC (over 5 years ago)
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(-)
 
CD: 3ms