Received: by 2002:ab2:710b:0:b0:1ef:a325:1205 with SMTP id z11csp642437lql; Mon, 11 Mar 2024 12:53:16 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUrDgINlE7C32/VXI7Lj264006BhEx31AyLGGuJv+x6DZC/E04bx2ACBYjY61D2Eek0q6U+brlrs0BWzRqjykMn90tdyHU2AeLkdlSQtA== X-Google-Smtp-Source: AGHT+IFdgHHejp7tpESKRCgONwM/Gn/B9ljalC6pGSIfj8Sj0pMX4bZt1qCu0eQYUOh0RMM6zRRw X-Received: by 2002:a05:620a:a11:b0:787:ec39:8210 with SMTP id i17-20020a05620a0a1100b00787ec398210mr6557712qka.52.1710186796527; Mon, 11 Mar 2024 12:53:16 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710186796; cv=pass; d=google.com; s=arc-20160816; b=SMTyd/WezsVtpyIVufKQnkZgQYVo5cByVddKP0N1qCfhsZoBGSdXxlygjBckvW86LJ Hvs1Dh1Xn0BhFQ4o0cmYvUwN3fyeBwf6tLucyQkEyUW3FyoAlqy35toD+LXKEdYnPTHp BfxbbtxprnWWVRWW0ke1WBNcBgQseekJfcohcaRaQQ4kPv0tWeTHf0ymnkEIvLrxexcN 8/8pntcJY1TY4vZ/YuAMSxaEg7+ROdHB86TCxrm80v4VRPAD7gomNCfyhSfVncBD8Zfe D4v7zq7C1Xb+oTu1bdpm5iF13UtGZgfdA7NEluI5SSKhfVH/fiHUFf19wWi1e9mAauqv YCuQ== 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=MBdbYkw7ZcW+pqBv4Dqq9wnY2uIjukqAbE0mQRYRJac=; fh=F8zwP9xL0tJ8sh9qN6Khj1uj/AbARn/qlygr2WaLtTU=; b=TardVOR4CDoIkVoMxEvpURLsQH28H/1dacvCZL/FKGvaCQTxEcq2u0cJwm2dfJSGRN +CmjW6eKFZ7GkgYbMBH1bvdRYOWx8KgceWJtuVPBSGK4qAToXR6mlacoY4HaXI4kvBc+ wJ40ESeNzTu5zwu52Gnq+Yr4RQuiENNnoMtEXfUG8+R0luIs6DGQq6QMQmPBoSEbkO+9 vYRXj4Kdk0ZjyifiQmdc7G4rd1/u344GhW9i4AjbN4H8bgZS5PUWovPbzwt5fa5EzCk6 NUqdL/xR3PIKwVDyQGAUilgwKRaatmYB3VF6VKnHRhwxDbYi5X9HcgfwVE/iKZif5Ami eJcg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=OuHh9Rh9; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-99487-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-99487-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id i3-20020a05620a0a0300b00788625ddf9asi4938827qka.224.2024.03.11.12.53.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Mar 2024 12:53:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-99487-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=OuHh9Rh9; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-99487-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-99487-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 42FA61C2107B for ; Mon, 11 Mar 2024 19:53:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C150B56473; Mon, 11 Mar 2024 19:53:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="OuHh9Rh9" 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 E832652F82; Mon, 11 Mar 2024 19:53:06 +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=1710186787; cv=none; b=Hwk8K04/imjWJWvhOjBREfnj3J5Lid1tlmPpSf5S/dX80PMIFcAVJuJAijp1R0IuvQ68SQPzKaYZASRU6+GiGcu/WSUAPzeQ6JA/e6VAWNO6DFGBUcYDEwT2FfmjVE4iX3axCasDv8DZfsay9RBo5pvMAEFMZi3HGNFBVkiiTrI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710186787; c=relaxed/simple; bh=A8wj8N49Kfd++YiRKkZS1w22NlzaRjpTlevf8GxjfzQ=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=RMby6MUuJGXwq+Kl7mf4XSOLVB03UCdQsQg4n8rcpkJy2CylD6Rz4JUx8p2xjT9Bao/FOxkk36W10T9wTdjWDbMiFL9DAF5QTBDMacrBss2XeRh43z2P5x4NLyfjTZRzb2nfUvhJbdDpZPpsrN95ZZdJggit4injFlxUyFfAO1E= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=OuHh9Rh9; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3AF89C433C7; Mon, 11 Mar 2024 19:53:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1710186786; bh=A8wj8N49Kfd++YiRKkZS1w22NlzaRjpTlevf8GxjfzQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=OuHh9Rh9dziVdp+rlIeIxvEHtxp9Z/Fk+fhyaiwlNLOiBrnzP/6UlxA9J5P9WhAoN 1d1C+EPw3zrnAM9d6aMPqHdiQqHE13b5Mm1+mq3w+NMWt/4TreDasmTss+PiEAHoxx UwPunojTqfX0DEY3QZ5MtKvV3p0Wnm/Kf+WU6oLuY8iibpn+22q+uyK370fG01GI1Q 7VKufD0ge9hehLE+PFFsJXqoSZirTO/FGrCxqOMdPp1ozP8Pt/oh2UQwv4izRCEFYi wdrvN8+T0zbexx4zRlbaB5dnYdkE26AH9ejZ83wFHb+yi6J89wkUyS3+/jIscvXomg ic+8z3r8hlrWQ== Date: Mon, 11 Mar 2024 16:53:03 -0300 From: Arnaldo Carvalho de Melo To: Anne Macedo Cc: Namhyung Kim , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Jiri Olsa , Ian Rogers , Adrian Hunter , linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v1] perf lock contention: skip traceiter functions Message-ID: References: <20240309132710.1055941-1-retpolanne@posteo.net> 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=us-ascii Content-Disposition: inline In-Reply-To: On Mon, Mar 11, 2024 at 07:25:16PM +0000, Anne Macedo wrote: > Anne Macedo writes: > > Namhyung Kim writes: > >> I think it depends on the kernel version and configuration. I remember > >> I saw a different symbol on old kernels. But it'd be hard to handle all > >> the cases. Let's have a single trace text section in the struct machine > >> and use __traceiter_contention_begin only. If it's not found you can > >> fallback to trace_contention_begin. > However, if we fallback to trace_contention_begin, we won't be able to > filter out both __traceiter_contention_begin and trace_contention_begin > at the same time. I think for ARM we need to skip both, no? I.e. I agree with Anne. - Arnaldo