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]
Message-ID: <CAP-5=fV30XHi78SBHc=mJUK-7t9uiJb_YPHWZSG2g0Rm745pbw@mail.gmail.com>
Date: Mon, 26 Jan 2026 09:20:33 -0800
From: Ian Rogers <irogers@...gle.com>
To: "Mi, Dapeng" <dapeng1.mi@...ux.intel.com>
Cc: John Garry <john.g.garry@...cle.com>, Will Deacon <will@...nel.org>, 
	James Clark <james.clark@...aro.org>, Mike Leach <mike.leach@...aro.org>, 
	Leo Yan <leo.yan@...ux.dev>, Peter Zijlstra <peterz@...radead.org>, Ingo Molnar <mingo@...hat.com>, 
	Arnaldo Carvalho de Melo <acme@...nel.org>, Namhyung Kim <namhyung@...nel.org>, 
	Alexander Shishkin <alexander.shishkin@...ux.intel.com>, Jiri Olsa <jolsa@...nel.org>, 
	Adrian Hunter <adrian.hunter@...el.com>, Paul Walmsley <pjw@...nel.org>, 
	Palmer Dabbelt <palmer@...belt.com>, Albert Ou <aou@...s.berkeley.edu>, 
	Alexandre Ghiti <alex@...ti.fr>, Andrew Jones <ajones@...tanamicro.com>, 
	Quan Zhou <zhouquan@...as.ac.cn>, Anup Patel <anup@...infault.org>, 
	Tianyou Li <tianyou.li@...el.com>, Athira Rajeev <atrajeev@...ux.ibm.com>, 
	Derek Foreman <derek.foreman@...labora.com>, Aditya Bodkhe <aditya.b1@...ux.ibm.com>, 
	Kan Liang <kan.liang@...ux.intel.com>, Howard Chu <howardchu95@...il.com>, 
	Thomas Falcon <thomas.falcon@...el.com>, Dmitry Vyukov <dvyukov@...gle.com>, 
	Andi Kleen <ak@...ux.intel.com>, tanze <tanze@...inos.cn>, 
	Hrishikesh Suresh <hrishikesh123s@...il.com>, "Dr. David Alan Gilbert" <linux@...blig.org>, 
	Krzysztof Łopatowski <krzysztof.m.lopatowski@...il.com>, 
	Chun-Tse Shao <ctshao@...gle.com>, Swapnil Sapkal <swapnil.sapkal@....com>, 
	Blake Jones <blakejones@...gle.com>, Yujie Liu <yujie.liu@...el.com>, 
	linux-arm-kernel@...ts.infradead.org, linux-perf-users@...r.kernel.org, 
	linux-kernel@...r.kernel.org, linux-riscv@...ts.infradead.org
Subject: Re: [RFC PATCH v1] perf sample: Add evsel to sample and avoid passing
 as a pair

On Mon, Jan 26, 2026 at 1:04 AM Mi, Dapeng <dapeng1.mi@...ux.intel.com> wrote:
>
>
> On 1/26/2026 3:18 PM, Ian Rogers wrote:
> > The perf_sample and evsel are typically passed as a pair. This creates
> > 2 arguments for the price of 1. It is also inconvenient if you wish to
> > rewrite a sample, as the evsel will need updating in all cases,
> > something similar to this currently happens for off-cpu output. Avoid
> > passing the evsel by adding it into the sample. So that two evsels
> > aren't being passed around, fix up functions taking a sample and an
> > evsel argument to only take a sample, the evsel now being able to be
> > read from the sample.
> >
> > Signed-off-by: Ian Rogers <irogers@...gle.com>
> > ---
> > This is a fairly large and invasive change but doing something some
> > what mundane. Sending out as an RFC for early feedback.
>
> Nice cleanup. Better split this huge patch into several patches in the
> formal patch-set. Thanks.

Having several patches means having intermediate states where there
are 2 evsels (a parameter and one in the sample). Getting things
building with lots of intermediate states is one thing, having things
work and not break tests is another. I'll see what can be done, but it
was somewhat deliberate not to have intermediate broken states with
the albeit large patch.

Thanks,
Ian

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ