summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorAlex Shi <alex.shi@linaro.org>2016-06-21 11:22:43 +0800
committerAlex Shi <alex.shi@linaro.org>2016-06-21 11:22:43 +0800
commit9b0440e3b29f5f5340c247ac9699c53f585fa680 (patch)
tree02d5133fcdfff78d094c73c5b76ca3f46da36266 /include/linux
parent5db5b648730e1d70d07bfa21c28854c05d8d0329 (diff)
parent46b4dd0c2535cbb70766f74bb9228ed81f59054d (diff)
Merge branch 'linux-linaro-lsk-v4.4' into linux-linaro-lsk-v4.4-android
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/perf_event.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/include/linux/perf_event.h b/include/linux/perf_event.h
index aa7294092e51..a71958135b7e 100644
--- a/include/linux/perf_event.h
+++ b/include/linux/perf_event.h
@@ -378,7 +378,7 @@ struct pmu {
/*
* Set up pmu-private data structures for an AUX area
*/
- void *(*setup_aux) (int cpu, void **pages,
+ void *(*setup_aux) (struct perf_event *event, void **pages,
int nr_pages, bool overwrite);
/* optional */
@@ -391,6 +391,14 @@ struct pmu {
* Filter events for PMU-specific reasons.
*/
int (*filter_match) (struct perf_event *event); /* optional */
+
+ /*
+ * Initial, PMU driver specific configuration.
+ */
+ int (*get_drv_configs) (struct perf_event *event,
+ void __user *arg); /* optional */
+ void (*free_drv_configs) (struct perf_event *event);
+ /* optional */
};
/**
@@ -558,6 +566,7 @@ struct perf_event {
struct irq_work pending;
atomic_t event_limit;
+ struct list_head drv_configs;
void (*destroy)(struct perf_event *);
struct rcu_head rcu_head;