Lines Matching refs:cpu_hw_events
53 DEFINE_PER_CPU(struct cpu_hw_events, cpu_hw_events) = {
694 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events);
734 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events);
751 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events);
782 struct cpu_hw_events *cpuc = &per_cpu(cpu_hw_events, cpu);
992 int x86_schedule_events(struct cpu_hw_events *cpuc, int n, int *assign)
1129 static int add_nr_metric_event(struct cpu_hw_events *cpuc,
1142 static void del_nr_metric_event(struct cpu_hw_events *cpuc,
1149 static int collect_event(struct cpu_hw_events *cpuc, struct perf_event *event,
1173 static int collect_events(struct cpu_hw_events *cpuc, struct perf_event *leader, bool dogrp)
1226 struct cpu_hw_events *cpuc, int i)
1285 struct cpu_hw_events *cpuc,
1297 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events);
1447 if (__this_cpu_read(cpu_hw_events.enabled))
1460 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events);
1518 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events);
1545 struct cpu_hw_events *cpuc;
1552 cpuc = &per_cpu(cpu_hw_events, cpu);
1607 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events);
1630 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events);
1691 struct cpu_hw_events *cpuc;
1697 cpuc = this_cpu_ptr(&cpu_hw_events);
1781 struct cpu_hw_events *cpuc = &per_cpu(cpu_hw_events, cpu);
1800 struct cpu_hw_events *cpuc = &per_cpu(cpu_hw_events, cpu);
2245 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events);
2254 __this_cpu_write(cpu_hw_events.n_txn, 0);
2255 __this_cpu_write(cpu_hw_events.n_txn_pair, 0);
2256 __this_cpu_write(cpu_hw_events.n_txn_metric, 0);
2267 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events);
2280 __this_cpu_sub(cpu_hw_events.n_added, __this_cpu_read(cpu_hw_events.n_txn));
2281 __this_cpu_sub(cpu_hw_events.n_events, __this_cpu_read(cpu_hw_events.n_txn));
2282 __this_cpu_sub(cpu_hw_events.n_pair, __this_cpu_read(cpu_hw_events.n_txn_pair));
2283 __this_cpu_sub(cpu_hw_events.n_metric, __this_cpu_read(cpu_hw_events.n_txn_metric));
2296 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events);
2334 static void free_fake_cpuc(struct cpu_hw_events *cpuc)
2340 static struct cpu_hw_events *allocate_fake_cpuc(struct pmu *event_pmu)
2342 struct cpu_hw_events *cpuc;
2375 struct cpu_hw_events *fake_cpuc;
2410 struct cpu_hw_events *fake_cpuc;
2497 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events);