diff options
| author | Ryan Roberts <[email protected]> | 2024-10-21 14:18:31 +0000 |
|---|---|---|
| committer | Steven Rostedt (Google) <[email protected]> | 2024-10-30 23:41:07 +0000 |
| commit | 2c33155ef678033b8a3105b824cdef930f05b47d (patch) | |
| tree | aadef3fb8d99703fe10594fd451f47811c04bfad /net/unix/af_unix.c | |
| parent | tracing: Use atomic64_inc_return() in trace_clock_counter() (diff) | |
| download | kernel-2c33155ef678033b8a3105b824cdef930f05b47d.tar.gz kernel-2c33155ef678033b8a3105b824cdef930f05b47d.zip | |
tracing: Make percpu stack trace buffer invariant to PAGE_SIZE
Previously the size of "struct ftrace_stacks" depended upon PAGE_SIZE.
For the common 4K page size, on a 64-bit system, sizeof(struct
ftrace_stacks) was 32K. But for a 64K page size, sizeof(struct
ftrace_stacks) was 512K.
But ftrace stack usage requirements should be invariant to page size. So
let's redefine FTRACE_KSTACK_ENTRIES so that "struct ftrace_stacks" is
always sized at 32K for 64-bit and 16K for 32-bit.
As a side effect, it removes the PAGE_SIZE compile-time constant
assumption from this code, which is required to reach the goal of
boot-time page size selection.
Cc: Masami Hiramatsu <[email protected]>
Cc: Mathieu Desnoyers <[email protected]>
Link: https://lore.kernel.org/[email protected]
Signed-off-by: Ryan Roberts <[email protected]>
Signed-off-by: Steven Rostedt (Google) <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
