mirror of
https://github.com/torvalds/linux.git
synced 2026-11-30 18:42:21 +00:00
perf parse: Allow tracepoint names to start with digits
Tracepoints can start with digits, although we don't have many of these: $ rg -g '*.h' '\bTRACE_EVENT\([0-9]' net/mac802154/trace.h 53:TRACE_EVENT(802154_drv_return_int, ... net/ieee802154/trace.h 66:TRACE_EVENT(802154_rdev_add_virtual_intf, ... include/trace/events/9p.h 124:TRACE_EVENT(9p_client_req, ... Just allow names to start with digits too so e.g. "perf trace -e '9p:*'" works Reviewed-by: Ian Rogers <[email protected]> Signed-off-by: Dominique Martinet <[email protected]> Tested-by: Ian Rogers <[email protected]> Cc: Adrian Hunter <[email protected]> Cc: Alexander Shishkin <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Mark Rutland <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Peter Zijlstra <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
This commit is contained in:
committed by
Arnaldo Carvalho de Melo
parent
a2a6604e1c
commit
5ceb57990b
@@ -2269,6 +2269,13 @@ static const struct evlist_test test__events[] = {
|
||||
.check = test__checkevent_breakpoint_2_events,
|
||||
/* 3 */
|
||||
},
|
||||
#ifdef HAVE_LIBTRACEEVENT
|
||||
{
|
||||
.name = "9p:9p_client_req",
|
||||
.check = test__checkevent_tracepoint,
|
||||
/* 4 */
|
||||
},
|
||||
#endif
|
||||
};
|
||||
|
||||
static const struct evlist_test test__events_pmu[] = {
|
||||
|
||||
@@ -242,8 +242,8 @@ event [^,{}/]+
|
||||
num_dec [0-9]+
|
||||
num_hex 0x[a-fA-F0-9]{1,16}
|
||||
num_raw_hex [a-fA-F0-9]{1,16}
|
||||
name [a-zA-Z_*?\[\]][a-zA-Z0-9_*?.\[\]!\-]*
|
||||
name_tag [\'][a-zA-Z_*?\[\]][a-zA-Z0-9_*?\-,\.\[\]:=]*[\']
|
||||
name [a-zA-Z0-9_*?\[\]][a-zA-Z0-9_*?.\[\]!\-]*
|
||||
name_tag [\'][a-zA-Z0-9_*?\[\]][a-zA-Z0-9_*?\-,\.\[\]:=]*[\']
|
||||
name_minus [a-zA-Z_*?][a-zA-Z0-9\-_*?.:]*
|
||||
drv_cfg_term [a-zA-Z0-9_\.]+(=[a-zA-Z0-9_*?\.:]+)?
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user