• Masami Hiramatsu's avatar
    perf probe: Fix add-probe command syntax without --add option · d1bde3f7
    Masami Hiramatsu authored
    Fix add-probe command syntax without --add option.
    perf-probe supports add-probe command without --add
    option. But it treats each argument as an event definition.
    e.g.
    
    perf probe func arg1 arg2
    
     is interpreted as
    
    perf probe --add func --add arg1 --add arg2
    
    But it may be useless in many cases.
    
    This patch fixes this syntax to fold those arguments into
    one event definition if there is no --add option. With this
    change, above command is interpreted as below;
    
    perf probe --add "func arg1 arg2"
    Signed-off-by: default avatarMasami Hiramatsu <mhiramat@redhat.com>
    Cc: Steven Rostedt <rostedt@goodmis.org>
    Cc: Jim Keniston <jkenisto@us.ibm.com>
    Cc: Ananth N Mavinakayanahalli <ananth@in.ibm.com>
    Cc: Christoph Hellwig <hch@infradead.org>
    Cc: Frank Ch. Eigler <fche@redhat.com>
    Cc: Frederic Weisbecker <fweisbec@gmail.com>
    Cc: Jason Baron <jbaron@redhat.com>
    Cc: K.Prasad <prasad@linux.vnet.ibm.com>
    Cc: Peter Zijlstra <peterz@infradead.org>
    Cc: Srikar Dronamraju <srikar@linux.vnet.ibm.com>
    Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
    Cc: systemtap <systemtap@sources.redhat.com>
    Cc: DLE <dle-develop@lists.sourceforge.net>
    LKML-Reference: <20091208220254.10142.73767.stgit@dhcp-100-2-132.bos.redhat.com>
    Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
    d1bde3f7
builtin-probe.c 6.58 KB