From nobody Mon Feb 9 04:12:36 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5671227A127; Wed, 14 May 2025 13:39:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747229953; cv=none; b=MW+EKyGb0eXw5IzcCBDupLT/MxPaxGUFPUOwRzqfhhNRc6DdIotPSE+wehX4EJOIhU0iXaiEvq1oxGG2ch4bO3MIL/fCnvgvbrb0QyqyF3rGUVmQxoRpunjXJMr0o/0QA+eyVYuAmd2KD3/6h61TjKTWMI+ZAjK4ry697GwjeV4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747229953; c=relaxed/simple; bh=FcYsyyjQ4yo4y6vB0svJMUVQfor0h6fo43IOHfdiXwQ=; h=Message-ID:Date:From:To:Cc:Subject:References:MIME-Version: Content-Type; b=Ege0ulOiUj+4zaqh4KPJlOGOGbkQMoPRQhOX42VZwhj6QgjHYFxhKJNoYHWJsppG5PP0tYwHUC9m8nm4Eihnjqk/68RbT3PSa+QUEDq+Ae7EYSWzzYqlr9qGhU3PzLF4XG96RmEndOFYOCf3/3ks4OKyELDYs7vfSpvQJ/ABgRQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id E568AC4CEEF; Wed, 14 May 2025 13:39:12 +0000 (UTC) Received: from rostedt by gandalf with local (Exim 4.98.2) (envelope-from ) id 1uFCKi-00000005IEx-1NfX; Wed, 14 May 2025 09:39:40 -0400 Message-ID: <20250514133940.182905408@goodmis.org> User-Agent: quilt/0.68 Date: Wed, 14 May 2025 09:38:32 -0400 From: Steven Rostedt To: linux-kernel@vger.kernel.org Cc: Masami Hiramatsu , Mark Rutland , Mathieu Desnoyers , Andrew Morton , stable@vger.kernel.org, Divya Indi Subject: [for-linus][PATCH 1/4] tracing: samples: Initialize trace_array_printk() with the correct function References: <20250514133831.110736154@goodmis.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: Steven Rostedt 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 Cc: Mathieu Desnoyers Cc: Divya Indi Link: https://lore.kernel.org/20250509152657.0f6744d9@gandalf.local.home Fixes: 89ed42495ef4a ("tracing: Sample module to demonstrate kernel access = to Ftrace instances.") Fixes: 38ce2a9e33db6 ("tracing: Add trace_array_init_printk() to initialize= instance trace_printk() buffers") Signed-off-by: Steven Rostedt (Google) --- samples/ftrace/sample-trace-array.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/ftrace/sample-trace-array.c b/samples/ftrace/sample-tr= ace-array.c index dac67c367457..4147616102f9 100644 --- a/samples/ftrace/sample-trace-array.c +++ b/samples/ftrace/sample-trace-array.c @@ -112,7 +112,7 @@ static int __init sample_trace_array_init(void) /* * If context specific per-cpu buffers havent already been allocated. */ - trace_printk_init_buffers(); + trace_array_init_printk(tr); =20 simple_tsk =3D kthread_run(simple_thread, NULL, "sample-instance"); if (IS_ERR(simple_tsk)) { --=20 2.47.2