diff options
author | 2023-12-19 17:38:00 -0500 | |
---|---|---|
committer | 2023-12-21 11:04:48 -0500 | |
commit | 3cb3091138ca0921c4569bcf7ffa062519639b6a (patch) | |
tree | 0e60aa77a9cc1ad37ff399c4c1f2741d6ff40427 /tools/perf/scripts/python/libxed.py | |
parent | tracing: Update subbuffer with kilobytes not page order (diff) | |
download | wireguard-linux-3cb3091138ca0921c4569bcf7ffa062519639b6a.tar.xz wireguard-linux-3cb3091138ca0921c4569bcf7ffa062519639b6a.zip |
ring-buffer: Use subbuf_order for buffer page masking
The comparisons to PAGE_SIZE were all converted to use the
buffer->subbuf_order, but the use of PAGE_MASK was missed.
Convert all the PAGE_MASK usages over to:
(PAGE_SIZE << cpu_buffer->buffer->subbuf_order) - 1
Link: https://lore.kernel.org/linux-trace-kernel/20231219173800.66eefb7a@gandalf.local.home
Cc: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Tzvetomir Stoyanov <tz.stoyanov@gmail.com>
Cc: Vincent Donnefort <vdonnefort@google.com>
Cc: Kent Overstreet <kent.overstreet@gmail.com>
Fixes: 139f84002145 ("ring-buffer: Page size per ring buffer")
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Diffstat (limited to 'tools/perf/scripts/python/libxed.py')
0 files changed, 0 insertions, 0 deletions