perf probe: Support tracing an entry of array
authorMasami Hiramatsu <mhiramat@redhat.com>
Wed, 19 May 2010 19:57:42 +0000 (15:57 -0400)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 5 Jul 2010 21:50:27 +0000 (18:50 -0300)
commitb2a3c12b7442247c440f7083d48ef05716753ec1
treec3a3d0bb442e285979b0dbeecfbf0c04a8b3743e
parent73317b954041031249e8968d2e9023ff4e960d99
perf probe: Support tracing an entry of array

Add array-entry tracing support to perf probe. This enables to trace an entry
of array which is indexed by constant value, e.g. array[0].

For example:

  $ perf probe -a 'bio_split bi->bi_io_vec[0]'

Cc: Paul Mackerras <paulus@samba.org>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
LKML-Reference: <20100519195742.2885.5344.stgit@localhost6.localdomain6>
Signed-off-by: Masami Hiramatsu <mhiramat@redhat.com>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/Documentation/perf-probe.txt
tools/perf/util/probe-event.c
tools/perf/util/probe-event.h
tools/perf/util/probe-finder.c