aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/linux/perf_event.h2
-rw-r--r--kernel/events/core.c12
2 files changed, 7 insertions, 7 deletions
diff --git a/include/linux/perf_event.h b/include/linux/perf_event.h
index 599afc4bb67e..b4166cdfa7a2 100644
--- a/include/linux/perf_event.h
+++ b/include/linux/perf_event.h
@@ -1110,7 +1110,7 @@ struct perf_cpu_context {
1110 int exclusive; 1110 int exclusive;
1111 struct list_head rotation_list; 1111 struct list_head rotation_list;
1112 int jiffies_interval; 1112 int jiffies_interval;
1113 struct pmu *active_pmu; 1113 struct pmu *unique_pmu;
1114 struct perf_cgroup *cgrp; 1114 struct perf_cgroup *cgrp;
1115}; 1115};
1116 1116
diff --git a/kernel/events/core.c b/kernel/events/core.c
index 7b9df353ba1b..81939e8999a5 100644
--- a/kernel/events/core.c
+++ b/kernel/events/core.c
@@ -4419,7 +4419,7 @@ static void perf_event_task_event(struct perf_task_event *task_event)
4419 rcu_read_lock(); 4419 rcu_read_lock();
4420 list_for_each_entry_rcu(pmu, &pmus, entry) { 4420 list_for_each_entry_rcu(pmu, &pmus, entry) {
4421 cpuctx = get_cpu_ptr(pmu->pmu_cpu_context); 4421 cpuctx = get_cpu_ptr(pmu->pmu_cpu_context);
4422 if (cpuctx->active_pmu != pmu) 4422 if (cpuctx->unique_pmu != pmu)
4423 goto next; 4423 goto next;
4424 perf_event_task_ctx(&cpuctx->ctx, task_event); 4424 perf_event_task_ctx(&cpuctx->ctx, task_event);
4425 4425
@@ -4565,7 +4565,7 @@ static void perf_event_comm_event(struct perf_comm_event *comm_event)
4565 rcu_read_lock(); 4565 rcu_read_lock();
4566 list_for_each_entry_rcu(pmu, &pmus, entry) { 4566 list_for_each_entry_rcu(pmu, &pmus, entry) {
4567 cpuctx = get_cpu_ptr(pmu->pmu_cpu_context); 4567 cpuctx = get_cpu_ptr(pmu->pmu_cpu_context);
4568 if (cpuctx->active_pmu != pmu) 4568 if (cpuctx->unique_pmu != pmu)
4569 goto next; 4569 goto next;
4570 perf_event_comm_ctx(&cpuctx->ctx, comm_event); 4570 perf_event_comm_ctx(&cpuctx->ctx, comm_event);
4571 4571
@@ -4761,7 +4761,7 @@ got_name:
4761 rcu_read_lock(); 4761 rcu_read_lock();
4762 list_for_each_entry_rcu(pmu, &pmus, entry) { 4762 list_for_each_entry_rcu(pmu, &pmus, entry) {
4763 cpuctx = get_cpu_ptr(pmu->pmu_cpu_context); 4763 cpuctx = get_cpu_ptr(pmu->pmu_cpu_context);
4764 if (cpuctx->active_pmu != pmu) 4764 if (cpuctx->unique_pmu != pmu)
4765 goto next; 4765 goto next;
4766 perf_event_mmap_ctx(&cpuctx->ctx, mmap_event, 4766 perf_event_mmap_ctx(&cpuctx->ctx, mmap_event,
4767 vma->vm_flags & VM_EXEC); 4767 vma->vm_flags & VM_EXEC);
@@ -5862,8 +5862,8 @@ static void update_pmu_context(struct pmu *pmu, struct pmu *old_pmu)
5862 5862
5863 cpuctx = per_cpu_ptr(pmu->pmu_cpu_context, cpu); 5863 cpuctx = per_cpu_ptr(pmu->pmu_cpu_context, cpu);
5864 5864
5865 if (cpuctx->active_pmu == old_pmu) 5865 if (cpuctx->unique_pmu == old_pmu)
5866 cpuctx->active_pmu = pmu; 5866 cpuctx->unique_pmu = pmu;
5867 } 5867 }
5868} 5868}
5869 5869
@@ -5998,7 +5998,7 @@ skip_type:
5998 cpuctx->ctx.pmu = pmu; 5998 cpuctx->ctx.pmu = pmu;
5999 cpuctx->jiffies_interval = 1; 5999 cpuctx->jiffies_interval = 1;
6000 INIT_LIST_HEAD(&cpuctx->rotation_list); 6000 INIT_LIST_HEAD(&cpuctx->rotation_list);
6001 cpuctx->active_pmu = pmu; 6001 cpuctx->unique_pmu = pmu;
6002 } 6002 }
6003 6003
6004got_cpu_context: 6004got_cpu_context: