Lines Matching +full:lower +full:- +full:case
1 // SPDX-License-Identifier: GPL-2.0-only
37 /* 2) clear MMCR0[PMAO] - docs say BESCR[PMEO] should do this */ in reset_ebb_with_clear_mask()
38 /* 3) set MMCR0[PMAE] - docs say BESCR[PME] should do this */ in reset_ebb_with_clear_mask()
48 /* 6) rfebb 1 - done in our caller */ in reset_ebb_with_clear_mask()
73 u64 count, upper, lower; in ebb_check_count() local
77 lower = ebb_state.stats.ebb_count * (sample_period - fudge); in ebb_check_count()
79 if (count < lower) { in ebb_check_count()
80 printf("PMC%d count (0x%llx) below lower limit 0x%llx (-0x%llx)\n", in ebb_check_count()
81 pmc, count, lower, lower - count); in ebb_check_count()
89 pmc, count, upper, count - upper); in ebb_check_count()
93 printf("PMC%d count (0x%llx) is between 0x%llx and 0x%llx delta +0x%llx/-0x%llx\n", in ebb_check_count()
94 pmc, count, lower, upper, count - lower, upper - count); in ebb_check_count()
145 entry = opd->entry; in setup_ebb_handler()
264 ebb_state.stats.pmc_count[PMC_INDEX(pmc)] += val - start_value; in count_pmc()
266 trace_log_reg(ebb_state.trace, SPRN_PMC1 + pmc - 1, val); in count_pmc()
282 rc = ioctl(e->fd, PERF_EVENT_IOC_ENABLE); in ebb_event_enable()
333 e->attr.config |= (1ull << 63); in event_ebb_init()
338 e->attr.config |= (1ull << 62) | ((u64)ifm << 60); in event_bhrb_init()
345 e->attr.exclusive = 1; in event_leader_ebb_init()
346 e->attr.pinned = 1; in event_leader_ebb_init()
390 /* To try and hit SIGILL case */ in ebb_child()
443 case 1: mtspr(SPRN_PMC1, value); break; in write_pmc()
444 case 2: mtspr(SPRN_PMC2, value); break; in write_pmc()
445 case 3: mtspr(SPRN_PMC3, value); break; in write_pmc()
446 case 4: mtspr(SPRN_PMC4, value); break; in write_pmc()
447 case 5: mtspr(SPRN_PMC5, value); break; in write_pmc()
448 case 6: mtspr(SPRN_PMC6, value); break; in write_pmc()
455 case 1: return mfspr(SPRN_PMC1); in read_pmc()
456 case 2: return mfspr(SPRN_PMC2); in read_pmc()
457 case 3: return mfspr(SPRN_PMC3); in read_pmc()
458 case 4: return mfspr(SPRN_PMC4); in read_pmc()
459 case 5: return mfspr(SPRN_PMC5); in read_pmc()
460 case 6: return mfspr(SPRN_PMC6); in read_pmc()