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

Go to the source code of this file.

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_SPCSEL_SH   6
 
#define PM_SPCSEL_MSK   3
 
#define PM_BYTE_SH   4 /* Byte number of event bus to use */
 
#define PM_BYTE_MSK   3
 
#define PM_PMCSEL_MSK   0xf
 
#define PM_NONE   0
 
#define PM_FPU   1
 
#define PM_VPU   2
 
#define PM_ISU   3
 
#define PM_IFU   4
 
#define PM_IDU   5
 
#define PM_STS   6
 
#define PM_LSU0   7
 
#define PM_LSU1U   8
 
#define PM_LSU1L   9
 
#define PM_LASTUNIT   9
 
#define MMCR0_PMC1SEL_SH   8
 
#define MMCR0_PMC2SEL_SH   1
 
#define MMCR_PMCSEL_MSK   0x1f
 
#define MMCR1_TTM0SEL_SH   62
 
#define MMCR1_TTM1SEL_SH   59
 
#define MMCR1_TTM3SEL_SH   53
 
#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_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
 
#define C(x)   PERF_COUNT_HW_CACHE_##x
 

Functions

 early_initcall (init_ppc970_pmu)
 

Macro Definition Documentation

#define C (   x)    PERF_COUNT_HW_CACHE_##x

Definition at line 432 of file ppc970-pmu.c.

#define MMCR0_PMC1SEL_SH   8

Definition at line 45 of file ppc970-pmu.c.

#define MMCR0_PMC2SEL_SH   1

Definition at line 46 of file ppc970-pmu.c.

#define MMCR1_PMC1_ADDER_SEL_SH   39

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

#define MMCR1_PMC2_ADDER_SEL_SH   38

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

#define MMCR1_PMC3_ADDER_SEL_SH   33

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

#define MMCR1_PMC3SEL_SH   27

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

#define MMCR1_PMC4_ADDER_SEL_SH   32

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

#define MMCR1_PMC4SEL_SH   22

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

#define MMCR1_PMC5_ADDER_SEL_SH   36

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

#define MMCR1_PMC5SEL_SH   17

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

#define MMCR1_PMC6_ADDER_SEL_SH   37

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

#define MMCR1_PMC6SEL_SH   12

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

#define MMCR1_PMC7_ADDER_SEL_SH   34

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

#define MMCR1_PMC7SEL_SH   7

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

#define MMCR1_PMC8_ADDER_SEL_SH   35

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

#define MMCR1_PMC8SEL_SH   2

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

#define MMCR1_TD_CP_DBG0SEL_SH   50

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

#define MMCR1_TD_CP_DBG1SEL_SH   48

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

#define MMCR1_TD_CP_DBG2SEL_SH   46

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

#define MMCR1_TD_CP_DBG3SEL_SH   44

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

#define MMCR1_TTM0SEL_SH   62

Definition at line 52 of file ppc970-pmu.c.

#define MMCR1_TTM1SEL_SH   59

Definition at line 53 of file ppc970-pmu.c.

#define MMCR1_TTM3SEL_SH   53

Definition at line 54 of file ppc970-pmu.c.

#define MMCR1_TTMSEL_MSK   3

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

#define MMCR_PMCSEL_MSK   0x1f

Definition at line 47 of file ppc970-pmu.c.

#define PM_BYTE_MSK   3

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

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

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

#define PM_FPU   1

Definition at line 31 of file ppc970-pmu.c.

#define PM_IDU   5

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

#define PM_IFU   4

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

#define PM_ISU   3

Definition at line 33 of file ppc970-pmu.c.

#define PM_LASTUNIT   9

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

#define PM_LSU0   7

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

#define PM_LSU1L   9

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

#define PM_LSU1U   8

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

#define PM_NONE   0

Definition at line 30 of file ppc970-pmu.c.

#define PM_PMC_MSK   0xf

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

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

Definition at line 19 of file ppc970-pmu.c.

#define PM_PMCSEL_MSK   0xf

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

#define PM_SPCSEL_MSK   3

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

#define PM_SPCSEL_SH   6

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

#define PM_STS   6

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

#define PM_UNIT_MSK   0xf

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

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

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

#define PM_VPU   2

Definition at line 32 of file ppc970-pmu.c.

Function Documentation

early_initcall ( init_ppc970_pmu  )