Commit 095fe48
committed
tracing: Limit trace_marker writes to just 4K
Limit the max print event of trace_marker to just 4K string size. This must
also be less than the amount that can be held by a trace_seq along with
the text that is before the output (like the task name, PID, CPU, state,
etc). As trace_seq is made to handle large events (some greater than 4K).
Make the max size of a trace_marker write event be 4K which is guaranteed
to fit in the trace_seq buffer.
Link: https://lore.kernel.org/linux-trace-kernel/[email protected]
Suggested-by: Linus Torvalds <[email protected]>
Reviewed-by: Mathieu Desnoyers <[email protected]>
Reviewed-by: Masami Hiramatsu (Google) <[email protected]>
Signed-off-by: Steven Rostedt (Google) <[email protected]>1 parent 6f42249 commit 095fe48
1 file changed
+5
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7293 | 7293 | | |
7294 | 7294 | | |
7295 | 7295 | | |
| 7296 | + | |
| 7297 | + | |
7296 | 7298 | | |
7297 | 7299 | | |
7298 | 7300 | | |
| |||
7320 | 7322 | | |
7321 | 7323 | | |
7322 | 7324 | | |
| 7325 | + | |
| 7326 | + | |
| 7327 | + | |
7323 | 7328 | | |
7324 | 7329 | | |
7325 | 7330 | | |
| |||
7328 | 7333 | | |
7329 | 7334 | | |
7330 | 7335 | | |
7331 | | - | |
7332 | | - | |
7333 | | - | |
7334 | | - | |
7335 | | - | |
7336 | 7336 | | |
7337 | 7337 | | |
7338 | 7338 | | |
| |||
0 commit comments