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: <20150810114256.GZ16853@twins.programming.kicks-ass.net>
Date:	Mon, 10 Aug 2015 13:42:56 +0200
From:	Peter Zijlstra <peterz@...radead.org>
To:	Jiri Olsa <jolsa@...hat.com>
Cc:	tglx@...utronix.de, linux-kernel@...r.kernel.org, hpa@...or.com,
	luto@...nel.org, torvalds@...ux-foundation.org,
	kan.liang@...el.com, mingo@...nel.org,
	linux-tip-commits@...r.kernel.org
Subject: Re: [tip:perf/core] perf/x86: Add an MSR PMU driver

On Mon, Aug 10, 2015 at 01:19:36PM +0200, Jiri Olsa wrote:
> On Tue, Aug 04, 2015 at 02:01:20AM -0700, tip-bot for Andy Lutomirski wrote:
> 
> SNIP
> 
> > +	/* unsupported modes and filters */
> > +	if (event->attr.exclude_user   ||
> > +	    event->attr.exclude_kernel ||
> > +	    event->attr.exclude_hv     ||
> > +	    event->attr.exclude_idle   ||
> > +	    event->attr.exclude_host   ||
> > +	    event->attr.exclude_guest  ||
> > +	    event->attr.sample_period) /* no sampling */
> > +		return -EINVAL;
> > +
> > +	event->hw.idx = -1;
> > +	event->hw.event_base = msr[cfg].msr;
> > +	event->hw.config = cfg;
> > +
> > +	return 0;
> > +}
> > +
> > +static inline u64 msr_read_counter(struct perf_event *event)
> > +{
> > +	u64 now;
> > +
> > +	if (event->hw.event_base)
> > +		rdmsrl(event->hw.event_base, now);
> > +	else
> > +		now = rdtsc();
> 
> not sure itf there's newer version, but I needed attached change
> to make it compile on latest Arnaldo's tree

You need tip/x86/asm merged in.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ