Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
perf_event.c File Reference
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/io.h>
#include <linux/irq.h>
#include <linux/perf_event.h>
#include <asm/processor.h>

Go to the source code of this file.

Macros

#define PM_CR_BASE   0xff000084 /* 16-bit */
 
#define PM_CTR_BASE   0xff100004 /* 32-bit */
 
#define PMCR(n)   (PM_CR_BASE + ((n) * 0x04))
 
#define PMCTRH(n)   (PM_CTR_BASE + 0x00 + ((n) * 0x08))
 
#define PMCTRL(n)   (PM_CTR_BASE + 0x04 + ((n) * 0x08))
 
#define PMCR_PMM_MASK   0x0000003f
 
#define PMCR_CLKF   0x00000100
 
#define PMCR_PMCLR   0x00002000
 
#define PMCR_PMST   0x00004000
 
#define PMCR_PMEN   0x00008000
 
#define C(x)   PERF_COUNT_HW_CACHE_##x
 

Functions

 early_initcall (sh7750_pmu_init)
 

Macro Definition Documentation

#define C (   x)    PERF_COUNT_HW_CACHE_##x

Definition at line 87 of file perf_event.c.

#define PM_CR_BASE   0xff000084 /* 16-bit */

Definition at line 17 of file perf_event.c.

#define PM_CTR_BASE   0xff100004 /* 32-bit */

Definition at line 18 of file perf_event.c.

#define PMCR (   n)    (PM_CR_BASE + ((n) * 0x04))

Definition at line 20 of file perf_event.c.

#define PMCR_CLKF   0x00000100

Definition at line 26 of file perf_event.c.

#define PMCR_PMCLR   0x00002000

Definition at line 27 of file perf_event.c.

#define PMCR_PMEN   0x00008000

Definition at line 29 of file perf_event.c.

#define PMCR_PMM_MASK   0x0000003f

Definition at line 24 of file perf_event.c.

#define PMCR_PMST   0x00004000

Definition at line 28 of file perf_event.c.

#define PMCTRH (   n)    (PM_CTR_BASE + 0x00 + ((n) * 0x08))

Definition at line 21 of file perf_event.c.

#define PMCTRL (   n)    (PM_CTR_BASE + 0x04 + ((n) * 0x08))

Definition at line 22 of file perf_event.c.

Function Documentation

early_initcall ( sh7750_pmu_init  )