perf metricgroup: Pass pmu_event structure as a parameter for arch_get_runtimeparam()
[linux-2.6-microblaze.git] / tools / perf / util / metricgroup.c
index 5476e07..d03bac6 100644 (file)
@@ -15,7 +15,6 @@
 #include "rblist.h"
 #include <string.h>
 #include <errno.h>
-#include "pmu-events/pmu-events.h"
 #include "strlist.h"
 #include <assert.h>
 #include <linux/ctype.h>
@@ -636,7 +635,7 @@ static bool metricgroup__has_constraint(struct pmu_event *pe)
        return false;
 }
 
-int __weak arch_get_runtimeparam(void)
+int __weak arch_get_runtimeparam(struct pmu_event *pe __maybe_unused)
 {
        return 1;
 }
@@ -904,7 +903,7 @@ static int add_metric(struct list_head *metric_list,
        } else {
                int j, count;
 
-               count = arch_get_runtimeparam();
+               count = arch_get_runtimeparam(pe);
 
                /* This loop is added to create multiple
                 * events depend on count value and add