Received: by 2002:a05:7208:13ce:b0:7f:395a:35b6 with SMTP id r14csp161394rbe; Wed, 28 Feb 2024 16:03:18 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVcj0AKWkGYi3mfOAbERZHcF1XbCoI3ETWSv8kCX3NRVw7lIPPSrLAAPsGug70qX0H9WPZ8mepXeyMpdJO2/M1dyQsox2sd+rk5JIV+YA== X-Google-Smtp-Source: AGHT+IFDDQUqxWRQ4D+W6rqsYWuem4u9H6g+0GD5TdjPYwXfHUbQsfZJtpIxM4cJpKN5MzhR+Gf2 X-Received: by 2002:a17:906:448b:b0:a3e:5ebf:345c with SMTP id y11-20020a170906448b00b00a3e5ebf345cmr189783ejo.21.1709164998309; Wed, 28 Feb 2024 16:03:18 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709164998; cv=pass; d=google.com; s=arc-20160816; b=lbxdWJjx9XWjyywSyRCUY6ljpmjI2t1PK6o3AWhrrMmjHvojy7/2wpJA500N/ff05U R5CkGiAzZu1ulBm72sufTTUXFS4eadg19kfEK8LfcbOjqXjxhTVRQW/YP8Hi6D8JYtOb EW4Y/QzyUiQHejdy9liR5PXNC69NY3RSIncCATdRlbddwGEorpxW6xRRnUlirY8QZI2I xkheowGYmkbM57mmB21WkDlCppZfqgkqB3T+1I7YXCedhoRMs/Yfbz47bZwswJj1Gi9j edD+DeFxqDSM+0al2eJfsOcEqAXkjmiX6AFjc3E4IgEdnLAc8Ca0U6WtjSgpmEZwDS0J GHFg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=iXt2sS7kywDdwGI0OTrq/e5tbj8O6kqkud7PcSYtk3Q=; fh=AN0Hx2DXvn1ddSHpStG4fs5CXFQiL88aV+NJA+ykG7w=; b=u4d1+wWkgOC5Hm+HneqW+GXiXVyqVsxYhfPfWe7A9ac9Ojz7cmsL+YUyXx/8Uroy5z MCUMCxSBlC3dMylZlphXMpRDjEVurLRyoe/Z6GiLhVsPSnV1TXI2zJnMiUhfDVJ+3njd 8im8DZ+v1Tfp6Sl0QeoS3slF/zN2lPGw8j4YqoOjV/oqYVIiDWkh/OgobDpJiTrsTv/N DB4ieTJRDjltLAbKLlwQJ0vtFHbM9ZdeMDgDZir2xBTmqLMj7Acc6UjSAqzMOOW0uq2h sgxm5gIX0cLJpFCYH6V2Eih8JiePZX7VPl8Y0h3sF9pecdeMjDZYBeN5BiSVplbIJcNi Oc0g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Kz3x1Mf7; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-85864-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-85864-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id t13-20020a1709066bcd00b00a3e854a98basi46673ejs.235.2024.02.28.16.03.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Feb 2024 16:03:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-85864-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Kz3x1Mf7; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-85864-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-85864-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 am.mirrors.kernel.org (Postfix) with ESMTPS id CC63E1F233C9 for ; Thu, 29 Feb 2024 00:03:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8C2481C2E; Thu, 29 Feb 2024 00:03:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Kz3x1Mf7" 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 AFEC0627 for ; Thu, 29 Feb 2024 00:03:11 +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=1709164991; cv=none; b=O3naF0KOqPZ7V5izzB5QxVGE6Kqb4vPRwsynhl6kjfe9uFHonNzAtd2LxctnS2qahV+MTMIrZbPTnwqCKlru8p0N6z55NQ+L6zBKVHbgRuWdSVXlvdeNmqP1KRWrdRDFKdh1M8uIhI9yqGAB5WWI4hhFk06y4xIfss3LjNwsS6g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709164991; c=relaxed/simple; bh=2eNs+NXleXBM3q2RwiONecNdyT91kbmW24oSBEL3gjg=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=HAxkfH4qXv6VT1toLv+IRoZpwzWRAHMQ8KLBr98dSrCy7SSOMjIdkr4/FKWp8F4qP90F4VdZMUllZFv1yt1ika76h5y4+TIwx7AQfJZjQj4G4H6CPQZAGGUb4QYt0P0H9utQmTuSzQwLm6fhjVFGtMiM+8tuUwGYD/fPbHKdSZk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Kz3x1Mf7; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id A8FBBC433F1; Thu, 29 Feb 2024 00:03:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1709164991; bh=2eNs+NXleXBM3q2RwiONecNdyT91kbmW24oSBEL3gjg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Kz3x1Mf7vZMBEzfdWop9nxw6gIhMT4qJ3ja8RuMVdoZXD5zP6R/dOV7YgYyYoGhZ3 bsA0LD+hyV6DYLSyr01vxFx7hi8zVBP+zPibn40vMU2C8lL5JfQrSVFr41Z10oee6S DHT49ltyMaufEeOOwxV7NQ/tJ+JjWXryb3t6rZkasfxfLjBAQz6Ibt11lrlWZn6ea5 k7AWv+k/ksa+/r7pXrg+2c7ILEdKXoDPJXg2pI8jCmn6ia4xIJ0eEYA0/VuP1ywWCx Ve0MeblfA6mSU5ioqs3cshNHqUQo2/ysuYbH0wE8VtwxNv/P7vUeqrf4AktWSAvTZ2 uHBMva28Qy8mw== Date: Wed, 28 Feb 2024 16:03:09 -0800 From: Josh Poimboeuf To: Steven Rostedt Cc: Josh Poimboeuf , x86@kernel.org, linux-kernel@vger.kernel.org, Peter Zijlstra , Vince Weaver , Dave Jones , Jann Horn , Miroslav Benes , Andy Lutomirski , Thomas Gleixner , Masami Hiramatsu , Nilay Vaish Subject: Re: [PATCH v2 06/11] x86/unwind/orc: Convert global variables to static Message-ID: <20240229000309.ibtuk7gr27d7cbxz@treble> References: <43ae310bf7822b9862e571f36ae3474cfde8f301.1587808742.git.jpoimboe@redhat.com> <20240228183507.78c5f130@gandalf.local.home> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20240228183507.78c5f130@gandalf.local.home> On Wed, Feb 28, 2024 at 06:35:07PM -0500, Steven Rostedt wrote: > On Sat, 25 Apr 2020 05:03:05 -0500 > Josh Poimboeuf wrote: > > > These variables aren't used outside of unwind_orc.c, make them static. > > > > Also annotate some of them with '__ro_after_init', as applicable. > > So it appears that crash uses "lookup_num_blocks" to be able to do > back-traces with the ORC unwinder. But because it's now static, crash can no > longer do that. Hm, but why? Even a static variable has a known address. -- Josh