[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20171104132645.GF8454@krava>
Date: Sat, 4 Nov 2017 14:26:46 +0100
From: Jiri Olsa <jolsa@...hat.com>
To: Megha Dey <megha.dey@...ux.intel.com>
Cc: x86@...nel.org, linux-kernel@...r.kernel.org,
linux-doc@...r.kernel.org, tglx@...utronix.de, mingo@...hat.com,
hpa@...or.com, andriy.shevchenko@...ux.intel.com,
kstewart@...uxfoundation.org, yu-cheng.yu@...el.com,
len.brown@...el.com, gregkh@...uxfoundation.org,
peterz@...radead.org, acme@...nel.org,
alexander.shishkin@...ux.intel.com, namhyung@...nel.org,
vikas.shivappa@...ux.intel.com, pombredanne@...b.com,
me@...ehuey.com, bp@...e.de, grzegorz.andrejczuk@...el.com,
tony.luck@...el.com, corbet@....net, ravi.v.shankar@...el.com,
megha.dey@...el.com
Subject: Re: [PATCH V0 2/3] perf/x86/intel/bm.c: Add Intel Branch Monitoring
support
On Fri, Nov 03, 2017 at 11:00:05AM -0700, Megha Dey wrote:
SNIP
> +
> +static int intel_bm_event_nmi_handler(unsigned int cmd, struct pt_regs *regs)
> +{
> + struct perf_event *event;
> + union bm_detect_status stat;
> + struct perf_sample_data data;
> + int i;
> + unsigned long x;
> +
> + rdmsrl(BR_DETECT_STATUS_MSR, stat.raw);
> +
> + if (stat.event) {
> + wrmsrl(BR_DETECT_STATUS_MSR, 0);
> + apic_write(APIC_LVTPC, APIC_DM_NMI);
> + /*
> + * Issue wake-up to corrresponding polling event
s/rrr/rr/ ;-)
jirka
Powered by blists - more mailing lists