Re: [PATCH] tracing/histograms: Simplify last_cmd_set()

2023-10-23 Thread Mukesh Ojha
On 10/21/2023 8:12 PM, Christophe JAILLET wrote: Turn a kzalloc()+strcpy()+strncat() into an equivalent and less verbose kasprintf(). Signed-off-by: Christophe JAILLET --- kernel/trace/trace_events_hist.c | 11 ++- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git

[PATCH] tracing/histograms: Simplify last_cmd_set()

2023-10-21 Thread Christophe JAILLET
Turn a kzalloc()+strcpy()+strncat() into an equivalent and less verbose kasprintf(). Signed-off-by: Christophe JAILLET --- kernel/trace/trace_events_hist.c | 11 ++- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/kernel/trace/trace_events_hist.c