Received: by 2002:a05:7208:2202:b0:86:316c:7444 with SMTP id s2csp670008rbb; Fri, 31 May 2024 14:16:32 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUswcPVKMBAzS3ejh8PLWByp8eDcZ77sXqiPpoO8M1eSM4dCI5xCQgztaePsXhkAyayEoCCDE0d1HZGKAkG0Armxh+E81AFq56f5cXAxg== X-Google-Smtp-Source: AGHT+IGsociI9FHNdeAUpgnrBMirgtpEYe1EeRsVatod4pbrSBM4P3vuC5wsAE3y3t1acOIAaJUY X-Received: by 2002:a05:6830:39ec:b0:6f0:9b4c:9aea with SMTP id 46e09a7af769-6f911f2fe36mr3420033a34.16.1717190191947; Fri, 31 May 2024 14:16:31 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717190191; cv=pass; d=google.com; s=arc-20160816; b=GeGLwq1Dob4Sd5vuI5SqZmrZ+lezSsuwSSuQ00oPuh8Anxiu931jXaFOpN0JhN+9zv Avclh3L9trOzphQjyVo/gTfXGWQQyoDGoCer6Q1Ih+TC1XpcbiS589AnhHZ/vNC6XumH 2vUijYja3JuurqsI2o+QIhnp0rc7IJRDeVGEYhdhNPqEvQzTI/bmOj8AOjVQdvEg9zz4 TC5QCDCZZRklyrgC/LIH7o5lG2AZd25ePSuD1swOiIzy8HmppzyoRANbdfWAcd5YMUig +wYHQ6cQS2pzkLHuz30ZgBtRzhP2gWzLmNn7op6C2k01WajXc9mWWEFoNfJuLhiykyxh Jpow== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:to:from:dkim-signature; bh=2RgvzSEY1zjNyGYkPZGNAO8awwKQ9mK0T5+Fc6CBkoo=; fh=7pI6t1Aew3g49/T2749SoR3VFoq6NqDGzyorRNtGyJ8=; b=0zZEbiLjlESOAjjWbBZMr81O5cvpbucP7wo0Mhf2rJILg635wZ83JtUfWrdWK2UBCF xu8ID//BBSFUn4kxB774gMS+SMuRcMTfr6yk9brf7nzb7vyK/ISjTW8Z0164wNLNw02/ JOw9GpwyDPnhc5AdlK5/HJXEhJADzjwb9DQfFpW+ndKXsShEQSxqPqsRLwZugSsmqHlg 7WA5POXD5oyufodWJrwPdfTsqed73YulQRBkvKbxXJt9DEtxKqCziYBSurwbCXVJrAcn ZGNB32F2UUa0oF9tIruTSl5yKHURoZLhEDm8T+fmmF9xzWNViwaL3YW9TGt8Cb4DOMy3 OvHQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=lTDtW2XL; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-197493-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-197493-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 d75a77b69052e-43ff23ac10bsi30881251cf.34.2024.05.31.14.16.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 May 2024 14:16:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-197493-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=lTDtW2XL; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-197493-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-197493-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 ABAFF1C21C9B for ; Fri, 31 May 2024 21:16:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5F6F28062E; Fri, 31 May 2024 21:15:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="lTDtW2XL" 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 7EE6F7B3F3; Fri, 31 May 2024 21:15:02 +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=1717190102; cv=none; b=CEw6nf7qpUXaPvibDU858NX4CnAZIh0wJNyBLShqPCG/rWu3XifFgu5CJltUs0Kj14s9ZMGmRmOj1eNLnVWzSWHoFASzlFxVCSwuH1VuHJmBuxaOCkfafZ+iuuCMdSGnfa4c/1+KgmnBCT5IA0C/dTsP7vG8FhzPdBZfHbyusTE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717190102; c=relaxed/simple; bh=KEb6+OV/fl9i1+HKLnG1O/1KspKfwLiTTNvwjl6wlBQ=; h=From:To:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=bVxJkEAiUMUTrgjHuqS54lHtqHxPNKNr7LIGajOcvkKK1LPBVd5q1KzZs+gC3lLCTU9EbUFGw4ua8S2BM40tk99n97hi7EJxj60rjXUFF5JhugAdmTfFqpO5KCRXe4cV+k7QnuEYE1TaLdJ8giO97VRo1UZX9QInAYG16ASF3Yw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=lTDtW2XL; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 923ADC116B1; Fri, 31 May 2024 21:15:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717190102; bh=KEb6+OV/fl9i1+HKLnG1O/1KspKfwLiTTNvwjl6wlBQ=; h=From:To:Subject:Date:In-Reply-To:References:From; b=lTDtW2XLiIQzfratrse5mUxeOLKlIGksktt8IbiYp2MV3k3sh+IDAF4U/AXo5RSG8 pg7X4SwPrQihyyVB/K2Zj2RH2/EXVSyTvLlgwJllyLvO3bkt+SuNo9axrsv1DsEuS/ e8daXEs2lKf0X/2a0brK8/kHGeGxNryMXFqMnsxe6qx5Z1QEFtwKUtUMmUV8gNKsQL iJecWeX2vwcI3aNpeySxmTSVfLJb83X2LwxVcW4YRBXBrCmNTA5ihlnHf4gpT+vywh NIuvDt2Gp4ZNxmBxCvdbsSpnxboDTqlxFekms4AwoHFpVCBmsB2anpbB7kS4u+37c4 1g9neM2Olezcg== From: Namhyung Kim To: Andrii Nakryiko , Ian Rogers , Jiri Olsa , linux-kernel@vger.kernel.org, Alexander Shishkin , Adrian Hunter , linux-perf-users@vger.kernel.org, Ingo Molnar , bpf@vger.kernel.org, Arnaldo Carvalho de Melo , Kan Liang , Peter Zijlstra , John Fastabend , Yang Jihong , Mark Rutland , Changbin Du Subject: Re: [PATCH v3 0/3] Use BPF filters for a "perf top -u" workaround Date: Fri, 31 May 2024 14:14:59 -0700 Message-ID: <171718991319.2179562.4988746622967425681.b4-ty@kernel.org> X-Mailer: git-send-email 2.45.1.288.g0e0cd299f1-goog In-Reply-To: <20240524205227.244375-1-irogers@google.com> References: <20240524205227.244375-1-irogers@google.com> 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-Transfer-Encoding: 8bit On Fri, 24 May 2024 13:52:24 -0700, Ian Rogers wrote: > Allow uid and gid to be terms in BPF filters by first breaking the > connection between filter terms and PERF_SAMPLE_xx values. Calculate > the uid and gid using the bpf_get_current_uid_gid helper, rather than > from a value in the sample. Allow filters to be passed to perf top, this allows: > > $ perf top -e cycles:P --filter "uid == $(id -u)" > > [...] Applied to perf-tools-next, thanks! [1/3] perf bpf filter: Give terms their own enum commit: 63b9cbd7941aa9ec5cb61567042176c4ce04b020 [2/3] perf bpf filter: Add uid and gid terms commit: d92aa899fe0a66350303a1986d6dc7ec4b3a1ea7 [3/3] perf top: Allow filters on events commit: af752016340021d433a962063067e819dba889b1 Best regards, -- Namhyung Kim