perf stat: Make cputype filter generic
[linux-2.6-microblaze.git] / tools / perf / util / pmu-hybrid.c
index 3862880..bc4cb07 100644 (file)
@@ -50,23 +50,3 @@ bool perf_pmu__is_hybrid(const char *name)
 {
        return perf_pmu__find_hybrid_pmu(name) != NULL;
 }
-
-char *perf_pmu__hybrid_type_to_pmu(const char *type)
-{
-       char *pmu_name = NULL;
-
-       if (asprintf(&pmu_name, "cpu_%s", type) < 0)
-               return NULL;
-
-       if (perf_pmu__is_hybrid(pmu_name))
-               return pmu_name;
-
-       /*
-        * pmu may be not scanned, check the sysfs.
-        */
-       if (perf_pmu__hybrid_mounted(pmu_name))
-               return pmu_name;
-
-       free(pmu_name);
-       return NULL;
-}