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:	Thu, 20 Nov 2014 13:39:26 +0000
From:	"Liang, Kan" <kan.liang@...el.com>
To:	Stephane Eranian <eranian@...gle.com>,
	Namhyung Kim <namhyung@...nel.org>
CC:	"acme@...nel.org" <acme@...nel.org>,
	"jolsa@...hat.com" <jolsa@...hat.com>,
	"a.p.zijlstra@...llo.nl" <a.p.zijlstra@...llo.nl>,
	"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
	"mingo@...hat.com" <mingo@...hat.com>,
	"paulus@...ba.org" <paulus@...ba.org>,
	"ak@...ux.intel.com" <ak@...ux.intel.com>
Subject: RE: [PATCH V4 1/3] perf tools: enable LBR call stack support



> 
> On Thu, Nov 20, 2014 at 7:32 AM, Namhyung Kim <namhyung@...nel.org>
> wrote:
> >
> > On Wed, 19 Nov 2014 14:32:08 +0000, Kan Liang wrote:
> > >> On Tue, 18 Nov 2014 16:36:55 -0500, kan liang wrote:
> > >> > +                  if (attr->exclude_user) {
> > >> > +                          attr->exclude_user = 0;
> > >> > +
> > >> > +                          pr_warning("LBR callstack option is only available"
> > >> > +                                     " to get user callchain information."
> > >> > +                                     " Force exclude_user to 0.\n");
> > >> > +                  }
> > >>
> > >> I'm not sure what's in a higher priority - maybe I missed earlier
> discussion.
> > >> IOW what about this?
> > >>
> > >>                      if (attr->exclude_user) {
> > >>                              pr_warning("LBR callstack option is only available"
> > >>                                         " to get user callchain
> > >> information.\n");
> > >
> > > I think either is fine. I'd like to add more info "Falling back to
> framepointers."
> > > based on your changes.
> > > So the user know what they will get then.
> > >
> > > What do you think?
> >
> > Looks good to me.  But I still slightly prefer not to override user
> > settings.  But it's not a strong opinion though - I'd like to here
> > from others.
> >
> I don't like when the tool changes the use settings under the hood.
> I think perf did that with cycles -> TASK_CLOCK if PMU was not supported
> and that was very confusing to me especially with no warning.
> So if LBR Call stack mode is not avail, then inform the user with a warning or
> error, don't swap silently.

OK. So the new patch will warn the user if LBR call stack is no available.
It will also tell the user that the FP mode will replace the LBR mode.

Thanks,
Kan

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ