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: <20240913144714.gkksyfk242w3fvh4@treble>
Date: Fri, 13 Sep 2024 07:47:14 -0700
From: Josh Poimboeuf <jpoimboe@...nel.org>
To: Peter Zijlstra <peterz@...radead.org>
Cc: Namhyung Kim <namhyung@...nel.org>,
	Steven Rostedt <rostedt@...dmis.org>,
	Ingo Molnar <mingo@...nel.org>,
	Arnaldo Carvalho de Melo <acme@...nel.org>,
	linux-kernel@...r.kernel.org, x86@...nel.org,
	Indu Bhagat <indu.bhagat@...cle.com>,
	Mark Rutland <mark.rutland@....com>,
	Alexander Shishkin <alexander.shishkin@...ux.intel.com>,
	Jiri Olsa <jolsa@...nel.org>, Ian Rogers <irogers@...gle.com>,
	Adrian Hunter <adrian.hunter@...el.com>,
	linux-perf-users@...r.kernel.org, Mark Brown <broonie@...nel.org>,
	linux-toolchains@...r.kernel.org
Subject: Re: [PATCH RFC 04/10] perf: Introduce deferred user callchains

On Fri, Sep 13, 2024 at 06:53:58AM -0700, Josh Poimboeuf wrote:
> On Fri, Sep 13, 2024 at 03:36:29PM +0200, Peter Zijlstra wrote:
> > On Fri, Sep 13, 2024 at 06:08:34AM -0700, Josh Poimboeuf wrote:
> > > On Mon, Nov 20, 2023 at 03:03:34PM +0100, Peter Zijlstra wrote:
> > > > On Wed, Nov 15, 2023 at 08:13:31AM -0800, Namhyung Kim wrote:
> > > > > +	/*
> > > > > +	 * Deferred user stack callchains (for SFrame).  Previous samples would
> > > > 
> > > > Possibly also useful for ShadowStack based unwinders. And by virtue of
> > > > it possibly saving work when multiple consecutive samples hit
> > > > the same kernel section, for everything.
> > > 
> > > [ necroing old thread as I'm finally working on a v2 ]
> > > 
> > > Peter, can you elaborate?  What did you mean by "same kernel section"?
> > > 
> > > Like if there's a duplicate kernel callchain?  Or something else?
> > 
> > Yeah, multiple samples hitting the same syscall invocation will, by
> > necessity, have the same user callchain.

If duplicate user space stacks were removed then would that not give a
skewed perf profile?  Or at least a less detailed one?  i.e., it might
be good to know if a certain system call was taking forever.

If that's not an issue, I was also wondering if we would want deferred
even types for the other user options like PERF_SAMPLE_STACK_DEFERRED
and PERF_RECORD_USER_REGS_DEFERRED?

Or if it would instead make sense to combine all the deferred user
options into a single variable length PERF_RECORD_USER_DEFERRED event
type?

-- 
Josh

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ