lkml.org 
[lkml]   [2011]   [Dec]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[RFC 0/3] perf tool: Add new event group management
Date
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(-)


\
 
 \ /
  Last update: 2011-12-15 16:33    [W:0.113 / U:3.680 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site