User: Password:
|
|
Subscribe / Log in / New account

tracepoint perf counter events and new ABI

From:  Peter Zijlstra <a.p.zijlstra@chello.nl>
To:  mingo@elte.hu, paulus@samba.org, rostedt@goodmis.org
Subject:  [PATCH 00/10] tracepoint perf counter events and new ABI
Date:  Thu, 19 Mar 2009 20:26:10 +0100
Message-ID:  <20090319192610.660857280@chello.nl>
Cc:  linux-kernel@vger.kernel.org, Peter Zijlstra <a.p.zijlstra@chello.nl>
Archive-link:  Article

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.

-- 

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


Copyright © 2009, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds