Lines Matching defs:head
366 u64 *head, u64 *old)
373 pr_debug3("%s: mmap index %d old head %zu new head %zu\n",
374 __func__, idx, (size_t)*old, (size_t)*head);
389 * In full trace mode 'head' continually increases. However in snapshot
390 * mode 'head' is an offset within the buffer. Here 'old' and 'head'
392 * always less than 'head'.
395 *old = *head;
396 *head += mm->len;
402 if (*old > *head)
403 *head += mm->len;
406 pr_debug3("%s: wrap-around %sdetected, adjusted old head %zu adjusted new head %zu\n",
407 __func__, wrapped ? "" : "not ", (size_t)*old, (size_t)*head);