lkml.org 
[lkml]   [2009]   [Mar]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 00/10] tracepoint perf counter events and new ABI

* Peter Zijlstra <a.p.zijlstra@chello.nl> wrote:

> These patches change the event tracer to provide id files:
>
> [root@opteron ~]# for i in /debug/tracing/events/irq/*/id; do echo `cat $i` - $i; done
> 28 - /debug/tracing/events/irq/irq_handler_entry/id
> 29 - /debug/tracing/events/irq/irq_handler_exit/id
> 27 - /debug/tracing/events/irq/softirq_entry/id
> 26 - /debug/tracing/events/irq/softirq_exit/id
>
> These can then be used in profiling as:
>
> [root@opteron linux-2.6]# ~/perfstat -e 2:28 make O=native-build/ -j4 lib
> ...
>
> Performance counter stats for 'make':
>
> 18280.657602 task clock ticks (msecs)
>
> 465 tp: 28 (events)
>
> Wall-clock time elapsed: 11265.199196 msecs
>
> Showing that we had 465 irq_handler_entry events during that workload.

nice! I suspect perfstat could use "-e irq_handler_entry" type of
symbolic input as well.

I've started picking up the patches and started testing them.
Thanks Peter,

Ingo


\
 
 \ /
  Last update: 2009-03-20 10:31    [W:0.255 / U:0.284 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site