perf probe: Add data structure member access support
authorMasami Hiramatsu <mhiramat@redhat.com>
Tue, 16 Mar 2010 22:06:26 +0000 (18:06 -0400)
committerIngo Molnar <mingo@elte.hu>
Wed, 17 Mar 2010 11:11:15 +0000 (12:11 +0100)
commit7df2f32956cf0f1a45df38cd0e0fe0c3467580e8
tree1cccbf0d4239ebdd9c0f67762b5a2f0facbe53dc
parentfb1587d869a399554220e166d4b90b581a8ade01
perf probe: Add data structure member access support

Support accessing members in the data structures. With this,
perf-probe accepts data-structure members(IOW, it now accepts
dot '.' and arrow '->' operators) as probe arguemnts.

e.g.

 ./perf probe --add 'schedule:44 rq->curr'

 ./perf probe --add 'vfs_read file->f_op->read file->f_path.dentry'

Note that '>' can be interpreted as redirection in command-line.

Signed-off-by: Masami Hiramatsu <mhiramat@redhat.com>
Cc: systemtap <systemtap@sources.redhat.com>
Cc: DLE <dle-develop@lists.sourceforge.net>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
LKML-Reference: <20100316220626.32050.57552.stgit@localhost6.localdomain6>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
tools/perf/util/probe-event.c
tools/perf/util/probe-event.h
tools/perf/util/probe-finder.c