[PATCH 5/6] perf, tool: Add support to specify hw event as pmu event term

2012-07-09 Thread Jiri Olsa
Adding a way to specify hw event as pmu event term like: 'cpu/event=cpu-cycles/u' 'cpu/event=instructions,.../u' The 'event=cpu-cycles' term is replaced/translated by the hw events term translation, which is exposed by sysfs 'events' group attribute. Adding parser bits, the rest is already

[PATCH 5/6] perf, tool: Add support to specify hw event as pmu event term

2012-07-09 Thread Jiri Olsa
Adding a way to specify hw event as pmu event term like: 'cpu/event=cpu-cycles/u' 'cpu/event=instructions,.../u' The 'event=cpu-cycles' term is replaced/translated by the hw events term translation, which is exposed by sysfs 'events' group attribute. Adding parser bits, the rest is already