Lines Matching refs:head
485 int head, tail; in xenoprof_buf_space() local
487 head = xenoprof_buf(d, buf, event_head); in xenoprof_buf_space()
490 return ((tail > head) ? 0 : size) + tail - head - 1; in xenoprof_buf_space()
497 int head, tail, size; in xenoprof_add_sample() local
499 head = xenoprof_buf(d, buf, event_head); in xenoprof_add_sample()
504 if ( (head < 0) || (head >= size) || (tail < 0) || (tail >= size) ) in xenoprof_add_sample()
512 xenoprof_buf(d, buf, event_log[head].eip) = eip; in xenoprof_add_sample()
513 xenoprof_buf(d, buf, event_log[head].mode) = mode; in xenoprof_add_sample()
514 xenoprof_buf(d, buf, event_log[head].event) = event; in xenoprof_add_sample()
515 head++; in xenoprof_add_sample()
516 if ( head >= size ) in xenoprof_add_sample()
517 head = 0; in xenoprof_add_sample()
519 xenoprof_buf(d, buf, event_head) = head; in xenoprof_add_sample()