On 27/05/11 13:01, Francis Moreau wrote:
> Hello,
>
> Is there a mean to select all counters of a certain type ?
>
> For example I'd like to select all generalized hw counter with
> perf-stat, is this possible ?
I was looking for that too.
I didn't look too hard, but there was nothing obvious.
It would be very useful for example, to print all hardware counters
that are supported by the current system as you say.
To do that, I'm using this perf-hw script:
#!/bin/sh
hw_events=$(
for i in $(perf list | sed -n 's/\[Hardware.*event\]//; T; s/ OR .*//; p'); do
perf stat -e $i true >/dev/null 2>&1 &&
printf -- "-e %s \n" $i
done | tr -d '\n'
)
perf stat $hw_events $*
cheers,
Pádraig.
--
To unsubscribe from this list: send the line "unsubscribe linux-perf-users" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html