Merge tag 'topic/dp-hdmi-2.1-pcon-2020-12-23' of git://anongit.freedesktop.org/drm...
[linux-2.6-microblaze.git] / tools / perf / util / evswitch.c
index 3ba72f7..40cb56a 100644 (file)
@@ -41,7 +41,7 @@ static int evswitch__fprintf_enoent(FILE *fp, const char *evtype, const char *ev
 int evswitch__init(struct evswitch *evswitch, struct evlist *evlist, FILE *fp)
 {
        if (evswitch->on_name) {
-               evswitch->on = perf_evlist__find_evsel_by_str(evlist, evswitch->on_name);
+               evswitch->on = evlist__find_evsel_by_str(evlist, evswitch->on_name);
                if (evswitch->on == NULL) {
                        evswitch__fprintf_enoent(fp, "on", evswitch->on_name);
                        return -ENOENT;
@@ -50,7 +50,7 @@ int evswitch__init(struct evswitch *evswitch, struct evlist *evlist, FILE *fp)
        }
 
        if (evswitch->off_name) {
-               evswitch->off = perf_evlist__find_evsel_by_str(evlist, evswitch->off_name);
+               evswitch->off = evlist__find_evsel_by_str(evlist, evswitch->off_name);
                if (evswitch->off == NULL) {
                        evswitch__fprintf_enoent(fp, "off", evswitch->off_name);
                        return -ENOENT;