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

Go to the source code of this file.

Macros

#define AMD_EVENT_TYPE_MASK   0x000000F0ULL
 
#define AMD_EVENT_FP   0x00000000ULL ... 0x00000010ULL
 
#define AMD_EVENT_LS   0x00000020ULL ... 0x00000030ULL
 
#define AMD_EVENT_DC   0x00000040ULL ... 0x00000050ULL
 
#define AMD_EVENT_CU   0x00000060ULL ... 0x00000070ULL
 
#define AMD_EVENT_IC_DE   0x00000080ULL ... 0x00000090ULL
 
#define AMD_EVENT_EX_LS   0x000000C0ULL
 
#define AMD_EVENT_DE   0x000000D0ULL
 
#define AMD_EVENT_NB   0x000000E0ULL ... 0x000000F0ULL
 

Functions

 PMU_FORMAT_ATTR (event,"config:0-7,32-35")
 
 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 amd_pmu_init (void)
 
void amd_pmu_enable_virt (void)
 
 EXPORT_SYMBOL_GPL (amd_pmu_enable_virt)
 
void amd_pmu_disable_virt (void)
 
 EXPORT_SYMBOL_GPL (amd_pmu_disable_virt)
 

Macro Definition Documentation

#define AMD_EVENT_CU   0x00000060ULL ... 0x00000070ULL

Definition at line 432 of file perf_event_amd.c.

#define AMD_EVENT_DC   0x00000040ULL ... 0x00000050ULL

Definition at line 431 of file perf_event_amd.c.

#define AMD_EVENT_DE   0x000000D0ULL

Definition at line 435 of file perf_event_amd.c.

#define AMD_EVENT_EX_LS   0x000000C0ULL

Definition at line 434 of file perf_event_amd.c.

#define AMD_EVENT_FP   0x00000000ULL ... 0x00000010ULL

Definition at line 429 of file perf_event_amd.c.

#define AMD_EVENT_IC_DE   0x00000080ULL ... 0x00000090ULL

Definition at line 433 of file perf_event_amd.c.

#define AMD_EVENT_LS   0x00000020ULL ... 0x00000030ULL

Definition at line 430 of file perf_event_amd.c.

#define AMD_EVENT_NB   0x000000E0ULL ... 0x000000F0ULL

Definition at line 436 of file perf_event_amd.c.

#define AMD_EVENT_TYPE_MASK   0x000000F0ULL

Definition at line 427 of file perf_event_amd.c.

Function Documentation

void amd_pmu_disable_virt ( void  )

Definition at line 662 of file perf_event_amd.c.

void amd_pmu_enable_virt ( void  )

Definition at line 650 of file perf_event_amd.c.

__init int amd_pmu_init ( void  )

Definition at line 632 of file perf_event_amd.c.

EXPORT_SYMBOL_GPL ( amd_pmu_enable_virt  )
EXPORT_SYMBOL_GPL ( amd_pmu_disable_virt  )
PMU_FORMAT_ATTR ( event  ,
"config:0-  7,
32-35"   
)
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"   
)