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: <20160331142558.GA27708@kernel.org>
Date:	Thu, 31 Mar 2016 11:25:58 -0300
From:	"acme@...nel.org" <acme@...nel.org>
To:	"Liang, Kan" <kan.liang@...el.com>
Cc:	Peter Zijlstra <peterz@...radead.org>,
	"ak@...ux.intel.com" <ak@...ux.intel.com>,
	"eranian@...gle.com" <eranian@...gle.com>,
	"vincent.weaver@...ne.edu" <vincent.weaver@...ne.edu>,
	"tglx@...utronix.de" <tglx@...utronix.de>,
	"mingo@...nel.org" <mingo@...nel.org>,
	"acme@...hat.com" <acme@...hat.com>,
	"jolsa@...hat.com" <jolsa@...hat.com>,
	"alexander.shishkin@...ux.intel.com" 
	<alexander.shishkin@...ux.intel.com>,
	"ying.huang@...ux.intel.com" <ying.huang@...ux.intel.com>,
	"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH V2 1/1] perf/core: don't find side-band event from all
 pmus

Em Thu, Mar 31, 2016 at 02:05:46PM +0000, Liang, Kan escreveu:
> 
> 
> > > +static void perf_event_sb_mask(unsigned int sb_mask,
> > > +			       perf_event_aux_output_cb output,
> > > +			       void *data)
> > > +{
> > > +	int sb;
> > > +
> > > +	for (sb = 0; sb < sb_nr; sb++) {
> > > +		if (!(sb_mask & (1 << sb)))
> > > +			continue;
> > > +		perf_event_sb_iterate(sb, output, data);
> > > +	}
> > > +}
> > 
> > > @@ -5852,7 +5910,8 @@ static void perf_event_task(struct task_struct
> > > *task,
> > >
> > >  	perf_event_aux(perf_event_task_output,
> > >  		       &task_event,
> > > -		       task_ctx);
> > > +		       task_ctx,
> > > +		       (1 << sb_task) | (1 << sb_mmap) | (1 << sb_comm));
> > >  }
> > 
> > So one side-effect of this change is that the above event can be delivered
> > 3 times if you're 'lucky'.
> > 
> > Acme; does userspace care?
> 
> Hi Arnaldo,
> 
> Do you think if it's an issue for userspace?

Trying to get context and decode what you guys wrote...

- Arnaldo

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ