summaryrefslogtreecommitdiff
path: root/samples
diff options
context:
space:
mode:
authorSven Schnelle <svens@linux.ibm.com>2023-08-16 17:49:28 +0200
committerSteven Rostedt (Google) <rostedt@goodmis.org>2023-08-16 16:37:07 -0400
commitc4d6b5438116c184027b2e911c0f2c7c406fb47c (patch)
tree84ddbef03228029fd279b790dcb4dced3b6405f5 /samples
parent887f92e09ef34a949745ad26ce82be69e2dabcf6 (diff)
tracing/synthetic: Allocate one additional element for size
While debugging another issue I noticed that the stack trace contains one invalid entry at the end: <idle>-0 [008] d..4. 26.484201: wake_lat: pid=0 delta=2629976084 000000009cc24024 stack=STACK: => __schedule+0xac6/0x1a98 => schedule+0x126/0x2c0 => schedule_timeout+0x150/0x2c0 => kcompactd+0x9ca/0xc20 => kthread+0x2f6/0x3d8 => __ret_from_fork+0x8a/0xe8 => 0x6b6b6b6b6b6b6b6b This is because the code failed to add the one element containing the number of entries to field_size. Link: https://lkml.kernel.org/r/20230816154928.4171614-4-svens@linux.ibm.com Cc: Masami Hiramatsu <mhiramat@kernel.org> Fixes: 00cf3d672a9d ("tracing: Allow synthetic events to pass around stacktraces") Signed-off-by: Sven Schnelle <svens@linux.ibm.com> Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Diffstat (limited to 'samples')
0 files changed, 0 insertions, 0 deletions