perf pmu-events: Add extra underscore to function names
Add extra underscore before "for" of pmu_events_table_for_each_event and pmu_metrics_table_for_each_metric. Signed-off-by: Ian Rogers <irogers@google.com> Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com> Cc: Gaosheng Cui <cuigaosheng1@huawei.com> Cc: Ingo Molnar <mingo@redhat.com> Cc: James Clark <james.clark@arm.com> Cc: Jing Zhang <renyu.zj@linux.alibaba.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: John Garry <john.g.garry@oracle.com> Cc: Kajol Jain <kjain@linux.ibm.com> Cc: Kan Liang <kan.liang@linux.intel.com> Cc: Mark Rutland <mark.rutland@arm.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Ravi Bangoria <ravi.bangoria@amd.com> Cc: Rob Herring <robh@kernel.org> Link: https://lore.kernel.org/r/20230824041330.266337-4-irogers@google.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
committed by
Arnaldo Carvalho de Melo
parent
c3245d2093
commit
4000519eb0
@@ -527,7 +527,7 @@ void metricgroup__print(const struct print_callbacks *print_cb, void *print_stat
|
||||
groups.node_delete = mep_delete;
|
||||
table = pmu_metrics_table__find();
|
||||
if (table) {
|
||||
pmu_metrics_table_for_each_metric(table,
|
||||
pmu_metrics_table__for_each_metric(table,
|
||||
metricgroup__add_to_mep_groups_callback,
|
||||
&groups);
|
||||
}
|
||||
@@ -1069,7 +1069,7 @@ static bool metricgroup__find_metric(const char *pmu,
|
||||
.pm = pm,
|
||||
};
|
||||
|
||||
return pmu_metrics_table_for_each_metric(table, metricgroup__find_metric_callback, &data)
|
||||
return pmu_metrics_table__for_each_metric(table, metricgroup__find_metric_callback, &data)
|
||||
? true : false;
|
||||
}
|
||||
|
||||
@@ -1255,7 +1255,7 @@ static int metricgroup__add_metric(const char *pmu, const char *metric_name, con
|
||||
* Iterate over all metrics seeing if metric matches either the
|
||||
* name or group. When it does add the metric to the list.
|
||||
*/
|
||||
ret = pmu_metrics_table_for_each_metric(table, metricgroup__add_metric_callback,
|
||||
ret = pmu_metrics_table__for_each_metric(table, metricgroup__add_metric_callback,
|
||||
&data);
|
||||
if (ret)
|
||||
goto out;
|
||||
@@ -1740,7 +1740,7 @@ bool metricgroup__has_metric(const char *pmu, const char *metric)
|
||||
if (!table)
|
||||
return false;
|
||||
|
||||
return pmu_metrics_table_for_each_metric(table, metricgroup__has_metric_callback, &data)
|
||||
return pmu_metrics_table__for_each_metric(table, metricgroup__has_metric_callback, &data)
|
||||
? true : false;
|
||||
}
|
||||
|
||||
@@ -1770,7 +1770,7 @@ unsigned int metricgroups__topdown_max_level(void)
|
||||
if (!table)
|
||||
return false;
|
||||
|
||||
pmu_metrics_table_for_each_metric(table, metricgroup__topdown_max_level_callback,
|
||||
pmu_metrics_table__for_each_metric(table, metricgroup__topdown_max_level_callback,
|
||||
&max_level);
|
||||
return max_level;
|
||||
}
|
||||
|
||||
@@ -896,7 +896,7 @@ void pmu_add_cpu_aliases_table(struct perf_pmu *pmu, const struct pmu_events_tab
|
||||
.pmu = pmu,
|
||||
};
|
||||
|
||||
pmu_events_table_for_each_event(table, pmu_add_cpu_aliases_map_callback, &data);
|
||||
pmu_events_table__for_each_event(table, pmu_add_cpu_aliases_map_callback, &data);
|
||||
free(data.default_pmu_name);
|
||||
}
|
||||
|
||||
|
||||
@@ -168,7 +168,7 @@ static const char *get_counter_name(int set, int nr, const struct pmu_events_tab
|
||||
if (!table)
|
||||
return NULL;
|
||||
|
||||
pmu_events_table_for_each_event(table, get_counter_name_callback, &data);
|
||||
pmu_events_table__for_each_event(table, get_counter_name_callback, &data);
|
||||
return data.result;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user