]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
tracing/histograms: Simplify last_cmd_set()
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sat, 21 Oct 2023 14:42:41 +0000 (16:42 +0200)
committerSteven Rostedt (Google) <rostedt@goodmis.org>
Mon, 23 Oct 2023 17:31:14 +0000 (13:31 -0400)
commit545db7e21e64766e6b7cb987fbfd3e79419726ce
treec217808f145d86303e3ca83f0d5377641a5a1156
parent845e31e1101fc8533be52aff42d8f1ff48636024
tracing/histograms: Simplify last_cmd_set()

Turn a kzalloc()+strcpy()+strncat() into an equivalent and less verbose
kasprintf().

Link: https://lore.kernel.org/linux-trace-kernel/30b6fb04dadc10a03cc1ad08f5d8a93ef623a167.1697899346.git.christophe.jaillet@wanadoo.fr
Cc: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: Mukesh ojha <quic_mojha@quicinc.com>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
kernel/trace/trace_events_hist.c