perf evsel: Rename perf_evsel__*filter*() to evsel__*filter*()
As those are not 'struct evsel' methods, 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:
@@ -2261,7 +2261,7 @@ static int set_filter(struct evsel *evsel, const void *arg)
|
||||
}
|
||||
|
||||
if (evsel->core.attr.type == PERF_TYPE_TRACEPOINT) {
|
||||
if (perf_evsel__append_tp_filter(evsel, str) < 0) {
|
||||
if (evsel__append_tp_filter(evsel, str) < 0) {
|
||||
fprintf(stderr,
|
||||
"not enough memory to hold filter string\n");
|
||||
return -1;
|
||||
@@ -2286,7 +2286,7 @@ static int set_filter(struct evsel *evsel, const void *arg)
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (perf_evsel__append_addr_filter(evsel, str) < 0) {
|
||||
if (evsel__append_addr_filter(evsel, str) < 0) {
|
||||
fprintf(stderr,
|
||||
"not enough memory to hold filter string\n");
|
||||
return -1;
|
||||
@@ -2317,7 +2317,7 @@ static int add_exclude_perf_filter(struct evsel *evsel,
|
||||
|
||||
snprintf(new_filter, sizeof(new_filter), "common_pid != %d", getpid());
|
||||
|
||||
if (perf_evsel__append_tp_filter(evsel, new_filter) < 0) {
|
||||
if (evsel__append_tp_filter(evsel, new_filter) < 0) {
|
||||
fprintf(stderr,
|
||||
"not enough memory to hold filter string\n");
|
||||
return -1;
|
||||
|
||||
Reference in New Issue
Block a user