perf parse-events: Fix driver config term

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 <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>

authored by Ian Rogers and committed by Arnaldo Carvalho de Melo 45fc4628 9ea150a8

Changed files
+17
tools
perf
+17
tools/perf/util/parse-events.y
··· 839 839 840 840 $$ = term; 841 841 } 842 + | 843 + PE_DRV_CFG_TERM 844 + { 845 + struct parse_events_term *term; 846 + char *config = strdup($1); 847 + int err; 848 + 849 + if (!config) 850 + YYNOMEM; 851 + err = parse_events_term__str(&term, PARSE_EVENTS__TERM_TYPE_DRV_CFG, config, $1, &@1, NULL); 852 + if (err) { 853 + free($1); 854 + free(config); 855 + PE_ABORT(err); 856 + } 857 + $$ = term; 858 + } 842 859 843 860 sep_dc: ':' | 844 861