perf evsel: Rename perf_evsel__fprintf() to evsel__fprintf()

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: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
parent 10c513f7
...@@ -34,7 +34,7 @@ static int __cmd_evlist(const char *file_name, struct perf_attr_details *details ...@@ -34,7 +34,7 @@ static int __cmd_evlist(const char *file_name, struct perf_attr_details *details
return PTR_ERR(session); return PTR_ERR(session);
evlist__for_each_entry(session->evlist, pos) { evlist__for_each_entry(session->evlist, pos) {
perf_evsel__fprintf(pos, details, stdout); evsel__fprintf(pos, details, stdout);
if (pos->core.attr.type == PERF_TYPE_TRACEPOINT) if (pos->core.attr.type == PERF_TYPE_TRACEPOINT)
has_tracepoint = true; has_tracepoint = true;
......
...@@ -35,8 +35,7 @@ static int __print_attr__fprintf(FILE *fp, const char *name, const char *val, vo ...@@ -35,8 +35,7 @@ static int __print_attr__fprintf(FILE *fp, const char *name, const char *val, vo
return comma_fprintf(fp, (bool *)priv, " %s: %s", name, val); return comma_fprintf(fp, (bool *)priv, " %s: %s", name, val);
} }
int perf_evsel__fprintf(struct evsel *evsel, int evsel__fprintf(struct evsel *evsel, struct perf_attr_details *details, FILE *fp)
struct perf_attr_details *details, FILE *fp)
{ {
bool first = true; bool first = true;
int printed = 0; int printed = 0;
......
...@@ -15,8 +15,7 @@ struct perf_attr_details { ...@@ -15,8 +15,7 @@ struct perf_attr_details {
bool trace_fields; bool trace_fields;
}; };
int perf_evsel__fprintf(struct evsel *evsel, int evsel__fprintf(struct evsel *evsel, struct perf_attr_details *details, FILE *fp);
struct perf_attr_details *details, FILE *fp);
#define EVSEL__PRINT_IP (1<<0) #define EVSEL__PRINT_IP (1<<0)
#define EVSEL__PRINT_SYM (1<<1) #define EVSEL__PRINT_SYM (1<<1)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment