• M
    perf probe: Check new event name · b7702a21
    Masami Hiramatsu 提交于
    Check new event name is same syntax as a C symbol in perf command.
    In other words, checking the name is as like as other tracepoint
    events.
    
    This can prevent user to create an event with useless name (e.g.
    foo|bar, foo*bar).
    Signed-off-by: NMasami Hiramatsu <mhiramat@redhat.com>
    Cc: Frederic Weisbecker <fweisbec@gmail.com>
    Cc: Paul Mackerras <paulus@samba.org>
    Cc: Arnaldo Carvalho de Melo <acme@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: 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: Frederic Weisbecker <fweisbec@gmail.com>
    Cc: systemtap <systemtap@sources.redhat.com>
    Cc: DLE <dle-develop@lists.sourceforge.net>
    LKML-Reference: <20091216222415.14459.71383.stgit@dhcp-100-2-132.bos.redhat.com>
    [ v2: minor cleanups ]
    Signed-off-by: NIngo Molnar <mingo@elte.hu>
    b7702a21
probe-event.c 15.9 KB