[PATCH 7/8] perf tools: Add support to specify hw event as pmu event term

2012-10-10 Thread Jiri Olsa
Adding a way to specify hw event as pmu event term like: 'cpu/event=cpu-cycles/u' 'cpu/event=instructions,.../u' 'cpu/cycles,.../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

[PATCH 7/8] perf tools: Add support to specify hw event as pmu event term

2012-10-10 Thread Jiri Olsa
Adding a way to specify hw event as pmu event term like: 'cpu/event=cpu-cycles/u' 'cpu/event=instructions,.../u' 'cpu/cycles,.../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