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>
This commit is contained in:
Arnaldo Carvalho de Melo 2020-04-29 16:09:12 -03:00
Родитель 8ab2e96d8f
Коммит 347c751a64
6 изменённых файлов: 7 добавлений и 7 удалений

Просмотреть файл

@ -462,7 +462,7 @@ static size_t hists__fprintf_nr_sample_events(struct hists *hists, struct report
if (perf_evsel__is_group_event(evsel)) { if (perf_evsel__is_group_event(evsel)) {
struct evsel *pos; struct evsel *pos;
perf_evsel__group_desc(evsel, buf, size); evsel__group_desc(evsel, buf, size);
evname = buf; evname = buf;
for_each_group_member(pos, evsel) { for_each_group_member(pos, evsel) {

Просмотреть файл

@ -646,7 +646,7 @@ int perf_evlist__gtk_browse_hists(struct evlist *evlist,
continue; continue;
if (pos->core.nr_members > 1) { if (pos->core.nr_members > 1) {
perf_evsel__group_desc(pos, buf, size); evsel__group_desc(pos, buf, size);
evname = buf; evname = buf;
} }
} }

Просмотреть файл

@ -2370,7 +2370,7 @@ int symbol__annotate_printf(struct map_symbol *ms, struct evsel *evsel,
if (perf_evsel__is_group_event(evsel)) { if (perf_evsel__is_group_event(evsel)) {
width *= evsel->core.nr_members; width *= evsel->core.nr_members;
perf_evsel__group_desc(evsel, buf, sizeof(buf)); evsel__group_desc(evsel, buf, sizeof(buf));
evsel_name = buf; evsel_name = buf;
} }
@ -2519,7 +2519,7 @@ int map_symbol__annotation_dump(struct map_symbol *ms, struct evsel *evsel,
goto out_free_filename; goto out_free_filename;
if (perf_evsel__is_group_event(evsel)) { if (perf_evsel__is_group_event(evsel)) {
perf_evsel__group_desc(evsel, buf, sizeof(buf)); evsel__group_desc(evsel, buf, sizeof(buf));
ev_name = buf; ev_name = buf;
} }

Просмотреть файл

@ -663,7 +663,7 @@ const char *evsel__group_name(struct evsel *evsel)
* For record -e 'cycles,instructions' and report --group * For record -e 'cycles,instructions' and report --group
* 'cycles:u, instructions:u' * 'cycles:u, instructions:u'
*/ */
int perf_evsel__group_desc(struct evsel *evsel, char *buf, size_t size) int evsel__group_desc(struct evsel *evsel, char *buf, size_t size)
{ {
int ret = 0; int ret = 0;
struct evsel *pos; struct evsel *pos;

Просмотреть файл

@ -212,7 +212,7 @@ int __evsel__hw_cache_type_op_res_name(u8 type, u8 op, u8 result, char *bf, size
const char *evsel__name(struct evsel *evsel); const char *evsel__name(struct evsel *evsel);
const char *evsel__group_name(struct evsel *evsel); const char *evsel__group_name(struct evsel *evsel);
int perf_evsel__group_desc(struct evsel *evsel, char *buf, size_t size); int evsel__group_desc(struct evsel *evsel, char *buf, size_t size);
void __perf_evsel__set_sample_bit(struct evsel *evsel, void __perf_evsel__set_sample_bit(struct evsel *evsel,
enum perf_event_sample_format bit); enum perf_event_sample_format bit);

Просмотреть файл

@ -2698,7 +2698,7 @@ int __hists__scnprintf_title(struct hists *hists, char *bf, size_t size, bool sh
if (perf_evsel__is_group_event(evsel)) { if (perf_evsel__is_group_event(evsel)) {
struct evsel *pos; struct evsel *pos;
perf_evsel__group_desc(evsel, buf, buflen); evsel__group_desc(evsel, buf, buflen);
ev_name = buf; ev_name = buf;
for_each_group_member(pos, evsel) { for_each_group_member(pos, evsel) {