Lines Matching refs:state
26 int state;
225 * of bts::state, which:
249 * before we enable BTS and bts::state goes ACTIVE
254 WRITE_ONCE(bts->state, BTS_STATE_ACTIVE);
278 event->hw.state = 0;
288 event->hw.state = PERF_HES_STOPPED;
291 static void __bts_event_stop(struct perf_event *event, int state)
296 WRITE_ONCE(bts->state, state);
310 int state = READ_ONCE(bts->state);
312 if (state == BTS_STATE_ACTIVE)
315 if (state != BTS_STATE_STOPPED)
318 event->hw.state |= PERF_HES_STOPPED;
342 int state = READ_ONCE(bts->state);
349 if (WARN_ON_ONCE(state == BTS_STATE_ACTIVE))
352 if (state == BTS_STATE_STOPPED)
367 if (READ_ONCE(bts->state) != BTS_STATE_ACTIVE)
470 if (READ_ONCE(bts->state) == BTS_STATE_STOPPED)
499 WRITE_ONCE(bts->state, BTS_STATE_STOPPED);
525 event->hw.state = PERF_HES_STOPPED;
535 if (hwc->state & PERF_HES_STOPPED)