Skip to content

Commit 347c751

Browse files
committed
perf evsel: Rename perf_evsel__group_desc() to evsel__group_desc()
As it is a 'struct evsel' method, not part of tools/lib/perf/, aka libperf, to whom the perf_ prefix belongs. Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Namhyung Kim <namhyung@kernel.org> Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
1 parent 8ab2e96 commit 347c751

6 files changed

Lines changed: 7 additions & 7 deletions

File tree

‎tools/perf/builtin-report.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ static size_t hists__fprintf_nr_sample_events(struct hists *hists, struct report
462462
if (perf_evsel__is_group_event(evsel)) {
463463
struct evsel *pos;
464464

465-
perf_evsel__group_desc(evsel, buf, size);
465+
evsel__group_desc(evsel, buf, size);
466466
evname = buf;
467467

468468
for_each_group_member(pos, evsel) {

‎tools/perf/ui/gtk/hists.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -646,7 +646,7 @@ int perf_evlist__gtk_browse_hists(struct evlist *evlist,
646646
continue;
647647

648648
if (pos->core.nr_members > 1) {
649-
perf_evsel__group_desc(pos, buf, size);
649+
evsel__group_desc(pos, buf, size);
650650
evname = buf;
651651
}
652652
}

‎tools/perf/util/annotate.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2370,7 +2370,7 @@ int symbol__annotate_printf(struct map_symbol *ms, struct evsel *evsel,
23702370

23712371
if (perf_evsel__is_group_event(evsel)) {
23722372
width *= evsel->core.nr_members;
2373-
perf_evsel__group_desc(evsel, buf, sizeof(buf));
2373+
evsel__group_desc(evsel, buf, sizeof(buf));
23742374
evsel_name = buf;
23752375
}
23762376

@@ -2519,7 +2519,7 @@ int map_symbol__annotation_dump(struct map_symbol *ms, struct evsel *evsel,
25192519
goto out_free_filename;
25202520

25212521
if (perf_evsel__is_group_event(evsel)) {
2522-
perf_evsel__group_desc(evsel, buf, sizeof(buf));
2522+
evsel__group_desc(evsel, buf, sizeof(buf));
25232523
ev_name = buf;
25242524
}
25252525

‎tools/perf/util/evsel.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -663,7 +663,7 @@ const char *evsel__group_name(struct evsel *evsel)
663663
* For record -e 'cycles,instructions' and report --group
664664
* 'cycles:u, instructions:u'
665665
*/
666-
int perf_evsel__group_desc(struct evsel *evsel, char *buf, size_t size)
666+
int evsel__group_desc(struct evsel *evsel, char *buf, size_t size)
667667
{
668668
int ret = 0;
669669
struct evsel *pos;

‎tools/perf/util/evsel.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ int __evsel__hw_cache_type_op_res_name(u8 type, u8 op, u8 result, char *bf, size
212212
const char *evsel__name(struct evsel *evsel);
213213

214214
const char *evsel__group_name(struct evsel *evsel);
215-
int perf_evsel__group_desc(struct evsel *evsel, char *buf, size_t size);
215+
int evsel__group_desc(struct evsel *evsel, char *buf, size_t size);
216216

217217
void __perf_evsel__set_sample_bit(struct evsel *evsel,
218218
enum perf_event_sample_format bit);

‎tools/perf/util/hist.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2698,7 +2698,7 @@ int __hists__scnprintf_title(struct hists *hists, char *bf, size_t size, bool sh
26982698
if (perf_evsel__is_group_event(evsel)) {
26992699
struct evsel *pos;
27002700

2701-
perf_evsel__group_desc(evsel, buf, buflen);
2701+
evsel__group_desc(evsel, buf, buflen);
27022702
ev_name = buf;
27032703

27042704
for_each_group_member(pos, evsel) {

0 commit comments

Comments
 (0)