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]
Message-ID: <ZvsGUbo19pQ4Vtf9@google.com>
Date: Mon, 30 Sep 2024 13:13:05 -0700
From: Namhyung Kim <namhyung@...nel.org>
To: James Clark <james.clark@...aro.org>
Cc: "Liang, Kan" <kan.liang@...ux.intel.com>,
	Arnaldo Carvalho de Melo <acme@...nel.org>,
	Ian Rogers <irogers@...gle.com>, Jiri Olsa <jolsa@...nel.org>,
	Adrian Hunter <adrian.hunter@...el.com>,
	Peter Zijlstra <peterz@...radead.org>,
	Ingo Molnar <mingo@...nel.org>, LKML <linux-kernel@...r.kernel.org>,
	linux-perf-users@...r.kernel.org,
	Ravi Bangoria <ravi.bangoria@....com>,
	Mark Rutland <mark.rutland@....com>,
	James Clark <james.clark@....com>, Kajol Jain <kjain@...ux.ibm.com>,
	Thomas Richter <tmricht@...ux.ibm.com>,
	Atish Patra <atishp@...shpatra.org>,
	Palmer Dabbelt <palmer@...osinc.com>,
	Mingwei Zhang <mizhang@...gle.com>
Subject: Re: [PATCH 04/10] perf stat: Add --exclude-guest option

On Wed, Sep 25, 2024 at 09:36:15AM +0100, James Clark wrote:
> 
> 
> On 24/09/2024 9:21 pm, Namhyung Kim wrote:
> > Hello,
> > 
> > On Mon, Sep 23, 2024 at 09:47:17AM +0100, James Clark wrote:
> > > For Coresight tracing and SPE we would want to keep exclude_guest, otherwise
> > > you generate a load of extra trace that you can't make use of. Say you were
> > > doing PGO on your host you wouldn't be recompiling anything the guests were
> > > running.
> > 
> > For the specific use case, I think we can guide users to add "H"
> > modifier (I guess it's not the default event for perf record).
> > Maybe we can consider per-PMU default attributes.
> > 
> 
> Yeah I was thinking about adding it as a default when the Coresight and SPE
> events are configured, but I think it's too much to expect for people to
> know all the edge cases about what the per PMU defaults will be. Having one
> default for all PMUs makes more sense to me.
> 
> I suppose asking Coresight users to add :H when they need it might be a less
> bad thing than this change to clean up the fragmentation in the defaults.
> 
> I expect most of the time if :H is not added things continue to work, just
> that more data will be recorded. One real concern is that in some
> configurations there is a limited buffer size and once it's filled you don't
> get any more data. If that buffer is filled by guest trace then maybe some
> Auto FDO flow could break. But it's kind of an edge case of an edge case and
> adding :H isn't really the end of the world.

Ok, let's go with simple then.

> 
> > > 
> > > If we do change the defaults isn't ':H' already enough to go back to the old
> > > behavior? I'm wondering why we need an argument when all the other exclude
> > > rules are done with the letter modifiers?
> > 
> > I'm not sure I follow this.  But maybe we don't need this option at all.
> > We can add ":H" for every event but I'm too lazy to add them to all the
> > default events in perf data. :)
> > 
> > Thanks,
> > Namhyung
> 
> Oh I see yes, the argument is a shortcut to adding H on all events and/or
> the default ones. I wasn't sure if was added because it couldn't be done
> with :H, but I see it's an alternative instead. So adding it makes sense.
 
Yeah, but the current behavior is somewhat misleading so I'll drop it
now.  If it turns out that we need something like this, I think we can
add more explicit options like --all-host and --all-guest later.

Thanks,
Namhyung


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ