Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
perf_event.c File Reference
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/io.h>
#include <linux/irq.h>
#include <linux/perf_event.h>
#include <asm/processor.h>

Go to the source code of this file.

Macros

#define PPC_CCBR(idx)   (0xff200800 + (sizeof(u32) * idx))
 
#define PPC_PMCTR(idx)   (0xfc100000 + (sizeof(u32) * idx))
 
#define CCBR_CIT_MASK   (0x7ff << 6)
 
#define CCBR_DUC   (1 << 3)
 
#define CCBR_CMDS   (1 << 1)
 
#define CCBR_PPCE   (1 << 0)
 
#define PPC_PMCAT   0xfc100080
 
#define PMCAT_OVF3   (1 << 27)
 
#define PMCAT_CNN3   (1 << 26)
 
#define PMCAT_CLR3   (1 << 25)
 
#define PMCAT_OVF2   (1 << 19)
 
#define PMCAT_CLR2   (1 << 17)
 
#define PMCAT_OVF1   (1 << 11)
 
#define PMCAT_CNN1   (1 << 10)
 
#define PMCAT_CLR1   (1 << 9)
 
#define PMCAT_OVF0   (1 << 3)
 
#define PMCAT_CLR0   (1 << 1)
 
#define PMCAT_EMU_CLR_MASK   ((1 << 24) | (1 << 16) | (1 << 8) | (1 << 0))
 
#define C(x)   PERF_COUNT_HW_CACHE_##x
 

Functions

 early_initcall (sh4a_pmu_init)
 

Macro Definition Documentation

#define C (   x)    PERF_COUNT_HW_CACHE_##x

Definition at line 112 of file perf_event.c.

#define CCBR_CIT_MASK   (0x7ff << 6)

Definition at line 20 of file perf_event.c.

#define CCBR_CMDS   (1 << 1)

Definition at line 22 of file perf_event.c.

#define CCBR_DUC   (1 << 3)

Definition at line 21 of file perf_event.c.

#define CCBR_PPCE   (1 << 0)

Definition at line 23 of file perf_event.c.

#define PMCAT_CLR0   (1 << 1)

Definition at line 54 of file perf_event.c.

#define PMCAT_CLR1   (1 << 9)

Definition at line 52 of file perf_event.c.

#define PMCAT_CLR2   (1 << 17)

Definition at line 49 of file perf_event.c.

#define PMCAT_CLR3   (1 << 25)

Definition at line 47 of file perf_event.c.

#define PMCAT_CNN1   (1 << 10)

Definition at line 51 of file perf_event.c.

#define PMCAT_CNN3   (1 << 26)

Definition at line 46 of file perf_event.c.

#define PMCAT_EMU_CLR_MASK   ((1 << 24) | (1 << 16) | (1 << 8) | (1 << 0))

Definition at line 100 of file perf_event.c.

#define PMCAT_OVF0   (1 << 3)

Definition at line 53 of file perf_event.c.

#define PMCAT_OVF1   (1 << 11)

Definition at line 50 of file perf_event.c.

#define PMCAT_OVF2   (1 << 19)

Definition at line 48 of file perf_event.c.

#define PMCAT_OVF3   (1 << 27)

Definition at line 45 of file perf_event.c.

#define PPC_CCBR (   idx)    (0xff200800 + (sizeof(u32) * idx))

Definition at line 17 of file perf_event.c.

#define PPC_PMCAT   0xfc100080

Definition at line 42 of file perf_event.c.

#define PPC_PMCTR (   idx)    (0xfc100000 + (sizeof(u32) * idx))

Definition at line 18 of file perf_event.c.

Function Documentation

early_initcall ( sh4a_pmu_init  )