Lines Matching refs:cpuc

99 	struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events);
100 int br_sel = cpuc->br_sel, offset, type, i, j;
110 for (i = 0; i < cpuc->lbr_stack.nr; i++) {
111 from = cpuc->lbr_entries[i].from;
112 to = cpuc->lbr_entries[i].to;
121 cpuc->lbr_entries[i].from += offset;
128 cpuc->lbr_entries[i].from = 0; /* mark invalid */
133 cpuc->lbr_entries[i].type = common_branch_type(type);
140 for (i = 0; i < cpuc->lbr_stack.nr; ) {
141 if (!cpuc->lbr_entries[i].from) {
143 while (++j < cpuc->lbr_stack.nr)
144 cpuc->lbr_entries[j - 1] = cpuc->lbr_entries[j];
145 cpuc->lbr_stack.nr--;
146 if (!cpuc->lbr_entries[i].from)
162 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events);
163 struct perf_branch_entry *br = cpuc->lbr_entries;
167 if (!cpuc->lbr_users)
209 cpuc->lbr_stack.nr = out;
215 cpuc->lbr_stack.hw_idx = 0;
324 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events);
336 cpuc->last_task_ctx = NULL;
337 cpuc->last_log_id = 0;
343 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events);
350 cpuc->lbr_select = 1;
351 cpuc->lbr_sel->config = reg->config;
352 cpuc->br_sel = reg->reg;
357 if (!cpuc->lbr_users++ && !event->total_time_running)
363 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events);
369 cpuc->lbr_select = 0;
371 cpuc->lbr_users--;
372 WARN_ON_ONCE(cpuc->lbr_users < 0);
378 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events);
385 if (cpuc->lbr_users && sched_in)
391 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events);
394 if (!cpuc->lbr_users || !x86_pmu.lbr_nr)
398 if (cpuc->lbr_select) {
399 lbr_select = cpuc->lbr_sel->config & LBR_SELECT_MASK;
412 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events);
415 if (!cpuc->lbr_users || !x86_pmu.lbr_nr)