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

Go to the source code of this file.

Macros

#define MSR_KNC_IA32_PERF_GLOBAL_STATUS   0x0000002d
 
#define MSR_KNC_IA32_PERF_GLOBAL_OVF_CONTROL   0x0000002e
 
#define MSR_KNC_IA32_PERF_GLOBAL_CTRL   0x0000002f
 
#define KNC_ENABLE_COUNTER0   0x00000001
 
#define KNC_ENABLE_COUNTER1   0x00000002
 

Functions

 PMU_FORMAT_ATTR (event,"config:0-7")
 
 PMU_FORMAT_ATTR (umask,"config:8-15")
 
 PMU_FORMAT_ATTR (edge,"config:18")
 
 PMU_FORMAT_ATTR (inv,"config:23")
 
 PMU_FORMAT_ATTR (cmask,"config:24-31")
 
__init int knc_pmu_init (void)
 

Macro Definition Documentation

#define KNC_ENABLE_COUNTER0   0x00000001

Definition at line 154 of file perf_event_knc.c.

#define KNC_ENABLE_COUNTER1   0x00000002

Definition at line 155 of file perf_event_knc.c.

#define MSR_KNC_IA32_PERF_GLOBAL_CTRL   0x0000002f

Definition at line 152 of file perf_event_knc.c.

#define MSR_KNC_IA32_PERF_GLOBAL_OVF_CONTROL   0x0000002e

Definition at line 151 of file perf_event_knc.c.

#define MSR_KNC_IA32_PERF_GLOBAL_STATUS   0x0000002d

Definition at line 150 of file perf_event_knc.c.

Function Documentation

__init int knc_pmu_init ( void  )

Definition at line 311 of file perf_event_knc.c.

PMU_FORMAT_ATTR ( event  ,
"config:0-7"   
)
PMU_FORMAT_ATTR ( umask  ,
"config:8-15"   
)
PMU_FORMAT_ATTR ( edge  ,
"config:18"   
)
PMU_FORMAT_ATTR ( inv  ,
"config:23"   
)
PMU_FORMAT_ATTR ( cmask  ,
"config:24-31"   
)