Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
power7-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   16 /* 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   12 /* TTMMUX number and setting - unit select */
 
#define PM_UNIT_MSK   0xf
 
#define PM_COMBINE_SH   11 /* Combined event bit */
 
#define PM_COMBINE_MSK   1
 
#define PM_COMBINE_MSKS   0x800
 
#define PM_L2SEL_SH   8 /* L2 event select */
 
#define PM_L2SEL_MSK   7
 
#define PM_PMCSEL_MSK   0xff
 
#define MMCR1_TTM0SEL_SH   60
 
#define MMCR1_TTM1SEL_SH   56
 
#define MMCR1_TTM2SEL_SH   52
 
#define MMCR1_TTM3SEL_SH   48
 
#define MMCR1_TTMSEL_MSK   0xf
 
#define MMCR1_L2SEL_SH   45
 
#define MMCR1_L2SEL_MSK   7
 
#define MMCR1_PMC1_COMBINE_SH   35
 
#define MMCR1_PMC2_COMBINE_SH   34
 
#define MMCR1_PMC3_COMBINE_SH   33
 
#define MMCR1_PMC4_COMBINE_SH   32
 
#define MMCR1_PMC1SEL_SH   24
 
#define MMCR1_PMC2SEL_SH   16
 
#define MMCR1_PMC3SEL_SH   8
 
#define MMCR1_PMC4SEL_SH   0
 
#define MMCR1_PMCSEL_SH(n)   (MMCR1_PMC1SEL_SH - (n) * 8)
 
#define MMCR1_PMCSEL_MSK   0xff
 
#define MAX_ALT   2 /* at most 2 alternatives for any event */
 
#define C(x)   PERF_COUNT_HW_CACHE_##x
 

Functions

 early_initcall (init_power7_pmu)
 

Macro Definition Documentation

#define C (   x)    PERF_COUNT_HW_CACHE_##x

Definition at line 309 of file power7-pmu.c.

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

Definition at line 98 of file power7-pmu.c.

#define MMCR1_L2SEL_MSK   7

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

#define MMCR1_L2SEL_SH   45

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

#define MMCR1_PMC1_COMBINE_SH   35

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

#define MMCR1_PMC1SEL_SH   24

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

#define MMCR1_PMC2_COMBINE_SH   34

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

#define MMCR1_PMC2SEL_SH   16

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

#define MMCR1_PMC3_COMBINE_SH   33

Definition at line 44 of file power7-pmu.c.

#define MMCR1_PMC3SEL_SH   8

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

#define MMCR1_PMC4_COMBINE_SH   32

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

#define MMCR1_PMC4SEL_SH   0

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

#define MMCR1_PMCSEL_MSK   0xff

Definition at line 51 of file power7-pmu.c.

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

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

#define MMCR1_TTM0SEL_SH   60

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

#define MMCR1_TTM1SEL_SH   56

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

#define MMCR1_TTM2SEL_SH   52

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

#define MMCR1_TTM3SEL_SH   48

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

#define MMCR1_TTMSEL_MSK   0xf

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

#define PM_COMBINE_MSK   1

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

#define PM_COMBINE_MSKS   0x800

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

#define PM_COMBINE_SH   11 /* Combined event bit */

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

#define PM_L2SEL_MSK   7

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

#define PM_L2SEL_SH   8 /* L2 event select */

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

#define PM_PMC_MSK   0xf

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

#define PM_PMC_MSKS   (PM_PMC_MSK << PM_PMC_SH)

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

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

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

#define PM_PMCSEL_MSK   0xff

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

#define PM_UNIT_MSK   0xf

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

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

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

Function Documentation

early_initcall ( init_power7_pmu  )