Lines Matching refs:ctr
57 int ctr; in op_do_pmu_interrupt() local
59 for (ctr = 0 ; ctr < op_nr_counters ; ++ctr) { in op_do_pmu_interrupt()
60 if (pmd_overflowed(pmc0, ctr)) { in op_do_pmu_interrupt()
61 op_do_profile(cpu, regs->cr_iip, 1, ctr); in op_do_pmu_interrupt()
62 set_pmd_neg(oprof_data[cpu].ctr_count[ctr], ctr); in op_do_pmu_interrupt()
191 if (sysctl.ctr[ii].enabled) { in pmu_setup()
194 set_pmd_neg(sysctl.ctr[ii].count, ii); in pmu_setup()
195 pmc_fill_in(&pmc_val, sysctl.ctr[ii].kernel, in pmu_setup()
196 sysctl.ctr[ii].user, sysctl.ctr[ii].event, in pmu_setup()
197 sysctl.ctr[ii].unit_mask); in pmu_setup()
417 if (sysctl.ctr[i].enabled) { in pmu_start_all()
418 data->ctr_count[i] = sysctl.ctr[i].count; in pmu_start_all()
449 if (!sysctl.ctr[i].enabled) in pmu_check_params()
454 if (!sysctl.ctr[i].user && !sysctl.ctr[i].kernel) { in pmu_check_params()
460 if (check_range(sysctl.ctr[i].count, 1, OP_MAX_PERF_COUNT, in pmu_check_params()
598 …tab[0] = ((ctl_table) { 1, "enabled", &sysctl_parms.ctr[i].enabled, sizeof(int), 0600, NULL, lproc… in pmu_add_sysctls()
599 …tab[1] = ((ctl_table) { 1, "event", &sysctl_parms.ctr[i].event, sizeof(int), 0600, NULL, lproc_doi… in pmu_add_sysctls()
600 …tab[2] = ((ctl_table) { 1, "count", &sysctl_parms.ctr[i].count, sizeof(int), 0600, NULL, lproc_doi… in pmu_add_sysctls()
601 …tab[3] = ((ctl_table) { 1, "unit_mask", &sysctl_parms.ctr[i].unit_mask, sizeof(int), 0600, NULL, l… in pmu_add_sysctls()
602 …tab[4] = ((ctl_table) { 1, "kernel", &sysctl_parms.ctr[i].kernel, sizeof(int), 0600, NULL, lproc_d… in pmu_add_sysctls()
603 …tab[5] = ((ctl_table) { 1, "user", &sysctl_parms.ctr[i].user, sizeof(int), 0600, NULL, lproc_doint… in pmu_add_sysctls()