lkml.org 
[lkml]   [2017]   [Dec]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH V2 2/3] perf/x86/intel/bm.c: Add Intel Branch Monitoring support
From
Date
On Mon, 2017-11-20 at 15:10 +0100, Jiri Olsa wrote:
> On Fri, Nov 17, 2017 at 05:54:05PM -0800, Megha Dey wrote:
>
> SNIP
>
> > +/* Branch Monitoring default and mask values */
> > +#define BM_MAX_WINDOW_SIZE 0x3ff
> > +#define BM_MAX_THRESHOLD 0x7f
> > +#define BM_MAX_EVENTS 6
> > +#define BM_WINDOW_SIZE_SHIFT 8
> > +#define BM_THRESHOLD_SHIFT 8
> > +#define BM_EVENT_TYPE_SHIFT 1
> > +#define BM_GUEST_DISABLE_SHIFT 3
> > +#define BM_LBR_FREEZE_SHIFT 2
> > +#define BM_WINDOW_CNT_SEL_SHIFT 24
> > +#define BM_CNT_AND_MODE_SHIFT 26
> > +#define BM_MISPRED_EVT_CNT_SHIFT 15
> > +#define BM_ENABLE 0x3
> > +#define BM_CNTR_ENABLE 1
> > +
> > +static unsigned int bm_window_size = BM_MAX_WINDOW_SIZE;
> > +static unsigned int bm_guest_disable;
> > +static unsigned int bm_lbr_freeze;
> > +static unsigned int bm_window_cnt_sel;
> > +static unsigned int bm_cnt_and_mode;
> > +
> > +static unsigned int bm_threshold = BM_MAX_THRESHOLD;
> > +static unsigned int bm_mispred_evt_cnt;
> > +
> > +/* Branch monitoring counter owners */
> > +static struct perf_event **bm_counter_owner;
>
> that's still global.. 2 counters per system

Yes, you are right . I will amend this in the next patch set.
>
> jirka


\
 
 \ /
  Last update: 2017-12-12 21:47    [W:0.061 / U:0.112 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site