File tree Expand file tree Collapse file tree 1 file changed +16
-6
lines changed Expand file tree Collapse file tree 1 file changed +16
-6
lines changed Original file line number Diff line number Diff line change @@ -709,14 +709,12 @@ static void metricgroup__free_egroups(struct list_head *group_list)
709
709
}
710
710
}
711
711
712
- int metricgroup__parse_groups (const struct option * opt ,
713
- const char * str ,
714
- bool metric_no_group ,
715
- bool metric_no_merge ,
716
- struct rblist * metric_events )
712
+ static int parse_groups (struct evlist * perf_evlist , const char * str ,
713
+ bool metric_no_group ,
714
+ bool metric_no_merge ,
715
+ struct rblist * metric_events )
717
716
{
718
717
struct parse_events_error parse_error ;
719
- struct evlist * perf_evlist = * (struct evlist * * )opt -> value ;
720
718
struct strbuf extra_events ;
721
719
LIST_HEAD (group_list );
722
720
int ret ;
@@ -742,6 +740,18 @@ int metricgroup__parse_groups(const struct option *opt,
742
740
return ret ;
743
741
}
744
742
743
+ int metricgroup__parse_groups (const struct option * opt ,
744
+ const char * str ,
745
+ bool metric_no_group ,
746
+ bool metric_no_merge ,
747
+ struct rblist * metric_events )
748
+ {
749
+ struct evlist * perf_evlist = * (struct evlist * * )opt -> value ;
750
+
751
+ return parse_groups (perf_evlist , str , metric_no_group ,
752
+ metric_no_merge , metric_events );
753
+ }
754
+
745
755
bool metricgroup__has_metric (const char * metric )
746
756
{
747
757
struct pmu_events_map * map = perf_pmu__find_map (NULL );
You can’t perform that action at this time.
0 commit comments