]> Git Repo - J-linux.git/commitdiff
perf parse-events: Fix driver config term
authorIan Rogers <[email protected]>
Tue, 5 Sep 2023 03:38:05 +0000 (20:38 -0700)
committerArnaldo Carvalho de Melo <[email protected]>
Tue, 5 Sep 2023 12:39:13 +0000 (09:39 -0300)
Inadvertently deleted in commit 30f4ade33d649aa0 ("perf tools: Revert
enable indices setting syntax for BPF map").

Fixes: 30f4ade33d649aa0 ("perf tools: Revert enable indices setting syntax for BPF map")
Reported-by: James Clark <[email protected]>
Reviewed-by: James Clark <[email protected]>
Signed-off-by: Ian Rogers <[email protected]>
Cc: Adrian Hunter <[email protected]>
Cc: Alexander Shishkin <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Mark Rutland <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Link: http://lore.kernel.org/lkml/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
tools/perf/util/parse-events.y

index 4a305df61f74ea820b2ba7c6693f408ff71ad096..21bfe7e0d94442cedf10114249636fc6c819261d 100644 (file)
@@ -839,6 +839,23 @@ PE_TERM
 
        $$ = term;
 }
+|
+PE_DRV_CFG_TERM
+{
+       struct parse_events_term *term;
+       char *config = strdup($1);
+       int err;
+
+       if (!config)
+               YYNOMEM;
+       err = parse_events_term__str(&term, PARSE_EVENTS__TERM_TYPE_DRV_CFG, config, $1, &@1, NULL);
+       if (err) {
+               free($1);
+               free(config);
+               PE_ABORT(err);
+       }
+       $$ = term;
+}
 
 sep_dc: ':' |
 
This page took 0.055406 seconds and 4 git commands to generate.