lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date: Fri, 31 May 2024 14:14:59 -0700
From: Namhyung Kim <namhyung@...nel.org>
To: Andrii Nakryiko <andrii@...nel.org>,
	Ian Rogers <irogers@...gle.com>,
	Jiri Olsa <jolsa@...nel.org>,
	linux-kernel@...r.kernel.org,
	Alexander Shishkin <alexander.shishkin@...ux.intel.com>,
	Adrian Hunter <adrian.hunter@...el.com>,
	linux-perf-users@...r.kernel.org,
	Ingo Molnar <mingo@...hat.com>,
	bpf@...r.kernel.org,
	Arnaldo Carvalho de Melo <acme@...nel.org>,
	Kan Liang <kan.liang@...ux.intel.com>,
	Peter Zijlstra <peterz@...radead.org>,
	John Fastabend <john.fastabend@...il.com>,
	Yang Jihong <yangjihong1@...wei.com>,
	Mark Rutland <mark.rutland@....com>,
	Changbin Du <changbin.du@...wei.com>
Subject: Re: [PATCH v3 0/3] Use BPF filters for a "perf top -u" workaround

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 <namhyung@...nel.org>

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ