Lines Matching defs:state
26 int state;
219 * of bts::state, which:
243 * before we enable BTS and bts::state goes ACTIVE
248 WRITE_ONCE(bts->state, BTS_STATE_ACTIVE);
272 event->hw.state = 0;
282 event->hw.state = PERF_HES_STOPPED;
285 static void __bts_event_stop(struct perf_event *event, int state)
290 WRITE_ONCE(bts->state, state);
304 int state = READ_ONCE(bts->state);
306 if (state == BTS_STATE_ACTIVE)
309 if (state != BTS_STATE_STOPPED)
312 event->hw.state |= PERF_HES_STOPPED;
336 int state = READ_ONCE(bts->state);
343 if (WARN_ON_ONCE(state == BTS_STATE_ACTIVE))
346 if (state == BTS_STATE_STOPPED)
361 if (READ_ONCE(bts->state) != BTS_STATE_ACTIVE)
464 if (READ_ONCE(bts->state) == BTS_STATE_STOPPED)
493 WRITE_ONCE(bts->state, BTS_STATE_STOPPED);
519 event->hw.state = PERF_HES_STOPPED;
529 if (hwc->state & PERF_HES_STOPPED)