Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp7263905rdb; Wed, 3 Jan 2024 09:41:49 -0800 (PST) X-Google-Smtp-Source: AGHT+IFmJX/yUD8DycBaGg3jGht0oaxv+PRYCg5+jXi6aoGXDDKh8gt6+kv2fbgQZ4HXgtv8YxND X-Received: by 2002:a17:90a:a10a:b0:28c:d0ab:adf0 with SMTP id s10-20020a17090aa10a00b0028cd0abadf0mr2660819pjp.96.1704303708855; Wed, 03 Jan 2024 09:41:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704303708; cv=none; d=google.com; s=arc-20160816; b=EtkWDhhY0rEnx3qozI4wehYso+TBQy2d3sF0QjftAGr2Yv/9TWbYNGBevC3tWRq/z4 PJuuNBiK6Wd4L30hSJLNaCdupMQAg2l/mj/T0ySUGJE0Nm3+LhPWm3MrugoHlvMRfLl1 X5u6Jt+yM392j8K83/6BP+w7wyXgogqqf65QYXS8HlIfxxuIV1R4GGUkruWHTTcfXLlR 75981G3CBwNYPgNPgw/ThWvIOcbT6sAAMq2D8wEAfpYx4ELIAcO2WEDNwM1IVlhMWFfT gvQZcYqTiDVqwkTBOuoLb2Z30mlPrcuTV/ejiZr311KnaqBqakal8a5Utjj3R4cG7itE NP6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=kif2bw2FG7EZZYJYjHsYnB9iHshx00TE2vdHkS1MAQc=; fh=tckruzcyu8N2X38ac6ELuybmVxWhbmwaefg3G4XDoCo=; b=k07xl+MzGLPIVVcaA1Vt/ctv/741ms4VgDsoFL6FoJG6dIlE7ZhHQFide3YPqQnfMH QAkDUCs/5biteG9+HrjCN7rmSyhoJWBLFVL88AEOIMPu6ThWotrfJ49vitZ/u/Lk5xRp QGwYSTXPmKuH/nx/+XKhU0Bmb/8mIcxsA4da6ICbiBA518ZFl3MfgA3XliE7t6DLFiZV AEpdSR/+LsmnOj+/gmr2a2x9iV7HJ1uWmEAQa/7gRsEcw6eBUO7tn/XXrarQghnQhTzn KDmNiONX/WZov53VrQoW/5K6nPLMoAHqFXtIgsuDOiQrbG089cOVkT8Q410teHVgn1Lg 2Y5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ilbW+Awq; spf=pass (google.com: domain of linux-kernel+bounces-15811-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-15811-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id a12-20020a17090a8c0c00b0028ce5cdc29esi1477684pjo.177.2024.01.03.09.41.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jan 2024 09:41:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-15811-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ilbW+Awq; spf=pass (google.com: domain of linux-kernel+bounces-15811-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-15811-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 7C112286CED for ; Wed, 3 Jan 2024 17:41:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B20781C68D; Wed, 3 Jan 2024 17:40:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="ilbW+Awq" X-Original-To: linux-kernel@vger.kernel.org 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 DC3271C2A9; Wed, 3 Jan 2024 17:40:40 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5DF93C4339A; Wed, 3 Jan 2024 17:40:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1704303640; bh=kif2bw2FG7EZZYJYjHsYnB9iHshx00TE2vdHkS1MAQc=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=ilbW+AwqPODlsLi6kVkZGWBFz009dwCrrxcslPjVrBoRceZIJsooVkOlLImYht5P5 rqWKdYGGPXfwrRpbS1caw8QdZCW57ZUFXWlLUqR8i+hIcq18J7wG3Ukz/6jnz1J8As IkGbSsmGVaYCRgYvUObucDbZ71j7kDDW+veLmKuNwpQ9Dp+lejSTuRdGefwXY/hry3 UiThckl4BtqxBEe1vS6/6IKQE/l7B7Hz4M9iwx8QB1gk0cLHtwYSJxgE7BTABizevP j6lkaF+eY33jod2g4DXZM1k+/4S/005F+zNHI3y6E7vmalL58VJbRMmuvUOLprzc28 p/CKsSYaJ29Gw== Received: by mail-lf1-f48.google.com with SMTP id 2adb3069b0e04-50e7d6565b5so7848001e87.0; Wed, 03 Jan 2024 09:40:40 -0800 (PST) X-Gm-Message-State: AOJu0YymhJz58QV2p9ZN3uTGLiaMVJGVliR+y0aADoC0s5aDJkxrHnAu JCGlw0UcSyPMJDZuz+kH8nEP21L/DTFWpASSEF4= X-Received: by 2002:ac2:5b9b:0:b0:50e:71d4:c76d with SMTP id o27-20020ac25b9b000000b0050e71d4c76dmr6922016lfn.109.1704303638367; Wed, 03 Jan 2024 09:40:38 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20231207014655.1252484-1-irogers@google.com> In-Reply-To: From: Song Liu Date: Wed, 3 Jan 2024 09:40:26 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v1] perf env: Avoid recursively taking env->bpf_progs.lock To: Arnaldo Carvalho de Melo Cc: Ian Rogers , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Adrian Hunter , Ming Wang , Ravi Bangoria , Huacai Chen , Kan Liang , K Prateek Nayak , linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, bpf@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, Jan 3, 2024 at 8:27=E2=80=AFAM Arnaldo Carvalho de Melo wrote: > > Em Tue, Jan 02, 2024 at 07:00:53PM -0800, Ian Rogers escreveu: > > On Wed, Dec 6, 2023 at 5:46=E2=80=AFPM Ian Rogers = wrote: > > > > > > Add variants of perf_env__insert_bpf_prog_info, perf_env__insert_btf > > > and perf_env__find_btf prefixed with __ to indicate the > > > env->bpf_progs.lock is assumed held. Call these variants when the loc= k > > > is held to avoid recursively taking it and potentially having a threa= d > > > deadlock with itself. > > > > > > Signed-off-by: Ian Rogers > > > > Ping. > > Applied, with that minor patch reduction hunk and this: > > Fixes: f8dfeae009effc0b ("perf bpf: Show more BPF program info in print_b= pf_prog_info()") > > Song, can I have your Acked-by? LGTM. Thanks for the fix! Acked-by: Song Liu