[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <cover.1246912068.git.jbaron@redhat.com>
Date: Mon, 6 Jul 2009 17:11:53 -0400
From: Jason Baron <jbaron@...hat.com>
To: mingo@...e.hu
Cc: linux-kernel@...r.kernel.org, paulus@...ba.org,
a.p.zijlstra@...llo.nl, rostedt@...dmis.org, fweisbec@...il.com
Subject: [PATCH 0/2] perf_counter: add tracepoint support
hi,
The following two patches build on Peter's initial tracepoint perf counter work.
The first patches enables the kernel side, and the second patch adds support to
the 'perf' tool itself. The debugfs filesystem needs to be mounted to make this
work and it is searched in the default location '/sys/kernel/debug'. We can
add an optional parameter to search for it elsewhere if need be.
Below, I show the output of 'perf list', and 'perf stat' for a tbench run.
thanks,
-Jason
> perf list
List of pre-defined events (to be used in -e):
cpu-cycles OR cycles [Hardware event]
instructions [Hardware event]
cache-references [Hardware event]
cache-misses [Hardware event]
branch-instructions OR branches [Hardware event]
branch-misses [Hardware event]
bus-cycles [Hardware event]
cpu-clock [Software event]
task-clock [Software event]
page-faults OR faults [Software event]
minor-faults [Software event]
major-faults [Software event]
context-switches OR cs [Software event]
cpu-migrations OR migrations [Software event]
L1-d$-loads [Hardware cache event]
L1-d$-load-misses [Hardware cache event]
L1-d$-stores [Hardware cache event]
L1-d$-store-misses [Hardware cache event]
L1-d$-prefetches [Hardware cache event]
L1-d$-prefetch-misses [Hardware cache event]
L1-i$-loads [Hardware cache event]
L1-i$-load-misses [Hardware cache event]
L1-i$-prefetches [Hardware cache event]
L1-i$-prefetch-misses [Hardware cache event]
LLC-loads [Hardware cache event]
LLC-load-misses [Hardware cache event]
LLC-stores [Hardware cache event]
LLC-store-misses [Hardware cache event]
LLC-prefetches [Hardware cache event]
LLC-prefetch-misses [Hardware cache event]
dTLB-loads [Hardware cache event]
dTLB-load-misses [Hardware cache event]
dTLB-stores [Hardware cache event]
dTLB-store-misses [Hardware cache event]
dTLB-prefetches [Hardware cache event]
dTLB-prefetch-misses [Hardware cache event]
iTLB-loads [Hardware cache event]
iTLB-load-misses [Hardware cache event]
branch-loads [Hardware cache event]
branch-load-misses [Hardware cache event]
rNNN [raw hardware event descriptor]
skb:kfree_skb [Tracepoint event]
block:block_rq_abort [Tracepoint event]
block:block_rq_insert [Tracepoint event]
block:block_rq_issue [Tracepoint event]
block:block_rq_requeue [Tracepoint event]
block:block_rq_complete [Tracepoint event]
block:block_bio_bounce [Tracepoint event]
block:block_bio_complete [Tracepoint event]
block:block_bio_backmerge [Tracepoint event]
block:block_bio_frontmerge [Tracepoint event]
block:block_bio_queue [Tracepoint event]
block:block_getrq [Tracepoint event]
block:block_sleeprq [Tracepoint event]
block:block_plug [Tracepoint event]
block:block_unplug_timer [Tracepoint event]
block:block_unplug_io [Tracepoint event]
block:block_split [Tracepoint event]
block:block_remap [Tracepoint event]
kmem:kmalloc [Tracepoint event]
kmem:kmem_cache_alloc [Tracepoint event]
kmem:kmalloc_node [Tracepoint event]
kmem:kmem_cache_alloc_node [Tracepoint event]
kmem:kfree [Tracepoint event]
kmem:kmem_cache_free [Tracepoint event]
ftrace:kmem_free [Tracepoint event]
ftrace:kmem_alloc [Tracepoint event]
ftrace:power [Tracepoint event]
ftrace:hw_branch [Tracepoint event]
ftrace:branch [Tracepoint event]
ftrace:print [Tracepoint event]
ftrace:bprint [Tracepoint event]
ftrace:user_stack [Tracepoint event]
ftrace:kernel_stack [Tracepoint event]
ftrace:special [Tracepoint event]
ftrace:context_switch [Tracepoint event]
ftrace:wakeup [Tracepoint event]
ftrace:funcgraph_exit [Tracepoint event]
ftrace:funcgraph_entry [Tracepoint event]
ftrace:function [Tracepoint event]
workqueue:workqueue_insertion [Tracepoint event]
workqueue:workqueue_execution [Tracepoint event]
workqueue:workqueue_creation [Tracepoint event]
workqueue:workqueue_destruction [Tracepoint event]
irq:irq_handler_entry [Tracepoint event]
irq:irq_handler_exit [Tracepoint event]
irq:softirq_entry [Tracepoint event]
irq:softirq_exit [Tracepoint event]
sched:sched_kthread_stop [Tracepoint event]
sched:sched_kthread_stop_ret [Tracepoint event]
sched:sched_wait_task [Tracepoint event]
sched:sched_wakeup [Tracepoint event]
sched:sched_wakeup_new [Tracepoint event]
sched:sched_switch [Tracepoint event]
sched:sched_migrate_task [Tracepoint event]
sched:sched_process_free [Tracepoint event]
sched:sched_process_exit [Tracepoint event]
sched:sched_process_wait [Tracepoint event]
sched:sched_process_fork [Tracepoint event]
sched:sched_signal_send [Tracepoint event]
> perf stat -a -e sched:sched_switch -e sched:sched_wakeup -e irq:irq_handler_entry tbench 4
Performance counter stats for 'tbench 4':
194658693 sched:sched_switch
97479295 sched:sched_wakeup
9122 irq:irq_handler_entry
720.171439729 seconds time elapsed
-add kernel tracepoint support
-add support for tracepoints to the perf tool
init/Kconfig | 2 +-
kernel/perf_counter.c | 6 +-
tools/perf/util/parse-events.c | 195 +++++++++++++++++++++++++++++++++++++++-
tools/perf/util/util.h | 2 +
4 files changed, 200 insertions(+), 5 deletions(-)
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists