Linux Kernel
3.7.1
|
#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 0x7 |
#define | PM_PMC_MSKS (PM_PMC_MSK << PM_PMC_SH) |
#define | PM_UNIT_SH 16 /* Unit event comes (TTMxSEL encoding) */ |
#define | PM_UNIT_MSK 0xf |
#define | PM_UNIT_MSKS (PM_UNIT_MSK << PM_UNIT_SH) |
#define | PM_LLAV 0x8000 /* Load lookahead match value */ |
#define | PM_LLA 0x4000 /* Load lookahead match enable */ |
#define | PM_BYTE_SH 12 /* Byte of event bus to use */ |
#define | PM_BYTE_MSK 3 |
#define | PM_SUBUNIT_SH 8 /* Subunit event comes from (NEST_SEL enc.) */ |
#define | PM_SUBUNIT_MSK 7 |
#define | PM_SUBUNIT_MSKS (PM_SUBUNIT_MSK << PM_SUBUNIT_SH) |
#define | PM_PMCSEL_MSK 0xff /* PMCxSEL value */ |
#define | PM_BUSEVENT_MSK 0xf3700 |
#define | MMCR1_TTM0SEL_SH 60 |
#define | MMCR1_TTMSEL_SH(n) (MMCR1_TTM0SEL_SH - (n) * 4) |
#define | MMCR1_TTMSEL_MSK 0xf |
#define | MMCR1_TTMSEL(m, n) (((m) >> MMCR1_TTMSEL_SH(n)) & MMCR1_TTMSEL_MSK) |
#define | MMCR1_NESTSEL_SH 45 |
#define | MMCR1_NESTSEL_MSK 0x7 |
#define | MMCR1_NESTSEL(m) (((m) >> MMCR1_NESTSEL_SH) & MMCR1_NESTSEL_MSK) |
#define | MMCR1_PMC1_LLA (1ul << 44) |
#define | MMCR1_PMC1_LLA_VALUE (1ul << 39) |
#define | MMCR1_PMC1_ADDR_SEL (1ul << 35) |
#define | MMCR1_PMC1SEL_SH 24 |
#define | MMCR1_PMCSEL_SH(n) (MMCR1_PMC1SEL_SH - (n) * 8) |
#define | MMCR1_PMCSEL_MSK 0xff |
#define | MAX_ALT 4 /* at most 4 alternatives for any event */ |
#define | C(x) PERF_COUNT_HW_CACHE_##x |
Functions | |
early_initcall (init_power6_pmu) | |
Definition at line 480 of file power6-pmu.c.
Definition at line 311 of file power6-pmu.c.
#define MMCR1_NESTSEL | ( | m | ) | (((m) >> MMCR1_NESTSEL_SH) & MMCR1_NESTSEL_MSK) |
Definition at line 45 of file power6-pmu.c.
#define MMCR1_NESTSEL_MSK 0x7 |
Definition at line 44 of file power6-pmu.c.
#define MMCR1_NESTSEL_SH 45 |
Definition at line 43 of file power6-pmu.c.
#define MMCR1_PMC1_ADDR_SEL (1ul << 35) |
Definition at line 48 of file power6-pmu.c.
#define MMCR1_PMC1_LLA (1ul << 44) |
Definition at line 46 of file power6-pmu.c.
#define MMCR1_PMC1_LLA_VALUE (1ul << 39) |
Definition at line 47 of file power6-pmu.c.
#define MMCR1_PMC1SEL_SH 24 |
Definition at line 49 of file power6-pmu.c.
#define MMCR1_PMCSEL_MSK 0xff |
Definition at line 51 of file power6-pmu.c.
#define MMCR1_PMCSEL_SH | ( | n | ) | (MMCR1_PMC1SEL_SH - (n) * 8) |
Definition at line 50 of file power6-pmu.c.
#define MMCR1_TTM0SEL_SH 60 |
Definition at line 39 of file power6-pmu.c.
#define MMCR1_TTMSEL | ( | m, | |
n | |||
) | (((m) >> MMCR1_TTMSEL_SH(n)) & MMCR1_TTMSEL_MSK) |
Definition at line 42 of file power6-pmu.c.
#define MMCR1_TTMSEL_MSK 0xf |
Definition at line 41 of file power6-pmu.c.
#define MMCR1_TTMSEL_SH | ( | n | ) | (MMCR1_TTM0SEL_SH - (n) * 4) |
Definition at line 40 of file power6-pmu.c.
#define PM_BUSEVENT_MSK 0xf3700 |
Definition at line 34 of file power6-pmu.c.
#define PM_BYTE_MSK 3 |
Definition at line 29 of file power6-pmu.c.
Definition at line 28 of file power6-pmu.c.
#define PM_LLA 0x4000 /* Load lookahead match enable */ |
Definition at line 27 of file power6-pmu.c.
#define PM_LLAV 0x8000 /* Load lookahead match value */ |
Definition at line 26 of file power6-pmu.c.
#define PM_PMC_MSK 0x7 |
Definition at line 21 of file power6-pmu.c.
#define PM_PMC_MSKS (PM_PMC_MSK << PM_PMC_SH) |
Definition at line 22 of file power6-pmu.c.
Definition at line 20 of file power6-pmu.c.
#define PM_PMCSEL_MSK 0xff /* PMCxSEL value */ |
Definition at line 33 of file power6-pmu.c.
#define PM_SUBUNIT_MSK 7 |
Definition at line 31 of file power6-pmu.c.
#define PM_SUBUNIT_MSKS (PM_SUBUNIT_MSK << PM_SUBUNIT_SH) |
Definition at line 32 of file power6-pmu.c.
Definition at line 30 of file power6-pmu.c.
#define PM_UNIT_MSK 0xf |
Definition at line 24 of file power6-pmu.c.
#define PM_UNIT_MSKS (PM_UNIT_MSK << PM_UNIT_SH) |
Definition at line 25 of file power6-pmu.c.
#define PM_UNIT_SH 16 /* Unit event comes (TTMxSEL encoding) */ |
Definition at line 23 of file power6-pmu.c.
early_initcall | ( | init_power6_pmu | ) |