Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
power5+-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.

Macros

#define PM_PMC_SH   20 /* PMC number (1-based) for direct events */
 
#define PM_PMC_MSK   0xf
 
#define PM_PMC_MSKS   (PM_PMC_MSK << PM_PMC_SH)
 
#define PM_UNIT_SH   16 /* TTMMUX number and setting - unit select */
 
#define PM_UNIT_MSK   0xf
 
#define PM_BYTE_SH   12 /* Byte number of event bus to use */
 
#define PM_BYTE_MSK   7
 
#define PM_GRS_SH   8 /* Storage subsystem mux select */
 
#define PM_GRS_MSK   7
 
#define PM_BUSEVENT_MSK   0x80 /* Set if event uses event bus */
 
#define PM_PMCSEL_MSK   0x7f
 
#define PM_FPU   0
 
#define PM_ISU0   1
 
#define PM_IFU   2
 
#define PM_ISU1   3
 
#define PM_IDU   4
 
#define PM_ISU0_ALT   6
 
#define PM_GRS   7
 
#define PM_LSU0   8
 
#define PM_LSU1   0xc
 
#define PM_LASTUNIT   0xc
 
#define MMCR1_TTM0SEL_SH   62
 
#define MMCR1_TTM1SEL_SH   60
 
#define MMCR1_TTM2SEL_SH   58
 
#define MMCR1_TTM3SEL_SH   56
 
#define MMCR1_TTMSEL_MSK   3
 
#define MMCR1_TD_CP_DBG0SEL_SH   54
 
#define MMCR1_TD_CP_DBG1SEL_SH   52
 
#define MMCR1_TD_CP_DBG2SEL_SH   50
 
#define MMCR1_TD_CP_DBG3SEL_SH   48
 
#define MMCR1_GRS_L2SEL_SH   46
 
#define MMCR1_GRS_L2SEL_MSK   3
 
#define MMCR1_GRS_L3SEL_SH   44
 
#define MMCR1_GRS_L3SEL_MSK   3
 
#define MMCR1_GRS_MCSEL_SH   41
 
#define MMCR1_GRS_MCSEL_MSK   7
 
#define MMCR1_GRS_FABSEL_SH   39
 
#define MMCR1_GRS_FABSEL_MSK   3
 
#define MMCR1_PMC1_ADDER_SEL_SH   35
 
#define MMCR1_PMC2_ADDER_SEL_SH   34
 
#define MMCR1_PMC3_ADDER_SEL_SH   33
 
#define MMCR1_PMC4_ADDER_SEL_SH   32
 
#define MMCR1_PMC1SEL_SH   25
 
#define MMCR1_PMC2SEL_SH   17
 
#define MMCR1_PMC3SEL_SH   9
 
#define MMCR1_PMC4SEL_SH   1
 
#define MMCR1_PMCSEL_SH(n)   (MMCR1_PMC1SEL_SH - (n) * 8)
 
#define MMCR1_PMCSEL_MSK   0x7f
 
#define MAX_ALT   3 /* at most 3 alternatives for any event */
 
#define C(x)   PERF_COUNT_HW_CACHE_##x
 

Functions

 early_initcall (init_power5p_pmu)
 

Macro Definition Documentation

#define C (   x)    PERF_COUNT_HW_CACHE_##x

Definition at line 618 of file power5+-pmu.c.

#define MAX_ALT   3 /* at most 3 alternatives for any event */

Definition at line 198 of file power5+-pmu.c.

#define MMCR1_GRS_FABSEL_MSK   3

Definition at line 63 of file power5+-pmu.c.

#define MMCR1_GRS_FABSEL_SH   39

Definition at line 62 of file power5+-pmu.c.

#define MMCR1_GRS_L2SEL_MSK   3

Definition at line 57 of file power5+-pmu.c.

#define MMCR1_GRS_L2SEL_SH   46

Definition at line 56 of file power5+-pmu.c.

#define MMCR1_GRS_L3SEL_MSK   3

Definition at line 59 of file power5+-pmu.c.

#define MMCR1_GRS_L3SEL_SH   44

Definition at line 58 of file power5+-pmu.c.

#define MMCR1_GRS_MCSEL_MSK   7

Definition at line 61 of file power5+-pmu.c.

#define MMCR1_GRS_MCSEL_SH   41

Definition at line 60 of file power5+-pmu.c.

#define MMCR1_PMC1_ADDER_SEL_SH   35

Definition at line 64 of file power5+-pmu.c.

#define MMCR1_PMC1SEL_SH   25

Definition at line 68 of file power5+-pmu.c.

#define MMCR1_PMC2_ADDER_SEL_SH   34

Definition at line 65 of file power5+-pmu.c.

#define MMCR1_PMC2SEL_SH   17

Definition at line 69 of file power5+-pmu.c.

#define MMCR1_PMC3_ADDER_SEL_SH   33

Definition at line 66 of file power5+-pmu.c.

#define MMCR1_PMC3SEL_SH   9

Definition at line 70 of file power5+-pmu.c.

#define MMCR1_PMC4_ADDER_SEL_SH   32

Definition at line 67 of file power5+-pmu.c.

#define MMCR1_PMC4SEL_SH   1

Definition at line 71 of file power5+-pmu.c.

#define MMCR1_PMCSEL_MSK   0x7f

Definition at line 73 of file power5+-pmu.c.

#define MMCR1_PMCSEL_SH (   n)    (MMCR1_PMC1SEL_SH - (n) * 8)

Definition at line 72 of file power5+-pmu.c.

#define MMCR1_TD_CP_DBG0SEL_SH   54

Definition at line 52 of file power5+-pmu.c.

#define MMCR1_TD_CP_DBG1SEL_SH   52

Definition at line 53 of file power5+-pmu.c.

#define MMCR1_TD_CP_DBG2SEL_SH   50

Definition at line 54 of file power5+-pmu.c.

#define MMCR1_TD_CP_DBG3SEL_SH   48

Definition at line 55 of file power5+-pmu.c.

#define MMCR1_TTM0SEL_SH   62

Definition at line 47 of file power5+-pmu.c.

#define MMCR1_TTM1SEL_SH   60

Definition at line 48 of file power5+-pmu.c.

#define MMCR1_TTM2SEL_SH   58

Definition at line 49 of file power5+-pmu.c.

#define MMCR1_TTM3SEL_SH   56

Definition at line 50 of file power5+-pmu.c.

#define MMCR1_TTMSEL_MSK   3

Definition at line 51 of file power5+-pmu.c.

#define PM_BUSEVENT_MSK   0x80 /* Set if event uses event bus */

Definition at line 29 of file power5+-pmu.c.

#define PM_BYTE_MSK   7

Definition at line 26 of file power5+-pmu.c.

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

Definition at line 25 of file power5+-pmu.c.

#define PM_FPU   0

Definition at line 33 of file power5+-pmu.c.

#define PM_GRS   7

Definition at line 39 of file power5+-pmu.c.

#define PM_GRS_MSK   7

Definition at line 28 of file power5+-pmu.c.

#define PM_GRS_SH   8 /* Storage subsystem mux select */

Definition at line 27 of file power5+-pmu.c.

#define PM_IDU   4

Definition at line 37 of file power5+-pmu.c.

#define PM_IFU   2

Definition at line 35 of file power5+-pmu.c.

#define PM_ISU0   1

Definition at line 34 of file power5+-pmu.c.

#define PM_ISU0_ALT   6

Definition at line 38 of file power5+-pmu.c.

#define PM_ISU1   3

Definition at line 36 of file power5+-pmu.c.

#define PM_LASTUNIT   0xc

Definition at line 42 of file power5+-pmu.c.

#define PM_LSU0   8

Definition at line 40 of file power5+-pmu.c.

#define PM_LSU1   0xc

Definition at line 41 of file power5+-pmu.c.

#define PM_PMC_MSK   0xf

Definition at line 21 of file power5+-pmu.c.

#define PM_PMC_MSKS   (PM_PMC_MSK << PM_PMC_SH)

Definition at line 22 of file power5+-pmu.c.

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

Definition at line 20 of file power5+-pmu.c.

#define PM_PMCSEL_MSK   0x7f

Definition at line 30 of file power5+-pmu.c.

#define PM_UNIT_MSK   0xf

Definition at line 24 of file power5+-pmu.c.

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

Definition at line 23 of file power5+-pmu.c.

Function Documentation

early_initcall ( init_power5p_pmu  )