mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-27 21:03:32 +00:00
perf parse-events: Fix driver config term
commit45fc4628c1
upstream. Inadvertently deleted in commit30f4ade33d
("perf tools: Revert enable indices setting syntax for BPF map"). Fixes:30f4ade33d
("perf tools: Revert enable indices setting syntax for BPF map") Reported-by: James Clark <james.clark@arm.com> Reviewed-by: James Clark <james.clark@arm.com> Signed-off-by: Ian Rogers <irogers@google.com> Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Mark Rutland <mark.rutland@arm.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Peter Zijlstra <peterz@infradead.org> Link: http://lore.kernel.org/lkml/20230905033805.3094293-1-irogers@google.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
9a955334c1
commit
1c44debc30
1 changed files with 17 additions and 0 deletions
|
@ -870,6 +870,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: ':' |
|
||||
|
||||
|
|
Loading…
Reference in a new issue