projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
perf metricgroup: Pass pmu_event structure as a parameter for arch_get_runtimeparam()
[linux-2.6-microblaze.git]
/
tools
/
perf
/
util
/
metricgroup.c
diff --git
a/tools/perf/util/metricgroup.c
b/tools/perf/util/metricgroup.c
index
5476e07
..
d03bac6
100644
(file)
--- a/
tools/perf/util/metricgroup.c
+++ b/
tools/perf/util/metricgroup.c
@@
-15,7
+15,6
@@
#include "rblist.h"
#include <string.h>
#include <errno.h>
#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>
#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;
}
return false;
}
-int __weak arch_get_runtimeparam(
voi
d)
+int __weak arch_get_runtimeparam(
struct pmu_event *pe __maybe_unuse
d)
{
return 1;
}
{
return 1;
}
@@
-904,7
+903,7
@@
static int add_metric(struct list_head *metric_list,
} else {
int j, count;
} 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
/* This loop is added to create multiple
* events depend on count value and add