summaryrefslogtreecommitdiff
path: root/scripts/stackusage
diff options
context:
space:
mode:
authorMasami Hiramatsu (Google) <mhiramat@kernel.org>2026-07-20 19:44:34 +0900
committerMasami Hiramatsu (Google) <mhiramat@kernel.org>2026-07-21 18:00:01 +0900
commit36db65d0e5de923909e4d2b13524375b139568ac (patch)
tree750cd8cf2ee72067aae95e240a3c0935752c01c3 /scripts/stackusage
parent0fb6fd1eb3e7c8649473bd0ea6d897c835740157 (diff)
downloadlinux-36db65d0e5de923909e4d2b13524375b139568ac.tar.gz
linux-36db65d0e5de923909e4d2b13524375b139568ac.zip
tracing/fprobe: Remove redundant snprintf in trace_fprobe_match_command_head()
trace_fprobe_match_command_head() copies trace_fprobe_symbol(tf) into a local buffer 'buf' of size MAX_COMMON_HEAD_LEN + 1 using snprintf before comparing with argv[0]. Since trace_fprobe_symbol(tf) already returns a null-terminated string, comparing it directly with argv[0] via strcmp() avoids stack buffer usage and potential symbol truncation at MAX_COMMON_HEAD_LEN. Link: https://lore.kernel.org/all/178454427449.296567.12336315661120939938.stgit@devnote2/ Assisted-by: Antigravity:gemini-3.5-flash Signed-off-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Diffstat (limited to 'scripts/stackusage')
0 files changed, 0 insertions, 0 deletions