Skip to content

Commit ee4558a

Browse files
captain5050gregkh
authored andcommitted
perf parse-events: Remove unused PE_KERNEL_PMU_EVENT token
[ Upstream commit bf7d46b ] Removed by commit 70c90e4 ("perf parse-events: Avoid scanning PMUs before parsing"). Signed-off-by: Ian Rogers <[email protected]> Cc: Adrian Hunter <[email protected]> Cc: Alexander Shishkin <[email protected]> Cc: Athira Rajeev <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Kan Liang <[email protected]> Cc: Mark Rutland <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: [email protected] Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]> Stable-dep-of: ede72dc ("perf parse-events: Fix tracepoint name memory leak") Signed-off-by: Sasha Levin <[email protected]>
1 parent 84d2e3f commit ee4558a

File tree

1 file changed

+0
-27
lines changed

1 file changed

+0
-27
lines changed

tools/perf/util/parse-events.y

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ static void free_list_evsel(struct list_head* list_evsel)
7070
%token PE_LEGACY_CACHE
7171
%token PE_PREFIX_MEM PE_PREFIX_RAW PE_PREFIX_GROUP
7272
%token PE_ERROR
73-
%token PE_KERNEL_PMU_EVENT
7473
%token PE_ARRAY_ALL PE_ARRAY_RANGE
7574
%token PE_DRV_CFG_TERM
7675
%token PE_TERM_HW
@@ -88,7 +87,6 @@ static void free_list_evsel(struct list_head* list_evsel)
8887
%type <str> PE_MODIFIER_EVENT
8988
%type <str> PE_MODIFIER_BP
9089
%type <str> PE_EVENT_NAME
91-
%type <str> PE_KERNEL_PMU_EVENT
9290
%type <str> PE_DRV_CFG_TERM
9391
%type <str> name_or_raw name_or_legacy
9492
%destructor { free ($$); } <str>
@@ -376,18 +374,6 @@ PE_NAME opt_pmu_config
376374
#undef CLEANUP
377375
}
378376
|
379-
PE_KERNEL_PMU_EVENT sep_dc
380-
{
381-
struct list_head *list;
382-
int err;
383-
384-
err = parse_events_multi_pmu_add(_parse_state, $1, NULL, &list);
385-
free($1);
386-
if (err < 0)
387-
YYABORT;
388-
$$ = list;
389-
}
390-
|
391377
PE_NAME sep_dc
392378
{
393379
struct list_head *list;
@@ -408,19 +394,6 @@ PE_NAME sep_dc
408394
free($1);
409395
$$ = list;
410396
}
411-
|
412-
PE_KERNEL_PMU_EVENT opt_pmu_config
413-
{
414-
struct list_head *list;
415-
int err;
416-
417-
/* frees $2 */
418-
err = parse_events_multi_pmu_add(_parse_state, $1, $2, &list);
419-
free($1);
420-
if (err < 0)
421-
YYABORT;
422-
$$ = list;
423-
}
424397

425398
value_sym:
426399
PE_VALUE_SYM_HW

0 commit comments

Comments
 (0)