]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
tracing: probe-events: Cleanup entry-arg storing code
authorMasami Hiramatsu (Google) <mhiramat@kernel.org>
Sat, 29 Mar 2025 06:39:59 +0000 (15:39 +0900)
committerMasami Hiramatsu (Google) <mhiramat@kernel.org>
Wed, 2 Jul 2025 00:44:12 +0000 (09:44 +0900)
commitddb017ec9c3346e511f16dbae784a72eb91994dd
treebd5d217d236e0e97357d98f4fe0dce2c6a338096
parentd0b3b7b22dfa1f4b515fd3a295b3fd958f9e81af
tracing: probe-events: Cleanup entry-arg storing code

Cleanup __store_entry_arg() so that it is easier to understand.
The main complexity may come from combining the loops for finding
stored-entry-arg and max-offset and appending new entry.

This split those different loops into 3 parts, lookup the same
entry-arg, find the max offset and append new entry.

Link: https://lore.kernel.org/all/174323039929.348535.4705349977127704120.stgit@devnote2/
Signed-off-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
kernel/trace/trace_probe.c