Skip to content

Commit

Permalink
perf metric: Rename __metricgroup__add_metric to __add_metric
Browse files Browse the repository at this point in the history
Renaming __metricgroup__add_metric to __add_metric to fit in the current
function names.

Signed-off-by: Jiri Olsa <[email protected]>
Reviewed-by: Kajol Jain <[email protected]>
Acked-by: Ian Rogers <[email protected]>
Cc: Alexander Shishkin <[email protected]>
Cc: Andi Kleen <[email protected]>
Cc: John Garry <[email protected]>
Cc: Michael Petlan <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Paul Clarke <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Stephane Eranian <[email protected]>
Link: http://lore.kernel.org/lkml/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
  • Loading branch information
olsajiri authored and acmel committed Jul 30, 2020
1 parent a29c164 commit e7e1bad
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions tools/perf/util/metricgroup.c
Original file line number Diff line number Diff line change
Expand Up @@ -571,10 +571,10 @@ int __weak arch_get_runtimeparam(void)
return 1;
}

static int __metricgroup__add_metric(struct list_head *group_list,
struct pmu_event *pe,
bool metric_no_group,
int runtime)
static int __add_metric(struct list_head *group_list,
struct pmu_event *pe,
bool metric_no_group,
int runtime)
{
struct egroup *eg;

Expand Down Expand Up @@ -634,10 +634,7 @@ static int add_metric(struct list_head *group_list,
pr_debug("metric expr %s for %s\n", pe->metric_expr, pe->metric_name);

if (!strstr(pe->metric_expr, "?")) {
ret = __metricgroup__add_metric(group_list,
pe,
metric_no_group,
1);
ret = __add_metric(group_list, pe, metric_no_group, 1);
} else {
int j, count;

Expand All @@ -649,9 +646,7 @@ static int add_metric(struct list_head *group_list,
*/

for (j = 0; j < count && !ret; j++) {
ret = __metricgroup__add_metric(
group_list, pe,
metric_no_group, j);
ret = __add_metric(group_list, pe, metric_no_group, j);
}
}

Expand Down

0 comments on commit e7e1bad

Please sign in to comment.