diff options
author | Steven Rostedt <srostedt@redhat.com> | 2009-06-11 09:29:58 -0400 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2009-06-16 21:19:23 -0400 |
commit | 22f470f8daea64bc03be1fe30c8c5df382295386 (patch) | |
tree | 3186ae50783f1795307055d48a583e23e2e21ad2 /kernel/freezer.c | |
parent | 44ad18e0a65e296b2e68a1452509f6222cdce743 (diff) |
ring-buffer: use BUF_PAGE_HDR_SIZE in calculating index
The index of the event is found by masking PAGE_MASK to it and
subtracting the header size. Currently the header size is calculate
by PAGE_SIZE - BUF_PAGE_SIZE, when we already have a macro
BUF_PAGE_HDR_SIZE to define it.
If we want to change BUF_PAGE_SIZE to something less than filling
the rest of the page (this is done for debugging), then we break
the algorithm to find the index.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'kernel/freezer.c')
0 files changed, 0 insertions, 0 deletions