mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Re: [tip:perf/core] perf/x86/intel: Add {rd,wr}lbr_{to,from} wrappers
       [not found] <tip-d4cf1949f9689314aef962eea95df84a8288d097@git.kernel.org>
@ 2016-06-29 19:32 ` Peter Zijlstra
  0 siblings, 0 replies; only message in thread
From: Peter Zijlstra @ 2016-06-29 19:32 UTC (permalink / raw)
  To: linux-kernel, tglx, acme, mingo, jolsa, vincent.weaver, eranian,
	alexander.shishkin, hpa, kan.liang, torvalds, davidcc
  Cc: linux-tip-commits

On Mon, Jun 27, 2016 at 05:56:02AM -0700, tip-bot for Peter Zijlstra wrote:
> +static inline u64 rdlbr_from(unsigned int idx)
> +{
> +	u64 val;
> +
> +	rdmsrl(x86_pmu.lbr_from + idx, val);
> +
> +	return lbr_from_signext_quirk_rd(val);
> +}
> +
> +static inline u64 rdlbr_to(unsigned int idx)
> +{
> +	u64 val;
> +
> +	rdmsrl(x86_pmu.lbr_from + idx, val);

Things work loads better when we use:

	rdmsrl(x86_pmu.lbr_to + idx, val);

:-/

> +
>  	return val;
>  }

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2016-06-29 19:34 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <tip-d4cf1949f9689314aef962eea95df84a8288d097@git.kernel.org>
2016-06-29 19:32 ` [tip:perf/core] perf/x86/intel: Add {rd,wr}lbr_{to,from} wrappers Peter Zijlstra

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®