From nobody Fri Oct 10 20:16:55 2025 Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) (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 A74F12F431C; Fri, 13 Jun 2025 00:01:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=216.40.44.11 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1749772920; cv=none; b=UXShx2eeSLMYtrnlSJ/zDO2k32h48cZC/Q7FVH4hH7dOMwsS/vKoqkOW9NRz8BPzfgvM+WLlqPs6VKhd59Af71Y5EeO0TF6AxKE29D8udYIyWm9gXFTc6u1WAyJwDb7MrdkHMwAimTDaihOu7eCVezlPNltT6xFayPNJGPBSyfM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1749772920; c=relaxed/simple; bh=o9CR3EhjQ+ZZzTzS7T0mZi/CsjrJv1pHR8dgVz8Pstk=; h=Message-ID:Date:From:To:Cc:Subject:References:MIME-Version: Content-Type; b=QLnsRnSSwsU2ZMOB1l8u6Xm6K6fDgBpgpTNsxM0/GgzZ4VAZkFWazUGs5K07zHk1m9PIRAvFxTquiG+XvMk53G6S9CITBl2XVmeRcpzt+YgO5pSM3U1+5R665epJbkP9JZRfZe6bfG26QzIUph+Tj1jF7lJyc/QHn4LSxxdqqDE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=goodmis.org; spf=pass smtp.mailfrom=goodmis.org; arc=none smtp.client-ip=216.40.44.11 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=goodmis.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=goodmis.org Received: from omf08.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id 19A1F1A041C; Fri, 13 Jun 2025 00:01:55 +0000 (UTC) Received: from [HIDDEN] (Authenticated sender: nevets@goodmis.org) by omf08.hostedemail.com (Postfix) with ESMTPA id CE4C120028; Fri, 13 Jun 2025 00:01:52 +0000 (UTC) Received: from rostedt by gandalf with local (Exim 4.98.2) (envelope-from ) id 1uPrtJ-00000001wnd-1nuZ; Thu, 12 Jun 2025 20:03:29 -0400 Message-ID: <20250613000329.286479259@goodmis.org> User-Agent: quilt/0.68 Date: Thu, 12 Jun 2025 19:58:32 -0400 From: Steven Rostedt To: linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org, linux-kbuild@vger.kernel.org, llvm@lists.linux.dev Cc: Mathieu Desnoyers , Masami Hiramatsu , Arnd Bergmann , Masahiro Yamada , Nathan Chancellor , Nicolas Schier , Nick Desaulniers , Catalin Marinas , Andrew Morton Subject: [PATCH v2 5/5] tracing: Call trace_ftrace_test_filter() for the event References: <20250612235827.011358765@goodmis.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Stat-Signature: diua5zcqp9iczdgnfp1grmz7rqzmt3wr X-Rspamd-Server: rspamout04 X-Rspamd-Queue-Id: CE4C120028 X-Session-Marker: 6E657665747340676F6F646D69732E6F7267 X-Session-ID: U2FsdGVkX185jXjmEA5Il45s1+YOC9oxdiG1nQiFu4I= X-HE-Tag: 1749772912-115042 X-HE-Meta: U2FsdGVkX1/9VScq6F1KmsgKUwBx7tW3d18olEMu635z4LH5QTHhZRhaSj4Nq44JUK/H3mU6rrMHNMTEA+SEwgG9SUd1ws44w/ZX4VjbEV1ejEOp4H+qlyxGuRFRr202al68PP9VkgBefYO6indgUyF7Seciuq8ZyKL3bqe5Kd9QkM8L1RiVqgiYmzvuxD+zjYRpRgTA1PslzjSv6egrWAJWLyE17IdcwB9WozTg8Xow80zlT+fINToknGQg7G3L7QnD0z5EM7Yoj/Ah3s8PehiUoi9jxeuuLNBYwHIIHVyF6gz7p7OwXEpIxjGMTwanOQriU0Q5IXzcFBFjYfuvT6dxJ8IMym4Uh/smzB/tD6SsWdE4C2tE3935tKNsd8jLFc+/U7Vgfe5U5nc+XcEZbg== Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: Steven Rostedt The trace event filter bootup self test tests a bunch of filter logic against the ftrace_test_filter event, but does not actually call the event. Work is being done to cause a warning if an event is defined but not used. To quiet the warning call the trace event under an if statement where it is disabled so it doesn't get optimized out. Signed-off-by: Steven Rostedt (Google) --- kernel/trace/trace_events_filter.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/kernel/trace/trace_events_filter.c b/kernel/trace/trace_events= _filter.c index ea8b364b6818..79621f0fab05 100644 --- a/kernel/trace/trace_events_filter.c +++ b/kernel/trace/trace_events_filter.c @@ -2902,6 +2902,10 @@ static __init int ftrace_test_event_filter(void) if (i =3D=3D DATA_CNT) printk(KERN_CONT "OK\n"); =20 + /* Need to call ftrace_test_filter to prevent a warning */ + if (!trace_ftrace_test_filter_enabled()) + trace_ftrace_test_filter(1, 2, 3, 4, 5, 6, 7, 8); + return 0; } =20 --=20 2.47.2