Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
perf_event_p4.c File Reference
#include <linux/perf_event.h>
#include <asm/perf_event_p4.h>
#include <asm/hardirq.h>
#include <asm/apic.h>
#include "perf_event.h"

Go to the source code of this file.

Data Structures

struct  p4_event_bind
 
struct  p4_pebs_bind
 
struct  p4_event_alias
 

Macros

#define P4_CNTR_LIMIT   3
 
#define P4_GEN_PEBS_BIND(name, pebs, vert)
 
#define P4_GEN_CACHE_EVENT(event, bit, metric)
 
#define P4_ESCR_MSR_BASE   0x000003a0
 
#define P4_ESCR_MSR_MAX   0x000003e1
 
#define P4_ESCR_MSR_TABLE_SIZE   (P4_ESCR_MSR_MAX - P4_ESCR_MSR_BASE + 1)
 
#define P4_ESCR_MSR_IDX(msr)   (msr - P4_ESCR_MSR_BASE)
 
#define P4_ESCR_MSR_TABLE_ENTRY(msr)   [P4_ESCR_MSR_IDX(msr)] = msr
 

Functions

 PMU_FORMAT_ATTR (cccr,"config:0-31")
 
 PMU_FORMAT_ATTR (escr,"config:32-62")
 
 PMU_FORMAT_ATTR (ht,"config:63")
 
__init int p4_pmu_init (void)
 

Variables

struct p4_event_alias p4_event_aliases []
 

Macro Definition Documentation

#define P4_CNTR_LIMIT   3

Definition at line 18 of file perf_event_p4.c.

#define P4_ESCR_MSR_BASE   0x000003a0

Definition at line 1124 of file perf_event_p4.c.

#define P4_ESCR_MSR_IDX (   msr)    (msr - P4_ESCR_MSR_BASE)

Definition at line 1127 of file perf_event_p4.c.

#define P4_ESCR_MSR_MAX   0x000003e1

Definition at line 1125 of file perf_event_p4.c.

#define P4_ESCR_MSR_TABLE_ENTRY (   msr)    [P4_ESCR_MSR_IDX(msr)] = msr

Definition at line 1128 of file perf_event_p4.c.

#define P4_ESCR_MSR_TABLE_SIZE   (P4_ESCR_MSR_MAX - P4_ESCR_MSR_BASE + 1)

Definition at line 1126 of file perf_event_p4.c.

#define P4_GEN_CACHE_EVENT (   event,
  bit,
  metric 
)
Value:

Definition at line 508 of file perf_event_p4.c.

#define P4_GEN_PEBS_BIND (   name,
  pebs,
  vert 
)
Value:
[P4_PEBS_METRIC__##name] = { \
.metric_pebs = pebs | P4_PEBS_ENABLE_UOP_TAG, \
.metric_vert = vert, \
}

Definition at line 36 of file perf_event_p4.c.

Function Documentation

__init int p4_pmu_init ( void  )

Definition at line 1323 of file perf_event_p4.c.

PMU_FORMAT_ATTR ( cccr  ,
"config:0-31"   
)
PMU_FORMAT_ATTR ( escr  ,
"config:32-62"   
)
PMU_FORMAT_ATTR ( ht  ,
"config:63"   
)

Variable Documentation

struct p4_event_alias p4_event_aliases[]