@@ -712,6 +712,7 @@ static void metricgroup__free_egroups(struct list_head *group_list)
712
712
static int parse_groups (struct evlist * perf_evlist , const char * str ,
713
713
bool metric_no_group ,
714
714
bool metric_no_merge ,
715
+ struct perf_pmu * fake_pmu ,
715
716
struct rblist * metric_events )
716
717
{
717
718
struct parse_events_error parse_error ;
@@ -727,7 +728,7 @@ static int parse_groups(struct evlist *perf_evlist, const char *str,
727
728
return ret ;
728
729
pr_debug ("adding %s\n" , extra_events .buf );
729
730
bzero (& parse_error , sizeof (parse_error ));
730
- ret = parse_events (perf_evlist , extra_events .buf , & parse_error );
731
+ ret = __parse_events (perf_evlist , extra_events .buf , & parse_error , fake_pmu );
731
732
if (ret ) {
732
733
parse_events_print_error (& parse_error , extra_events .buf );
733
734
goto out ;
@@ -749,7 +750,7 @@ int metricgroup__parse_groups(const struct option *opt,
749
750
struct evlist * perf_evlist = * (struct evlist * * )opt -> value ;
750
751
751
752
return parse_groups (perf_evlist , str , metric_no_group ,
752
- metric_no_merge , metric_events );
753
+ metric_no_merge , NULL , metric_events );
753
754
}
754
755
755
756
bool metricgroup__has_metric (const char * metric )
0 commit comments