From mboxrd@z Thu Jan 1 00:00:00 1970 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 02CF72BCF67; Thu, 15 May 2025 12:47:17 +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=1747313238; cv=none; b=OqyR6QRMHMl7gT1aPa9oXgqLPUfzG9u1/PAIWYP8z0TPaa1RRV+/JuXwdjFYi66IVQc2wNYW5boryZBYikE43E4siQkPPyXFn71VV/f2DvNElYn5M34JinoKGnkh1Z7CK2ugkWmCRRPH3n7/hMYwN+P3eaRvMB6XjYNoWFcZORI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747313238; c=relaxed/simple; bh=9LwOHpGDLFZKgszWtNvO5DQHvwl986zoPmxZXPECuAg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=PFHMFr/pKunYR7diqi3xctKEWarrxupoJ1OZ7Xq6STnutVgI+DoS38AHIhZv1Svj/KyhexVqDBbio8OUXVtIJesjALQzqzT8EwR4BXDnOYRaQrjatGiINSRZdd7EWNXgpDNulKJkktk5fbjo5EJnabayDY2Ylx6yWsfHSYiTuiM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=H3Oo7c4a; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="H3Oo7c4a" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8DF63C4CEEB; Thu, 15 May 2025 12:47:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1747313237; bh=9LwOHpGDLFZKgszWtNvO5DQHvwl986zoPmxZXPECuAg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=H3Oo7c4aQqjCA0KblghIzrcJ/6KL1ZnahcRyERc/zXDuFT2ljlqfEEv/ldVmgTY9E r0HEhNxXv2ElHClBjIhqubLRhaDl7I6Vne0bHOe/0f7cLAMKycdBs971+Ksujwczia DiqHS5fnebXHIZmD6Moq+Pq7QJnuD1/XWecHt+ztdaNW/FIdLp5UBPiIs+sZUcy6Dd BHezXDc+vNyWMYIfULQ6rZ6rswutj7DDWc7Wq0NyDwG6SVmlqsIZ2JacvuCYlM74v9 PuH/LmG8BzA5IKvcdaSTtvPatnlsWY8Wxg6h6XXso8YetINcAY8U8Xl70vleN61gf8 vwXAw0KFqzPeQ== From: Ingo Molnar To: linux-kernel@vger.kernel.org Cc: Ingo Molnar , Linus Torvalds , Peter Zijlstra , linux-arch@vger.kernel.org, Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti , linux-riscv@lists.infradead.org Subject: [PATCH 12/15] bugs/riscv: Concatenate 'cond_str' with '__FILE__' in __BUG_FLAGS(), to extend WARN_ON/BUG_ON output Date: Thu, 15 May 2025 14:46:41 +0200 Message-ID: <20250515124644.2958810-13-mingo@kernel.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20250515124644.2958810-1-mingo@kernel.org> References: <20250515124644.2958810-1-mingo@kernel.org> Precedence: bulk X-Mailing-List: linux-arch@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Extend WARN_ON and BUG_ON style output from: WARNING: CPU: 0 PID: 0 at kernel/sched/core.c:8511 sched_init+0x20/0x410 to: WARNING: CPU: 0 PID: 0 at [idx < 0 && ptr] kernel/sched/core.c:8511 sched_init+0x20/0x410 Note that the output will be further reorganized later in this series. Signed-off-by: Ingo Molnar Cc: Paul Walmsley Cc: Palmer Dabbelt Cc: Albert Ou Cc: Alexandre Ghiti Cc: linux-riscv@lists.infradead.org Cc: --- arch/riscv/include/asm/bug.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/riscv/include/asm/bug.h b/arch/riscv/include/asm/bug.h index feaf456d465b..da9b8e83934d 100644 --- a/arch/riscv/include/asm/bug.h +++ b/arch/riscv/include/asm/bug.h @@ -61,7 +61,7 @@ do { \ ".org 2b + %3\n\t" \ ".popsection" \ : \ - : "i" (__FILE__), "i" (__LINE__), \ + : "i" (WARN_CONDITION_STR(cond_str) __FILE__), "i" (__LINE__), \ "i" (flags), \ "i" (sizeof(struct bug_entry))); \ } while (0) -- 2.45.2 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C4B78C2D0CD for ; Thu, 15 May 2025 12:47:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=M7j3Px7kKEhEFrvB/o809rIGo26ATJB/5M+pXxDOGvg=; b=oNic2aaHVtIvzl nM3e5PUnekv0dJfHFl4FpAwXXzRR5o/6sdfn+lOQKorBXwp+ylsiRIFdIwlzSvRNsTaExMZ0VCjI8 8XB+bMR5ZnmkJC7KIsqG+gIEhYAFT1jN6RmUuv3r5hNT767cD1C23Du1Zipjj/L1Lf3H3k2AaDIXS SUalalHmFFzq2ayMeF+Ug7iaGYElueEEBfJi1DVZ6vxi7ujgsO5PZkJViYuKjDAjDQytecl1rhAeL e2PLWTamYPYfodpP1vEYJAR+ihKiLrseyzGoKaE59HkYA6q1IClOB68yk0qroOAThiMEev/2uklI7 3L0PFGqG3V6ucSCg7DBg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1uFXzd-00000000bvT-2j8Z; Thu, 15 May 2025 12:47:21 +0000 Received: from nyc.source.kernel.org ([147.75.193.91]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1uFXza-00000000btD-3eQm for linux-riscv@lists.infradead.org; Thu, 15 May 2025 12:47:20 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by nyc.source.kernel.org (Postfix) with ESMTP id 35AEBA4C7B5; Thu, 15 May 2025 12:47:18 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8DF63C4CEEB; Thu, 15 May 2025 12:47:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1747313237; bh=9LwOHpGDLFZKgszWtNvO5DQHvwl986zoPmxZXPECuAg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=H3Oo7c4aQqjCA0KblghIzrcJ/6KL1ZnahcRyERc/zXDuFT2ljlqfEEv/ldVmgTY9E r0HEhNxXv2ElHClBjIhqubLRhaDl7I6Vne0bHOe/0f7cLAMKycdBs971+Ksujwczia DiqHS5fnebXHIZmD6Moq+Pq7QJnuD1/XWecHt+ztdaNW/FIdLp5UBPiIs+sZUcy6Dd BHezXDc+vNyWMYIfULQ6rZ6rswutj7DDWc7Wq0NyDwG6SVmlqsIZ2JacvuCYlM74v9 PuH/LmG8BzA5IKvcdaSTtvPatnlsWY8Wxg6h6XXso8YetINcAY8U8Xl70vleN61gf8 vwXAw0KFqzPeQ== From: Ingo Molnar To: linux-kernel@vger.kernel.org Cc: Ingo Molnar , Linus Torvalds , Peter Zijlstra , linux-arch@vger.kernel.org, Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti , linux-riscv@lists.infradead.org Subject: [PATCH 12/15] bugs/riscv: Concatenate 'cond_str' with '__FILE__' in __BUG_FLAGS(), to extend WARN_ON/BUG_ON output Date: Thu, 15 May 2025 14:46:41 +0200 Message-ID: <20250515124644.2958810-13-mingo@kernel.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20250515124644.2958810-1-mingo@kernel.org> References: <20250515124644.2958810-1-mingo@kernel.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250515_054718_972302_705F2AC8 X-CRM114-Status: GOOD ( 10.37 ) X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org Extend WARN_ON and BUG_ON style output from: WARNING: CPU: 0 PID: 0 at kernel/sched/core.c:8511 sched_init+0x20/0x410 to: WARNING: CPU: 0 PID: 0 at [idx < 0 && ptr] kernel/sched/core.c:8511 sched_init+0x20/0x410 Note that the output will be further reorganized later in this series. Signed-off-by: Ingo Molnar Cc: Paul Walmsley Cc: Palmer Dabbelt Cc: Albert Ou Cc: Alexandre Ghiti Cc: linux-riscv@lists.infradead.org Cc: --- arch/riscv/include/asm/bug.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/riscv/include/asm/bug.h b/arch/riscv/include/asm/bug.h index feaf456d465b..da9b8e83934d 100644 --- a/arch/riscv/include/asm/bug.h +++ b/arch/riscv/include/asm/bug.h @@ -61,7 +61,7 @@ do { \ ".org 2b + %3\n\t" \ ".popsection" \ : \ - : "i" (__FILE__), "i" (__LINE__), \ + : "i" (WARN_CONDITION_STR(cond_str) __FILE__), "i" (__LINE__), \ "i" (flags), \ "i" (sizeof(struct bug_entry))); \ } while (0) -- 2.45.2 _______________________________________________ linux-riscv mailing list linux-riscv@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-riscv