• Masami Hiramatsu's avatar
    perf probe: Use the last field name as the argument name · df0faf4b
    Masami Hiramatsu authored
    Set the last field name to the argument name when the argument
    is refering a data-structure member.
    
    e.g.
     ./perf probe --add 'vfs_read file->f_mode'
     Add new event:
       probe:vfs_read       (on vfs_read with f_mode=file->f_mode)
    
     This probe records file->f_mode, but the argument name becomes "f_mode".
    
    This enables perf-trace command to parse trace event format correctly.
    
    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: <20100412171700.3790.72961.stgit@localhost6.localdomain6>
    Signed-off-by: default avatarMasami Hiramatsu <mhiramat@redhat.com>
    Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
    df0faf4b
probe-event.c 29.7 KB