diff options
author | Elijah Wright <git@elijahs.space> | 2025-08-20 22:39:07 -0700 |
---|---|---|
committer | Steven Rostedt (Google) <rostedt@goodmis.org> | 2025-09-23 09:37:31 -0400 |
commit | ade2105e748f85eb026d26701091213855aea633 (patch) | |
tree | bdeb22bca01f4c905141ee2fef20152d755f1b21 /rust/helpers/page.c | |
parent | 1d67d67a8c88db99ebf5b1323c238929c5fa8483 (diff) |
tracing: Move buffer in trace_seq to end of struct
TRACE_SEQ_BUFFER_SIZE is dependent on the architecture for its size. on 64-bit
systems, it is 8148 bytes. forced 8-byte alignment in size_t and seq_buf means
that trace_seq is 8200 bytes on 64-bit systems. moving the buffer to the end
of the struct fixes the issue. there shouldn't be any side effects, i.e.
pointer arithmetic on trace_seq
Cc: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Link: https://lore.kernel.org/20250821053917.23301-1-git@elijahs.space
Signed-off-by: Elijah Wright <git@elijahs.space>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Diffstat (limited to 'rust/helpers/page.c')
0 files changed, 0 insertions, 0 deletions