perf probe: Support "string" type
authorMasami Hiramatsu <mhiramat@redhat.com>
Wed, 19 May 2010 19:57:35 +0000 (15:57 -0400)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 5 Jul 2010 21:47:28 +0000 (18:47 -0300)
commit73317b954041031249e8968d2e9023ff4e960d99
tree44768b7724bacbb15c54057710c70accce1cd8c3
parente09c8614b32915c16f68e039ac7040e602d73e35
perf probe: Support "string" type

Support string type casting to event argument. If perf-probe finds an argument
casted as string, it ensures the target variable is "(unsigned/signed) char
*(or []). perf-probe also adds dereference if the target is a pointer.

So, both of 'char buf[10];' and 'char *buf;' can be accessed by 'buf:string'

Cc: Ingo Molnar <mingo@elte.hu>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
LKML-Reference: <20100519195734.2885.1666.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-finder.c