Received: by 2002:ab2:2441:0:b0:1f3:1f8c:d0c6 with SMTP id k1csp4655lqe; Wed, 3 Apr 2024 19:15:31 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVy/tv/ij6zirpgcn6vvx+UKR2Tyh+/b6/UgdgUBm8mx1lY91rKoJ5BIjOY43w/ihUKSJOkLkwd/r+azTSXggZfP/dXr9XLL/AIFx2n+A== X-Google-Smtp-Source: AGHT+IHKIn2hXsQnLLqqI29OTV4sVWAGrvfIKj2e3HbskpXrFh1d0pzQXu66987twSFlyOyKzrW+ X-Received: by 2002:a17:90b:207:b0:2a2:838d:bd4b with SMTP id fy7-20020a17090b020700b002a2838dbd4bmr1352121pjb.0.1712196931518; Wed, 03 Apr 2024 19:15:31 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712196931; cv=pass; d=google.com; s=arc-20160816; b=g67ZyV11xoh70CVjSq15/IJDJnokFr4GcpiqucPxShQplWcs4UmE6le8yFRoyHixNm 5B2jUvYDx9PfGfhor5xyF9wdUmRmbw6j8UnUQEyfSkZJsvyX08Qx6ph+rhB61iTcBrQT LohKYIfaITkeRLP+pPRua/qfTTqUnPdbEP6KYuq3LZ3iTwP3LIlnLkpUvyGCMeFs32Ue dGTkgTBg8ESO6ZrEtk2j7b9eRaqSnuzrzF2GB/IjoblZ01lSnMzPgD16jlfpw1NBlGIs sUvB4wvPncSKlmtD0VsTCX7nZjWtXp4geCAqtRgkxvbRIb9gk6vTgKhzgyrR8vx03Q6K fw9w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :message-id:date:references:in-reply-to:subject:cc:to:from :dkim-signature; bh=0PcvpW5SQPrf4QnOqaQeX/XXu99U3a1qNIXPB0jb71k=; fh=dVZxzB8LiLg/DiEIH9TimniZ4/oiUyENzp/AaeaXBnU=; b=FgcXjwXoNMj0uF7deUAAbJR0NBwLB9t9KY0+PIKOWF2Z3YD9o9y0UrIhb+2o6GKTVd wVF4qZ9YWi/YjHsY7KEJ/lbcomDxESqHr9WdZ1eCBAFRT4KHqvwJQLIlXMcZPULyQkzG fGKfvJ9L/FRdBn/wz6HNkTYE//tOq56aAXbksdeliB+jSL55l8+fFi9SZG++GzsFvWWq M8YT05rWcP3xHvIy0CqG88LGVi/D3SkBNk2emZsOSLGXMkwAQZBAYLuBil6RdkQq+hWq wN1uW9UQAkfTnOcZ+Uc+2AKPddF63Q8KSuKlyPngqmfPmdEkQodCsQ76CheVv5lCQxDG MGgg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ellerman.id.au header.s=201909 header.b=VyMVQ3zt; arc=pass (i=1 spf=pass spfdomain=ellerman.id.au dkim=pass dkdomain=ellerman.id.au); spf=pass (google.com: domain of linux-kernel+bounces-130833-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-130833-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id z62-20020a17090a6d4400b0029fb5c619a4si684799pjj.137.2024.04.03.19.15.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Apr 2024 19:15:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-130833-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@ellerman.id.au header.s=201909 header.b=VyMVQ3zt; arc=pass (i=1 spf=pass spfdomain=ellerman.id.au dkim=pass dkdomain=ellerman.id.au); spf=pass (google.com: domain of linux-kernel+bounces-130833-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-130833-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 52336B2652A for ; Thu, 4 Apr 2024 02:14:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BE2081BDC8; Thu, 4 Apr 2024 02:14:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ellerman.id.au header.i=@ellerman.id.au header.b="VyMVQ3zt" Received: from gandalf.ozlabs.org (gandalf.ozlabs.org [150.107.74.76]) (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 D3E123233; Thu, 4 Apr 2024 02:14:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=150.107.74.76 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712196868; cv=none; b=nUKkBUYxIFwNq3txgVe70WcL44+XfLNoqR5RzlRTYKnsLllyRrFl8q0/QikyNyjrxtVUAuySGAzpwpxuAl5BOk3I12WP46VlBfCwpabjqkPUo0aOrU9AqMYtx/WV+PuW4mJMOYDJtogHUJRsfOwZbTlyw/jE/KnW/bmfBwUz2CQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712196868; c=relaxed/simple; bh=R4aUilhN/aKLzJiF+HvkOFiYVxByUuTPeENIZPQUzeM=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=RmIjYTi/IF4DjLMYkZQSBBYwcWRfhMoRhZXBKulQQl1GO4SrYk0fZmZR3wHZf9tNjT1hk8ehz1ZxnQvF7hUG95hUl+7GQ3KKVYafn/jS0L5Bwey9bC14FNU0c2/Lxv1gD3jOPZ15A6Z5ImWS5B130/TR4QT42IbBYID/EX5NbdQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ellerman.id.au; spf=pass smtp.mailfrom=ellerman.id.au; dkim=pass (2048-bit key) header.d=ellerman.id.au header.i=@ellerman.id.au header.b=VyMVQ3zt; arc=none smtp.client-ip=150.107.74.76 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ellerman.id.au Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ellerman.id.au DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ellerman.id.au; s=201909; t=1712196863; bh=0PcvpW5SQPrf4QnOqaQeX/XXu99U3a1qNIXPB0jb71k=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=VyMVQ3ztogSJTiIgLxBnLkNGFUgd68Qe2KDkfvwgzAo6UXogiTKbR69fLdEZZdu7n j3iNV2JgacCj30EfVfA0nufM6LLB0HhkUu4/gC0cH9GF15bjP6K55yY/SHfDcHG5LZ C6A3Ro/1onK6pyPh3jlVC2U8y95oPYSyx7VeOvKtcmV57g7fuqL83rvaMyFKYOVpxw oxm58pQDGWVdn2ucF5HZ6tep2QVSw9tARy9V9golouCtHYA3Tik7KGkuZEvWcLHYKF 3HCUbzR0cNgClz2PklZaCGNb+9TQaIfvB8jeqaIi2XVH6tgkaEYydsWFGiIh6MP6A8 HT6H386UWr5YA== Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 4V94th0jq3z4wcQ; Thu, 4 Apr 2024 13:14:19 +1100 (AEDT) From: Michael Ellerman To: Guenter Roeck , linux-kselftest@vger.kernel.org Cc: David Airlie , Arnd Bergmann , =?utf-8?Q?Ma=C3=ADra?= Canal , Dan Carpenter , Kees Cook , Daniel Diaz , David Gow , Arthur Grillo , Brendan Higgins , Naresh Kamboju , Maarten Lankhorst , Andrew Morton , Maxime Ripard , Ville =?utf-8?B?U3lyasOkbMOk?= , Daniel Vetter , Thomas Zimmermann , dri-devel@lists.freedesktop.org, kunit-dev@googlegroups.com, linux-arch@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-parisc@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-riscv@lists.infradead.org, linux-s390@vger.kernel.org, linux-sh@vger.kernel.org, loongarch@lists.linux.dev, netdev@vger.kernel.org, x86@kernel.org, Guenter Roeck , Linux Kernel Functional Testing Subject: Re: [PATCH v3 15/15] powerpc: Add support for suppressing warning backtraces In-Reply-To: <20240403131936.787234-16-linux@roeck-us.net> References: <20240403131936.787234-1-linux@roeck-us.net> <20240403131936.787234-16-linux@roeck-us.net> Date: Thu, 04 Apr 2024 13:14:16 +1100 Message-ID: <874jch98nb.fsf@mail.lhotse> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain Guenter Roeck writes: > Add name of functions triggering warning backtraces to the __bug_table > object section to enable support for suppressing WARNING backtraces. > > To limit image size impact, the pointer to the function name is only added > to the __bug_table section if both CONFIG_KUNIT_SUPPRESS_BACKTRACE and > CONFIG_DEBUG_BUGVERBOSE are enabled. Otherwise, the __func__ assembly > parameter is replaced with a (dummy) NULL parameter to avoid an image size > increase due to unused __func__ entries (this is necessary because __func__ > is not a define but a virtual variable). > > Tested-by: Linux Kernel Functional Testing > Acked-by: Dan Carpenter > Cc: Michael Ellerman > Signed-off-by: Guenter Roeck > --- > v2: > - Rebased to v6.9-rc1 > - Added Tested-by:, Acked-by:, and Reviewed-by: tags > - Introduced KUNIT_SUPPRESS_BACKTRACE configuration option > v3: > - Rebased to v6.9-rc2 > > arch/powerpc/include/asm/bug.h | 37 +++++++++++++++++++++++++--------- > 1 file changed, 28 insertions(+), 9 deletions(-) I ran it through some build and boot tests, LGTM. Acked-by: Michael Ellerman (powerpc) cheers