Hello,

2011/5/31 Pádraig Brady <[email protected]>:
> On 27/05/11 14:46, Pádraig Brady wrote:
>> 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 $*
>
> I've also just noticed the -ddd option recently added with:
> http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=2cba3ffb
>
> I've attached some more documentation which might be useful?

Probably more useful is to update the man pages too with a '-d -d -d'
verbosity :)

BTW, can't this new option be part to perf-record too ?

Thanks
-- 
Francis
--
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

Reply via email to