From: Jiri Olsa <jolsa@redhat.com>
To: acme@redhat.com, a.p.zijlstra@chello.nl, mingo@elte.hu,
paulus@samba.org, cjashfor@linux.vnet.ibm.com,
fweisbec@gmail.com
Cc: linux-kernel@vger.kernel.org
Subject: [PATCHv5 0/8] perf tool: parser generator for events parsing
Date: Thu, 16 Feb 2012 13:00:44 +0100 [thread overview]
Message-ID: <1329393652-6055-1-git-send-email-jolsa@redhat.com> (raw)
hi,
here's new version of event parsing patchset.
I saw Arnaldo already sent patches 1-3 to Ingo, but they did not make it
to the tree yet, so I'm still attaching them here.
v5 changes:
4/8 - patch updated by Peter with actual format definitions
for x86 processors
6/8 - added hardcoded terms for config[12] and sample_period
the code is ready to include branch_sample_type once
this field is available in perf_event_attr, just
uncommenting one line.. ;)
- allow config option to be used without value in which
case 1 is assigned as value
Overall summarize:
- adding event parser bison/flex generator
- the event syntax stays as it was
- adding event format sysfs group attribute
for pmu device
- adding new syntax to specify raw events based
on the sysfs pmu's format attribute
eg. "cpu/config=1,config1=2,config2=3/u"
Attached patches:
1/8 perf, tool: Remove unused functions from debugfs object
2/8 perf, tool: Add sysfs mountpoint interface
3/8 perf, tool: Add bitmap_or function into bitmap object
4/8 perf: Adding sysfs group format attribute for pmu device
5/8 perf, tool: Add parser generator for events parsing
6/8 perf, tool: Add config options support for event parsing
7/8 perf, tool: Add perf pmu object to access pmu format definition
8/8 perf, tool: Add support to specify pmu style event
thanks,
jirka
---
.../testing/sysfs-bus-event_source-devices-format | 14 +
arch/x86/kernel/cpu/perf_event.c | 7 +
arch/x86/kernel/cpu/perf_event.h | 1 +
arch/x86/kernel/cpu/perf_event_amd.c | 19 +
arch/x86/kernel/cpu/perf_event_intel.c | 36 +
arch/x86/kernel/cpu/perf_event_p6.c | 19 +
include/linux/perf_event.h | 14 +
tools/perf/Makefile | 31 +
tools/perf/builtin-test.c | 58 +-
tools/perf/util/bitmap.c | 10 +
tools/perf/util/debugfs.c | 141 --
tools/perf/util/debugfs.h | 6 -
tools/perf/util/include/linux/bitmap.h | 11 +
tools/perf/util/parse-events-bison.c | 1852 ++++++++++++++++
tools/perf/util/parse-events-bison.h | 82 +
tools/perf/util/parse-events-flex.c | 2272 ++++++++++++++++++++
tools/perf/util/parse-events-flex.h | 316 +++
tools/perf/util/parse-events.c | 590 +++---
tools/perf/util/parse-events.h | 46 +
tools/perf/util/parse-events.l | 126 ++
tools/perf/util/parse-events.y | 217 ++
tools/perf/util/pmu-bison.c | 1663 ++++++++++++++
tools/perf/util/pmu-bison.h | 73 +
tools/perf/util/pmu-flex.c | 1821 ++++++++++++++++
tools/perf/util/pmu-flex.h | 316 +++
tools/perf/util/pmu.c | 469 ++++
tools/perf/util/pmu.h | 41 +
tools/perf/util/pmu.l | 43 +
tools/perf/util/pmu.y | 93 +
tools/perf/util/sysfs.c | 60 +
tools/perf/util/sysfs.h | 6 +
31 files changed, 9974 insertions(+), 479 deletions(-)
next reply other threads:[~2012-02-16 12:01 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-16 12:00 Jiri Olsa [this message]
2012-02-16 12:00 ` [PATCH 1/8] perf, tool: Remove unused functions from debugfs object Jiri Olsa
2012-02-16 12:00 ` [PATCH 2/8] perf, tool: Add sysfs mountpoint interface Jiri Olsa
2012-02-16 12:00 ` [PATCH 3/8] perf, tool: Add bitmap_or function into bitmap object Jiri Olsa
2012-02-16 12:00 ` [PATCH 4/8] perf: Adding sysfs group format attribute for pmu device Jiri Olsa
2012-02-16 12:00 ` [PATCH 5/8] perf, tool: Add parser generator for events parsing Jiri Olsa
2012-02-16 12:00 ` [PATCH 6/8] perf, tool: Add config options support for event parsing Jiri Olsa
2012-02-16 12:00 ` [PATCH 7/8] perf, tool: Add perf pmu object to access pmu format definition Jiri Olsa
2012-02-16 12:00 ` [PATCH 8/8] perf, tool: Add support to specify pmu style event Jiri Olsa
2012-02-16 17:03 ` [PATCHv5 0/8] perf tool: parser generator for events parsing Peter Zijlstra
2012-02-16 17:35 ` Arnaldo Carvalho de Melo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1329393652-6055-1-git-send-email-jolsa@redhat.com \
--to=jolsa@redhat.com \
--cc=a.p.zijlstra@chello.nl \
--cc=acme@redhat.com \
--cc=cjashfor@linux.vnet.ibm.com \
--cc=fweisbec@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=paulus@samba.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®