Re: [PATCH 1/4] perf tool: Parse general/raw events from sysfs

From: Robert Richter
Date: Wed Dec 21 2011 - 11:52:45 EST


On 15.12.11 18:23:41, Robert Richter wrote:
> From: Lin Ming <ming.m.lin@xxxxxxxxx>
>
> PMU can export general events to sysfs, for example,
>
> /sys/bus/event_source/devices/uncore/events
> âââ cycle
>
> Then specify the event as <pmu>:<event>,
>
> $ sudo perf stat -a -C 0 -e uncore:cycle
> ^C
> Performance counter stats for 'CPU 0':
>
> 56,547,314 uncore:cycle
>
> Raw event can be specified as <pmu>:rXXXX
>
> $ sudo perf stat -a -C 0 -e uncore:r0101
> ^C
> Performance counter stats for 'CPU 0':
>
> 8,504 uncore:r0101
>
> Signed-off-by: Lin Ming <ming.m.lin@xxxxxxxxx>

Forgot this:

Signed-off-by: Robert Richter <robert.richter@xxxxxxx>

-Robert

--
Advanced Micro Devices, Inc.
Operating System Research Center

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/