linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCHv3 0/6] perf, tool: Allow to use hw events in PMU syntax
@ 2012-07-09 20:37 Jiri Olsa
  2012-07-09 20:37 ` [PATCH 1/6] perf, x86: Making hardware events translations available in sysfs Jiri Olsa
                   ` (6 more replies)
  0 siblings, 7 replies; 11+ messages in thread
From: Jiri Olsa @ 2012-07-09 20:37 UTC (permalink / raw)
  To: acme, a.p.zijlstra, mingo, paulus, cjashfor, fweisbec, eranian
  Cc: linux-kernel

hi,
here's the change to make following syntax available:
  perf stat -e cpu/event=instructions/u ls

this is identical to:
  perf stat -e instructions:u ls

v3 changes:
  - patches v2 1,5,6,9 are already in
  - patch 1 - sysfs 'events' attribute file names with dashes '-'
            - using 'event/umask/inv/cmask' terms assigments instead simple 'config'
  - patch 2 - undefined events sysfs attributes filtered out

v2 changes:
  - making the hw events translations available under the 'events',
    the userspace trnaslation is then done by existing term aliasing
    code with some little tweeks ;)
  - patches 1-3 are independent fixies

Attached patches:
  1/6 perf, x86: Making hardware events translations available in sysfs
  2/6 perf, x86: Filter out undefined events from sysfs events attribute
  3/6 perf, tool: Fix pmu object alias initialization
  4/6 perf, tool: Properly free format data
  5/6 perf, tool: Add support to specify hw event as pmu event term
  6/6 perf, test: Add automated tests for pmu sysfs translated events

jirka
---
 arch/x86/kernel/cpu/perf_event.c    |   98 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 tools/perf/util/parse-events-test.c |   75 +++++++++++++++++++++++++++++++++++++++++++++++--
 tools/perf/util/parse-events.c      |   13 +++++++++
 tools/perf/util/parse-events.h      |    2 ++
 tools/perf/util/parse-events.y      |    9 ++++++
 tools/perf/util/pmu.c               |   59 ++++++++++++++++++++++++---------------
 6 files changed, 232 insertions(+), 24 deletions(-)

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2012-08-20  9:56 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-09 20:37 [PATCHv3 0/6] perf, tool: Allow to use hw events in PMU syntax Jiri Olsa
2012-07-09 20:37 ` [PATCH 1/6] perf, x86: Making hardware events translations available in sysfs Jiri Olsa
2012-08-20  8:25   ` Stephane Eranian
2012-08-20  9:55     ` Jiri Olsa
2012-07-09 20:37 ` [PATCH 2/6] perf, x86: Filter out undefined events from sysfs events attribute Jiri Olsa
2012-07-09 20:37 ` [PATCH 3/6] perf, tool: Fix pmu object alias initialization Jiri Olsa
2012-07-09 20:37 ` [PATCH 4/6] perf, tool: Properly free format data Jiri Olsa
2012-07-09 20:37 ` [PATCH 5/6] perf, tool: Add support to specify hw event as pmu event term Jiri Olsa
2012-07-09 20:37 ` [PATCH 6/6] perf, test: Add automated tests for pmu sysfs translated events Jiri Olsa
2012-08-08 12:42 ` [PATCHv3 0/6] perf, tool: Allow to use hw events in PMU syntax Jiri Olsa
2012-08-16 13:44   ` Jiri Olsa

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).