op_netburst.h File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

union  netburst_escr_value_t
union  netburst_cccr_value_t
 netburst_cccr_value_t More...
struct  netburst_event_mask_t
struct  netburst_entry_t

Defines

#define EVENT_MASK_BITS   16
 netburst_escr_value_t
#define EVENT_SELECT_BITS   6

: Event mask name

netburst_event_mask_t

Defines one bit of the event-mask for one Pentium4 event.

: Event mask description : The bit position within the event_mask field.



#define NETBURST_FL_DFL   0x1
#define MAX_ESCRS_PER_EVENT   2
#define NETBURST_ATTR_U   0
#define NETBURST_ATTR_K   1
#define NETBURST_ATTR_C   2
#define NETBURST_ATTR_E   3
#define NETBURST_ATTR_T   4
#define _NETBURST_ATTR_U   (1 << NETBURST_ATTR_U)
#define _NETBURST_ATTR_K   (1 << NETBURST_ATTR_K)
#define P4_REPLAY_REAL_MASK   0x00000003
enum  netburst_event_code {
  P4_EVENT_TC_DELIVER_MODE, P4_EVENT_BPU_FETCH_REQUEST, P4_EVENT_ITLB_REFERENCE, P4_EVENT_MEMORY_CANCEL,
  P4_EVENT_MEMORY_COMPLETE, P4_EVENT_LOAD_PORT_REPLAY, P4_EVENT_STORE_PORT_REPLAY, P4_EVENT_MOB_LOAD_REPLAY,
  P4_EVENT_PAGE_WALK_TYPE, P4_EVENT_BSQ_CACHE_REFERENCE, P4_EVENT_IOQ_ALLOCATION, P4_EVENT_IOQ_ACTIVE_ENTRIES,
  P4_EVENT_FSB_DATA_ACTIVITY, P4_EVENT_BSQ_ALLOCATION, P4_EVENT_BSQ_ACTIVE_ENTRIES, P4_EVENT_SSE_INPUT_ASSIST,
  P4_EVENT_PACKED_SP_UOP, P4_EVENT_PACKED_DP_UOP, P4_EVENT_SCALAR_SP_UOP, P4_EVENT_SCALAR_DP_UOP,
  P4_EVENT_64BIT_MMX_UOP, P4_EVENT_128BIT_MMX_UOP, P4_EVENT_X87_FP_UOP, P4_EVENT_TC_MISC,
  P4_EVENT_GLOBAL_POWER_EVENTS, P4_EVENT_TC_MS_XFER, P4_EVENT_UOP_QUEUE_WRITES, P4_EVENT_RETIRED_MISPRED_BRANCH_TYPE,
  P4_EVENT_RETIRED_BRANCH_TYPE, P4_EVENT_RESOURCE_STALL, P4_EVENT_WC_BUFFER, P4_EVENT_B2B_CYCLES,
  P4_EVENT_BNR, P4_EVENT_SNOOP, P4_EVENT_RESPONSE, P4_EVENT_FRONT_END_EVENT,
  P4_EVENT_EXECUTION_EVENT, P4_EVENT_REPLAY_EVENT, P4_EVENT_INSTR_RETIRED, P4_EVENT_UOPS_RETIRED,
  P4_EVENT_UOP_TYPE, P4_EVENT_BRANCH_RETIRED, P4_EVENT_MISPRED_BRANCH_RETIRED, P4_EVENT_X87_ASSIST,
  P4_EVENT_MACHINE_CLEAR, P4_EVENT_INSTR_COMPLETED
}
int op_netburst_get_perf_encoding (const char *evt_name, unsigned long evt_um, int do_kernel, int do_user, u64 *config)

Define Documentation

#define _NETBURST_ATTR_K   (1 << NETBURST_ATTR_K)
#define _NETBURST_ATTR_U   (1 << NETBURST_ATTR_U)
#define EVENT_MASK_BITS   16

netburst_escr_value_t

Bit-wise breakdown of the ESCR registers.

Bits Description ------- ----------- 63 - 31 Reserved 30 - 25 Event Select 24 - 9 Event Mask 8 - 5 Tag Value 4 Tag Enable 3 T0 OS - Enable counting in kernel mode (thread 0) 2 T0 USR - Enable counting in user mode (thread 0) 1 T1 OS - Enable counting in kernel mode (thread 1) 0 T1 USR - Enable counting in user mode (thread 1)

Referenced by op_netburst_get_perf_encoding().

#define EVENT_SELECT_BITS   6
#define MAX_ESCRS_PER_EVENT   2
#define NETBURST_ATTR_C   2
#define NETBURST_ATTR_E   3
#define NETBURST_ATTR_K   1
#define NETBURST_ATTR_T   4
#define NETBURST_ATTR_U   0
#define NETBURST_FL_DFL   0x1
#define P4_REPLAY_REAL_MASK   0x00000003

Enumeration Type Documentation

Enumerator:
P4_EVENT_TC_DELIVER_MODE 
P4_EVENT_BPU_FETCH_REQUEST 
P4_EVENT_ITLB_REFERENCE 
P4_EVENT_MEMORY_CANCEL 
P4_EVENT_MEMORY_COMPLETE 
P4_EVENT_LOAD_PORT_REPLAY 
P4_EVENT_STORE_PORT_REPLAY 
P4_EVENT_MOB_LOAD_REPLAY 
P4_EVENT_PAGE_WALK_TYPE 
P4_EVENT_BSQ_CACHE_REFERENCE 
P4_EVENT_IOQ_ALLOCATION 
P4_EVENT_IOQ_ACTIVE_ENTRIES 
P4_EVENT_FSB_DATA_ACTIVITY 
P4_EVENT_BSQ_ALLOCATION 
P4_EVENT_BSQ_ACTIVE_ENTRIES 
P4_EVENT_SSE_INPUT_ASSIST 
P4_EVENT_PACKED_SP_UOP 
P4_EVENT_PACKED_DP_UOP 
P4_EVENT_SCALAR_SP_UOP 
P4_EVENT_SCALAR_DP_UOP 
P4_EVENT_64BIT_MMX_UOP 
P4_EVENT_128BIT_MMX_UOP 
P4_EVENT_X87_FP_UOP 
P4_EVENT_TC_MISC 
P4_EVENT_GLOBAL_POWER_EVENTS 
P4_EVENT_TC_MS_XFER 
P4_EVENT_UOP_QUEUE_WRITES 
P4_EVENT_RETIRED_MISPRED_BRANCH_TYPE 
P4_EVENT_RETIRED_BRANCH_TYPE 
P4_EVENT_RESOURCE_STALL 
P4_EVENT_WC_BUFFER 
P4_EVENT_B2B_CYCLES 
P4_EVENT_BNR 
P4_EVENT_SNOOP 
P4_EVENT_RESPONSE 
P4_EVENT_FRONT_END_EVENT 
P4_EVENT_EXECUTION_EVENT 
P4_EVENT_REPLAY_EVENT 
P4_EVENT_INSTR_RETIRED 
P4_EVENT_UOPS_RETIRED 
P4_EVENT_UOP_TYPE 
P4_EVENT_BRANCH_RETIRED 
P4_EVENT_MISPRED_BRANCH_RETIRED 
P4_EVENT_X87_ASSIST 
P4_EVENT_MACHINE_CLEAR 
P4_EVENT_INSTR_COMPLETED 

Function Documentation

int op_netburst_get_perf_encoding ( const char *  evt_name,
unsigned long  evt_um,
int  do_kernel,
int  do_user,
u64 config 
)

Generated on 29 Jul 2013 for oprofile by  doxygen 1.6.1