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] [thread-next>] [day] [month] [year] [list]
Date: Fri, 22 Mar 2024 14:18:54 +0000
From: Ben Gainey <Ben.Gainey@....com>
To: "namhyung@...nel.org" <namhyung@...nel.org>, "peterz@...radead.org"
	<peterz@...radead.org>, "mingo@...hat.com" <mingo@...hat.com>,
	"acme@...nel.org" <acme@...nel.org>
CC: "alexander.shishkin@...ux.intel.com" <alexander.shishkin@...ux.intel.com>,
	Mark Rutland <Mark.Rutland@....com>, "linux-kernel@...r.kernel.org"
	<linux-kernel@...r.kernel.org>, James Clark <James.Clark@....com>,
	"adrian.hunter@...el.com" <adrian.hunter@...el.com>,
	"linux-perf-users@...r.kernel.org" <linux-perf-users@...r.kernel.org>,
	"jolsa@...nel.org" <jolsa@...nel.org>, "irogers@...gle.com"
	<irogers@...gle.com>
Subject: Re: [PATCH v3 4/4] tools/perf: Allow inherit + inherit_stat +
 PERF_SAMPLE_READ when opening events

On Fri, 2024-03-22 at 13:04 +0000, Ben Gainey wrote:
> This change updates evsel to allow the combination of inherit
> and PERF_SAMPLE_READ.
>
> A fallback is implemented for kernel versions where this feature is
> not
> supported.
>
> The user must pass --stat option to perf record to opt into this new
> behaviour.
>
> Signed-off-by: Ben Gainey <ben.gainey@....com>
> ---
>  tools/perf/tests/attr/base-record             |  2 +-
>  tools/perf/tests/attr/base-stat               |  2 +-
>  tools/perf/tests/attr/system-wide-dummy       |  2 +-
>  tools/perf/tests/attr/test-record-dummy-C0    |  2 +-
>  .../test-record-group-sampling-inherit-stat   | 62 ++++++++++++++
>  tools/perf/util/evsel.c                       | 82
> ++++++++++++++++++-
>  tools/perf/util/evsel.h                       |  1 +
>  7 files changed, 147 insertions(+), 6 deletions(-)
>  create mode 100644 tools/perf/tests/attr/test-record-group-sampling-
> inherit-stat
>
> diff --git a/tools/perf/tests/attr/base-record
> b/tools/perf/tests/attr/base-record
> index b44e4e6e4443..dd76fbdb628f 100644
> --- a/tools/perf/tests/attr/base-record
> +++ b/tools/perf/tests/attr/base-record
> @@ -5,7 +5,7 @@ group_fd=-1
>  flags=0|8
>  cpu=*
>  type=0|1
> -size=136
> +size=144

Sigh... this one belongs elsewhere. Too many spinning plates.

I'll have to redo this one with the correct size= value.

Regards
Ben
IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ