Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Enumerations | Functions | Variables
perf_event_intel_uncore.c File Reference
#include "perf_event_intel_uncore.h"

Go to the source code of this file.

Macros

#define SNBEP_UNCORE_PCI_COMMON_INIT()
 
#define __BITS_VALUE(x, i, n)
 
#define NHMEX_UNCORE_OPS_COMMON_INIT()
 

Enumerations

enum  {
  EXTRA_REG_NHMEX_M_FILTER, EXTRA_REG_NHMEX_M_DSP, EXTRA_REG_NHMEX_M_ISS, EXTRA_REG_NHMEX_M_MAP,
  EXTRA_REG_NHMEX_M_MSC_THR, EXTRA_REG_NHMEX_M_PGT, EXTRA_REG_NHMEX_M_PLD, EXTRA_REG_NHMEX_M_ZDP_CTL_FVC
}
 

Functions

 DEFINE_UNCORE_FORMAT_ATTR (event, event,"config:0-7")
 
 DEFINE_UNCORE_FORMAT_ATTR (event_ext, event,"config:0-7,21")
 
 DEFINE_UNCORE_FORMAT_ATTR (umask, umask,"config:8-15")
 
 DEFINE_UNCORE_FORMAT_ATTR (edge, edge,"config:18")
 
 DEFINE_UNCORE_FORMAT_ATTR (tid_en, tid_en,"config:19")
 
 DEFINE_UNCORE_FORMAT_ATTR (inv, inv,"config:23")
 
 DEFINE_UNCORE_FORMAT_ATTR (cmask5, cmask,"config:24-28")
 
 DEFINE_UNCORE_FORMAT_ATTR (cmask8, cmask,"config:24-31")
 
 DEFINE_UNCORE_FORMAT_ATTR (thresh8, thresh,"config:24-31")
 
 DEFINE_UNCORE_FORMAT_ATTR (thresh5, thresh,"config:24-28")
 
 DEFINE_UNCORE_FORMAT_ATTR (occ_sel, occ_sel,"config:14-15")
 
 DEFINE_UNCORE_FORMAT_ATTR (occ_invert, occ_invert,"config:30")
 
 DEFINE_UNCORE_FORMAT_ATTR (occ_edge, occ_edge,"config:14-51")
 
 DEFINE_UNCORE_FORMAT_ATTR (filter_tid, filter_tid,"config1:0-4")
 
 DEFINE_UNCORE_FORMAT_ATTR (filter_nid, filter_nid,"config1:10-17")
 
 DEFINE_UNCORE_FORMAT_ATTR (filter_state, filter_state,"config1:18-22")
 
 DEFINE_UNCORE_FORMAT_ATTR (filter_opc, filter_opc,"config1:23-31")
 
 DEFINE_UNCORE_FORMAT_ATTR (filter_band0, filter_band0,"config1:0-7")
 
 DEFINE_UNCORE_FORMAT_ATTR (filter_band1, filter_band1,"config1:8-15")
 
 DEFINE_UNCORE_FORMAT_ATTR (filter_band2, filter_band2,"config1:16-23")
 
 DEFINE_UNCORE_FORMAT_ATTR (filter_band3, filter_band3,"config1:24-31")
 
 DEFINE_UNCORE_FORMAT_ATTR (event5, event,"config:1-5")
 
 DEFINE_UNCORE_FORMAT_ATTR (counter, counter,"config:6-7")
 
 DEFINE_UNCORE_FORMAT_ATTR (match, match,"config1:0-63")
 
 DEFINE_UNCORE_FORMAT_ATTR (mask, mask,"config2:0-63")
 
u64 nhmex_mbox_alter_er (struct perf_event *event, int new_idx, bool modify)
 
 DEFINE_UNCORE_FORMAT_ATTR (count_mode, count_mode,"config:2-3")
 
 DEFINE_UNCORE_FORMAT_ATTR (storage_mode, storage_mode,"config:4-5")
 
 DEFINE_UNCORE_FORMAT_ATTR (wrap_mode, wrap_mode,"config:6")
 
 DEFINE_UNCORE_FORMAT_ATTR (flag_mode, flag_mode,"config:7")
 
 DEFINE_UNCORE_FORMAT_ATTR (inc_sel, inc_sel,"config:9-13")
 
 DEFINE_UNCORE_FORMAT_ATTR (set_flag_sel, set_flag_sel,"config:19-21")
 
 DEFINE_UNCORE_FORMAT_ATTR (filter_cfg_en, filter_cfg_en,"config2:63")
 
 DEFINE_UNCORE_FORMAT_ATTR (filter_match, filter_match,"config2:0-33")
 
 DEFINE_UNCORE_FORMAT_ATTR (filter_mask, filter_mask,"config2:34-61")
 
 DEFINE_UNCORE_FORMAT_ATTR (dsp, dsp,"config1:0-31")
 
 DEFINE_UNCORE_FORMAT_ATTR (thr, thr,"config1:0-31")
 
 DEFINE_UNCORE_FORMAT_ATTR (fvc, fvc,"config1:0-31")
 
 DEFINE_UNCORE_FORMAT_ATTR (pgt, pgt,"config1:0-31")
 
 DEFINE_UNCORE_FORMAT_ATTR (map, map,"config1:0-31")
 
 DEFINE_UNCORE_FORMAT_ATTR (iss, iss,"config1:0-31")
 
 DEFINE_UNCORE_FORMAT_ATTR (pld, pld,"config1:32-63")
 
void nhmex_rbox_alter_er (struct intel_uncore_box *box, struct perf_event *event)
 
 DEFINE_UNCORE_FORMAT_ATTR (xbr_mm_cfg, xbr_mm_cfg,"config:32-63")
 
 DEFINE_UNCORE_FORMAT_ATTR (xbr_match, xbr_match,"config1:0-63")
 
 DEFINE_UNCORE_FORMAT_ATTR (xbr_mask, xbr_mask,"config2:0-63")
 
 DEFINE_UNCORE_FORMAT_ATTR (qlx_cfg, qlx_cfg,"config1:0-15")
 
 DEFINE_UNCORE_FORMAT_ATTR (iperf_cfg, iperf_cfg,"config1:0-31")
 
struct intel_uncore_boxuncore_alloc_box (struct intel_uncore_type *type, int cpu)
 
int uncore_pmu_event_init (struct perf_event *event)
 
 device_initcall (intel_uncore_init)
 

Variables

bool uncore_nhmex
 

Macro Definition Documentation

#define __BITS_VALUE (   x,
  i,
  n 
)
Value:
((typeof(x))(((x) >> ((i) * (n))) & \
((1ULL << (n)) - 1)))

Definition at line 811 of file perf_event_intel_uncore.c.

#define NHMEX_UNCORE_OPS_COMMON_INIT ( )
Value:
.init_box = nhmex_uncore_msr_init_box, \
.disable_box = nhmex_uncore_msr_disable_box, \
.enable_box = nhmex_uncore_msr_enable_box, \
.disable_event = nhmex_uncore_msr_disable_event, \
.read_counter = uncore_msr_read_counter

Definition at line 871 of file perf_event_intel_uncore.c.

#define SNBEP_UNCORE_PCI_COMMON_INIT ( )
Value:
.perf_ctr = SNBEP_PCI_PMON_CTR0, \
.event_ctl = SNBEP_PCI_PMON_CTL0, \
.event_mask = SNBEP_PMON_RAW_EVENT_MASK, \
.box_ctl = SNBEP_PCI_PMON_BOX_CTL, \
.ops = &snbep_uncore_pci_ops, \
.format_group = &snbep_uncore_format_group

Definition at line 486 of file perf_event_intel_uncore.c.

Enumeration Type Documentation

anonymous enum
Enumerator:
EXTRA_REG_NHMEX_M_FILTER 
EXTRA_REG_NHMEX_M_DSP 
EXTRA_REG_NHMEX_M_ISS 
EXTRA_REG_NHMEX_M_MAP 
EXTRA_REG_NHMEX_M_MSC_THR 
EXTRA_REG_NHMEX_M_PGT 
EXTRA_REG_NHMEX_M_PLD 
EXTRA_REG_NHMEX_M_ZDP_CTL_FVC 

Definition at line 1130 of file perf_event_intel_uncore.c.

Function Documentation

DEFINE_UNCORE_FORMAT_ATTR ( event  ,
event  ,
"config:0-7"   
)
DEFINE_UNCORE_FORMAT_ATTR ( event_ext  ,
event  ,
"config:0-  7,
21"   
)
DEFINE_UNCORE_FORMAT_ATTR ( umask  ,
umask  ,
"config:8-15"   
)
DEFINE_UNCORE_FORMAT_ATTR ( edge  ,
edge  ,
"config:18"   
)
DEFINE_UNCORE_FORMAT_ATTR ( tid_en  ,
tid_en  ,
"config:19"   
)
DEFINE_UNCORE_FORMAT_ATTR ( inv  ,
inv  ,
"config:23"   
)
DEFINE_UNCORE_FORMAT_ATTR ( cmask5  ,
cmask  ,
"config:24-28"   
)
DEFINE_UNCORE_FORMAT_ATTR ( cmask8  ,
cmask  ,
"config:24-31"   
)
DEFINE_UNCORE_FORMAT_ATTR ( thresh8  ,
thresh  ,
"config:24-31"   
)
DEFINE_UNCORE_FORMAT_ATTR ( thresh5  ,
thresh  ,
"config:24-28"   
)
DEFINE_UNCORE_FORMAT_ATTR ( occ_sel  ,
occ_sel  ,
"config:14-15"   
)
DEFINE_UNCORE_FORMAT_ATTR ( occ_invert  ,
occ_invert  ,
"config:30"   
)
DEFINE_UNCORE_FORMAT_ATTR ( occ_edge  ,
occ_edge  ,
"config:14-51"   
)
DEFINE_UNCORE_FORMAT_ATTR ( filter_tid  ,
filter_tid  ,
"config1:0-4"   
)
DEFINE_UNCORE_FORMAT_ATTR ( filter_nid  ,
filter_nid  ,
"config1:10-17"   
)
DEFINE_UNCORE_FORMAT_ATTR ( filter_state  ,
filter_state  ,
"config1:18-22"   
)
DEFINE_UNCORE_FORMAT_ATTR ( filter_opc  ,
filter_opc  ,
"config1:23-31"   
)
DEFINE_UNCORE_FORMAT_ATTR ( filter_band0  ,
filter_band0  ,
"config1:0-7"   
)
DEFINE_UNCORE_FORMAT_ATTR ( filter_band1  ,
filter_band1  ,
"config1:8-15"   
)
DEFINE_UNCORE_FORMAT_ATTR ( filter_band2  ,
filter_band2  ,
"config1:16-23"   
)
DEFINE_UNCORE_FORMAT_ATTR ( filter_band3  ,
filter_band3  ,
"config1:24-31"   
)
DEFINE_UNCORE_FORMAT_ATTR ( event5  ,
event  ,
"config:1-5"   
)
DEFINE_UNCORE_FORMAT_ATTR ( counter  ,
counter  ,
"config:6-7"   
)
DEFINE_UNCORE_FORMAT_ATTR ( match  ,
match  ,
"config1:0-63"   
)
DEFINE_UNCORE_FORMAT_ATTR ( mask  ,
mask  ,
"config2:0-63"   
)
DEFINE_UNCORE_FORMAT_ATTR ( count_mode  ,
count_mode  ,
"config:2-3"   
)
DEFINE_UNCORE_FORMAT_ATTR ( storage_mode  ,
storage_mode  ,
"config:4-5"   
)
DEFINE_UNCORE_FORMAT_ATTR ( wrap_mode  ,
wrap_mode  ,
"config:6"   
)
DEFINE_UNCORE_FORMAT_ATTR ( flag_mode  ,
flag_mode  ,
"config:7"   
)
DEFINE_UNCORE_FORMAT_ATTR ( inc_sel  ,
inc_sel  ,
"config:9-13"   
)
DEFINE_UNCORE_FORMAT_ATTR ( set_flag_sel  ,
set_flag_sel  ,
"config:19-21"   
)
DEFINE_UNCORE_FORMAT_ATTR ( filter_cfg_en  ,
filter_cfg_en  ,
"config2:63"   
)
DEFINE_UNCORE_FORMAT_ATTR ( filter_match  ,
filter_match  ,
"config2:0-33"   
)
DEFINE_UNCORE_FORMAT_ATTR ( filter_mask  ,
filter_mask  ,
"config2:34-61"   
)
DEFINE_UNCORE_FORMAT_ATTR ( dsp  ,
dsp  ,
"config1:0-31"   
)
DEFINE_UNCORE_FORMAT_ATTR ( thr  ,
thr  ,
"config1:0-31"   
)
DEFINE_UNCORE_FORMAT_ATTR ( fvc  ,
fvc  ,
"config1:0-31"   
)
DEFINE_UNCORE_FORMAT_ATTR ( pgt  ,
pgt  ,
"config1:0-31"   
)
DEFINE_UNCORE_FORMAT_ATTR ( map  ,
map  ,
"config1:0-31"   
)
DEFINE_UNCORE_FORMAT_ATTR ( iss  ,
iss  ,
"config1:0-31"   
)
DEFINE_UNCORE_FORMAT_ATTR ( pld  ,
pld  ,
"config1:32-63"   
)
DEFINE_UNCORE_FORMAT_ATTR ( xbr_mm_cfg  ,
xbr_mm_cfg  ,
"config:32-63"   
)
DEFINE_UNCORE_FORMAT_ATTR ( xbr_match  ,
xbr_match  ,
"config1:0-63"   
)
DEFINE_UNCORE_FORMAT_ATTR ( xbr_mask  ,
xbr_mask  ,
"config2:0-63"   
)
DEFINE_UNCORE_FORMAT_ATTR ( qlx_cfg  ,
qlx_cfg  ,
"config1:0-15"   
)
DEFINE_UNCORE_FORMAT_ATTR ( iperf_cfg  ,
iperf_cfg  ,
"config1:0-31"   
)
device_initcall ( intel_uncore_init  )
u64 nhmex_mbox_alter_er ( struct perf_event event,
int  new_idx,
bool  modify 
)

Definition at line 1242 of file perf_event_intel_uncore.c.

void nhmex_rbox_alter_er ( struct intel_uncore_box box,
struct perf_event event 
)

Definition at line 1557 of file perf_event_intel_uncore.c.

struct intel_uncore_box* uncore_alloc_box ( struct intel_uncore_type type,
int  cpu 
)
read

Definition at line 1937 of file perf_event_intel_uncore.c.

int uncore_pmu_event_init ( struct perf_event event)

Definition at line 2288 of file perf_event_intel_uncore.c.

Variable Documentation

bool uncore_nhmex

Definition at line 1164 of file perf_event_intel_uncore.c.