Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
power4-pmu.c File Reference
#include <linux/kernel.h>
#include <linux/perf_event.h>
#include <linux/string.h>
#include <asm/reg.h>
#include <asm/cputable.h>

Go to the source code of this file.

Data Structures

struct  unitinfo
 

Macros

#define PM_PMC_SH   12 /* PMC number (1-based) for direct events */
 
#define PM_PMC_MSK   0xf
 
#define PM_UNIT_SH   8 /* TTMMUX number and setting - unit select */
 
#define PM_UNIT_MSK   0xf
 
#define PM_LOWER_SH   6
 
#define PM_LOWER_MSK   1
 
#define PM_LOWER_MSKS   0x40
 
#define PM_BYTE_SH   4 /* Byte number of event bus to use */
 
#define PM_BYTE_MSK   3
 
#define PM_PMCSEL_MSK   7
 
#define PM_FPU   1
 
#define PM_ISU1   2
 
#define PM_IFU   3
 
#define PM_IDU0   4
 
#define PM_ISU1_ALT   6
 
#define PM_ISU2   7
 
#define PM_IFU_ALT   8
 
#define PM_LSU0   9
 
#define PM_LSU1   0xc
 
#define PM_GPS   0xf
 
#define MMCR0_PMC1SEL_SH   8
 
#define MMCR0_PMC2SEL_SH   1
 
#define MMCR_PMCSEL_MSK   0x1f
 
#define MMCR1_TTM0SEL_SH   62
 
#define MMCR1_TTC0SEL_SH   61
 
#define MMCR1_TTM1SEL_SH   59
 
#define MMCR1_TTC1SEL_SH   58
 
#define MMCR1_TTM2SEL_SH   56
 
#define MMCR1_TTC2SEL_SH   55
 
#define MMCR1_TTM3SEL_SH   53
 
#define MMCR1_TTC3SEL_SH   52
 
#define MMCR1_TTMSEL_MSK   3
 
#define MMCR1_TD_CP_DBG0SEL_SH   50
 
#define MMCR1_TD_CP_DBG1SEL_SH   48
 
#define MMCR1_TD_CP_DBG2SEL_SH   46
 
#define MMCR1_TD_CP_DBG3SEL_SH   44
 
#define MMCR1_DEBUG0SEL_SH   43
 
#define MMCR1_DEBUG1SEL_SH   42
 
#define MMCR1_DEBUG2SEL_SH   41
 
#define MMCR1_DEBUG3SEL_SH   40
 
#define MMCR1_PMC1_ADDER_SEL_SH   39
 
#define MMCR1_PMC2_ADDER_SEL_SH   38
 
#define MMCR1_PMC6_ADDER_SEL_SH   37
 
#define MMCR1_PMC5_ADDER_SEL_SH   36
 
#define MMCR1_PMC8_ADDER_SEL_SH   35
 
#define MMCR1_PMC7_ADDER_SEL_SH   34
 
#define MMCR1_PMC3_ADDER_SEL_SH   33
 
#define MMCR1_PMC4_ADDER_SEL_SH   32
 
#define MMCR1_PMC3SEL_SH   27
 
#define MMCR1_PMC4SEL_SH   22
 
#define MMCR1_PMC5SEL_SH   17
 
#define MMCR1_PMC6SEL_SH   12
 
#define MMCR1_PMC7SEL_SH   7
 
#define MMCR1_PMC8SEL_SH   2 /* note bit 0 is in MMCRA for GP */
 
#define MMCRA_PMC8SEL0_SH   17 /* PMC8SEL bit 0 for GP */
 
#define C(x)   PERF_COUNT_HW_CACHE_##x
 

Functions

 early_initcall (init_power4_pmu)
 

Macro Definition Documentation

#define C (   x)    PERF_COUNT_HW_CACHE_##x

Definition at line 552 of file power4-pmu.c.

#define MMCR0_PMC1SEL_SH   8

Definition at line 48 of file power4-pmu.c.

#define MMCR0_PMC2SEL_SH   1

Definition at line 49 of file power4-pmu.c.

#define MMCR1_DEBUG0SEL_SH   43

Definition at line 68 of file power4-pmu.c.

#define MMCR1_DEBUG1SEL_SH   42

Definition at line 69 of file power4-pmu.c.

#define MMCR1_DEBUG2SEL_SH   41

Definition at line 70 of file power4-pmu.c.

#define MMCR1_DEBUG3SEL_SH   40

Definition at line 71 of file power4-pmu.c.

#define MMCR1_PMC1_ADDER_SEL_SH   39

Definition at line 72 of file power4-pmu.c.

#define MMCR1_PMC2_ADDER_SEL_SH   38

Definition at line 73 of file power4-pmu.c.

#define MMCR1_PMC3_ADDER_SEL_SH   33

Definition at line 78 of file power4-pmu.c.

#define MMCR1_PMC3SEL_SH   27

Definition at line 80 of file power4-pmu.c.

#define MMCR1_PMC4_ADDER_SEL_SH   32

Definition at line 79 of file power4-pmu.c.

#define MMCR1_PMC4SEL_SH   22

Definition at line 81 of file power4-pmu.c.

#define MMCR1_PMC5_ADDER_SEL_SH   36

Definition at line 75 of file power4-pmu.c.

#define MMCR1_PMC5SEL_SH   17

Definition at line 82 of file power4-pmu.c.

#define MMCR1_PMC6_ADDER_SEL_SH   37

Definition at line 74 of file power4-pmu.c.

#define MMCR1_PMC6SEL_SH   12

Definition at line 83 of file power4-pmu.c.

#define MMCR1_PMC7_ADDER_SEL_SH   34

Definition at line 77 of file power4-pmu.c.

#define MMCR1_PMC7SEL_SH   7

Definition at line 84 of file power4-pmu.c.

#define MMCR1_PMC8_ADDER_SEL_SH   35

Definition at line 76 of file power4-pmu.c.

#define MMCR1_PMC8SEL_SH   2 /* note bit 0 is in MMCRA for GP */

Definition at line 85 of file power4-pmu.c.

#define MMCR1_TD_CP_DBG0SEL_SH   50

Definition at line 64 of file power4-pmu.c.

#define MMCR1_TD_CP_DBG1SEL_SH   48

Definition at line 65 of file power4-pmu.c.

#define MMCR1_TD_CP_DBG2SEL_SH   46

Definition at line 66 of file power4-pmu.c.

#define MMCR1_TD_CP_DBG3SEL_SH   44

Definition at line 67 of file power4-pmu.c.

#define MMCR1_TTC0SEL_SH   61

Definition at line 56 of file power4-pmu.c.

#define MMCR1_TTC1SEL_SH   58

Definition at line 58 of file power4-pmu.c.

#define MMCR1_TTC2SEL_SH   55

Definition at line 60 of file power4-pmu.c.

#define MMCR1_TTC3SEL_SH   52

Definition at line 62 of file power4-pmu.c.

#define MMCR1_TTM0SEL_SH   62

Definition at line 55 of file power4-pmu.c.

#define MMCR1_TTM1SEL_SH   59

Definition at line 57 of file power4-pmu.c.

#define MMCR1_TTM2SEL_SH   56

Definition at line 59 of file power4-pmu.c.

#define MMCR1_TTM3SEL_SH   53

Definition at line 61 of file power4-pmu.c.

#define MMCR1_TTMSEL_MSK   3

Definition at line 63 of file power4-pmu.c.

#define MMCR_PMCSEL_MSK   0x1f

Definition at line 50 of file power4-pmu.c.

#define MMCRA_PMC8SEL0_SH   17 /* PMC8SEL bit 0 for GP */

Definition at line 101 of file power4-pmu.c.

#define PM_BYTE_MSK   3

Definition at line 28 of file power4-pmu.c.

#define PM_BYTE_SH   4 /* Byte number of event bus to use */

Definition at line 27 of file power4-pmu.c.

#define PM_FPU   1

Definition at line 34 of file power4-pmu.c.

#define PM_GPS   0xf

Definition at line 43 of file power4-pmu.c.

#define PM_IDU0   4

Definition at line 37 of file power4-pmu.c.

#define PM_IFU   3

Definition at line 36 of file power4-pmu.c.

#define PM_IFU_ALT   8

Definition at line 40 of file power4-pmu.c.

#define PM_ISU1   2

Definition at line 35 of file power4-pmu.c.

#define PM_ISU1_ALT   6

Definition at line 38 of file power4-pmu.c.

#define PM_ISU2   7

Definition at line 39 of file power4-pmu.c.

#define PM_LOWER_MSK   1

Definition at line 25 of file power4-pmu.c.

#define PM_LOWER_MSKS   0x40

Definition at line 26 of file power4-pmu.c.

#define PM_LOWER_SH   6

Definition at line 24 of file power4-pmu.c.

#define PM_LSU0   9

Definition at line 41 of file power4-pmu.c.

#define PM_LSU1   0xc

Definition at line 42 of file power4-pmu.c.

#define PM_PMC_MSK   0xf

Definition at line 21 of file power4-pmu.c.

#define PM_PMC_SH   12 /* PMC number (1-based) for direct events */

Definition at line 20 of file power4-pmu.c.

#define PM_PMCSEL_MSK   7

Definition at line 29 of file power4-pmu.c.

#define PM_UNIT_MSK   0xf

Definition at line 23 of file power4-pmu.c.

#define PM_UNIT_SH   8 /* TTMMUX number and setting - unit select */

Definition at line 22 of file power4-pmu.c.

Function Documentation

early_initcall ( init_power4_pmu  )