aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/trace-event-scripting.c
diff options
context:
space:
mode:
authorIan Rogers <[email protected]>2024-02-23 17:14:19 -0800
committerNamhyung Kim <[email protected]>2024-02-29 13:39:54 -0800
commitd4be39cadef0dbba6667a96e8e7857d510ed4e20 (patch)
treecf8980f1c19ffde680a1551afec556a3f78d09ba /tools/perf/util/trace-event-scripting.c
parentef5de1613d7d92bdc975e6beb34bb0fa94f34078 (diff)
perf metrics: Fix metric matching
The metric match function fails for cases like looking for "metric" in the string "all;foo_metric;metric" as the "metric" in "foo_metric" matches but isn't preceeded by a ';'. Fix this by matching the first list item and recursively matching on failure the next item after a semicolon. Signed-off-by: Ian Rogers <[email protected]> Reviewed-by: Kan Liang <[email protected]> Signed-off-by: Namhyung Kim <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions