• Masami Hiramatsu's avatar
    tracing/kprobes: Add $ prefix to special variables · 405b2651
    Masami Hiramatsu authored
    Add $ prefix to the special variables(e.g. sa, rv) of kprobe-tracer.
    This resolves consistency issues between kprobe_events and perf-kprobe.
    
    The main goal is to avoid conflicts between local variable names of
    probed functions, used by perf probe, and special variables used
    in the kprobe event creation interface (stack values, etc...) and
    also available from perf probe.
    
    ie: we don't want rv (return value) to conflict with a local variable
    named rv in a probed function.
    Signed-off-by: default avatarMasami Hiramatsu <mhiramat@redhat.com>
    Cc: Ingo Molnar <mingo@elte.hu>
    Cc: Thomas Gleixner <tglx@linutronix.de>
    Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
    Cc: Steven Rostedt <rostedt@goodmis.org>
    Cc: Mike Galbraith <efault@gmx.de>
    Cc: Paul Mackerras <paulus@samba.org>
    Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
    Cc: Christoph Hellwig <hch@infradead.org>
    Cc: Ananth N Mavinakayanahalli <ananth@in.ibm.com>
    Cc: Jim Keniston <jkenisto@us.ibm.com>
    Cc: Frank Ch. Eigler <fche@redhat.com>
    LKML-Reference: <20091007222740.1684.91170.stgit@dhcp-100-2-132.bos.redhat.com>
    Signed-off-by: default avatarFrederic Weisbecker <fweisbec@gmail.com>
    405b2651
kprobetrace.txt 5.98 KB