linux-yocto/samples/ftrace
Steven Rostedt b1627af84e tracing: samples: Initialize trace_array_printk() with the correct function
commit 1b0c192c92ea1fe2dcb178f84adf15fe37c3e7c8 upstream.

When using trace_array_printk() on a created instance, the correct
function to use to initialize it is:

  trace_array_init_printk()

Not

  trace_printk_init_buffer()

The former is a proper function to use, the latter is for initializing
trace_printk() and causes the NOTICE banner to be displayed.

Cc: stable@vger.kernel.org
Cc: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Cc: Divya Indi <divya.indi@oracle.com>
Link: https://lore.kernel.org/20250509152657.0f6744d9@gandalf.local.home
Fixes: 89ed42495e ("tracing: Sample module to demonstrate kernel access to Ftrace instances.")
Fixes: 38ce2a9e33 ("tracing: Add trace_array_init_printk() to initialize instance trace_printk() buffers")
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-05-22 14:12:21 +02:00
..
ftrace-direct-modify.c samples: ftrace: Replace bti assembly with hint for older compiler 2023-08-21 22:03:58 -04:00
ftrace-direct-multi-modify.c samples: ftrace: Replace bti assembly with hint for older compiler 2023-08-21 22:03:58 -04:00
ftrace-direct-multi.c samples: ftrace: Replace bti assembly with hint for older compiler 2023-08-21 22:03:58 -04:00
ftrace-direct-too.c samples: ftrace: Replace bti assembly with hint for older compiler 2023-08-21 22:03:58 -04:00
ftrace-direct.c samples: ftrace: Replace bti assembly with hint for older compiler 2023-08-21 22:03:58 -04:00
ftrace-ops.c samples: ftrace: Make some global variables static 2023-02-07 12:48:00 -05:00
Makefile ftrace: Add sample with custom ops 2023-01-25 10:31:23 -05:00
sample-trace-array.c tracing: samples: Initialize trace_array_printk() with the correct function 2025-05-22 14:12:21 +02:00
sample-trace-array.h