Home | History | Annotate | Download | only in tprof

Lines Matching refs:bit

155 	int bit;
157 while ((bit = ffs(runmask)) != 0) {
158 bit--;
159 CLR(runmask, __BIT(bit));
160 wrmsr(PERFEVTSEL(bit), rdmsr(PERFEVTSEL(bit)) | PERFEVTSEL_EN);
167 int bit;
169 while ((bit = ffs(stopmask)) != 0) {
170 bit--;
171 CLR(stopmask, __BIT(bit));
172 wrmsr(PERFEVTSEL(bit), rdmsr(PERFEVTSEL(bit)) &
183 int bit;
188 while ((bit = ffs(mask)) != 0) {
189 bit--;
190 CLR(mask, __BIT(bit));
192 /* If the highest bit is non zero, then it's not for us. */
193 uint64_t ctr = tprof_intel_counter_read(bit);
197 if (ISSET(sc->sc_ctr_prof_mask, __BIT(bit))) {
199 tprof_intel_counter_write(bit,
200 sc->sc_count[bit].ctr_counter_reset_val);
201 counters_offset[bit] +=
202 sc->sc_count[bit].ctr_counter_val + ctr;
210 tfi.tfi_counter = bit;
215 counters_offset[bit] += __BIT(counter_bitwidth);