diff options
| author | 2026-07-20 19:44:34 +0900 | |
|---|---|---|
| committer | 2026-07-21 18:00:01 +0900 | |
| commit | 36db65d0e5de923909e4d2b13524375b139568ac (patch) | |
| tree | 750cd8cf2ee72067aae95e240a3c0935752c01c3 /scripts/Makefile.thinlto | |
| parent | tracing/probes: Simplify BTF_KIND_PTR case in fetch_type_from_btf_type() (diff) | |
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/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
