Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
mpc7450-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 N_COUNTER   6 /* Number of hardware counters */
 
#define MAX_ALT   3 /* Maximum number of event alternative codes */
 
#define PM_THRMULT_MSKS   0x40000
 
#define PM_THRESH_SH   12
 
#define PM_THRESH_MSK   0x3f
 
#define PM_PMC_SH   8
 
#define PM_PMC_MSK   7
 
#define PM_PMCSEL_MSK   0x7f
 
#define N_CLASSES   5
 
#define C(x)   PERF_COUNT_HW_CACHE_##x
 

Functions

 early_initcall (init_mpc7450_pmu)
 

Variables

struct power_pmu mpc7450_pmu
 

Macro Definition Documentation

#define C (   x)    PERF_COUNT_HW_CACHE_##x

Definition at line 353 of file mpc7450-pmu.c.

#define MAX_ALT   3 /* Maximum number of event alternative codes */

Definition at line 17 of file mpc7450-pmu.c.

#define N_CLASSES   5

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

#define N_COUNTER   6 /* Number of hardware counters */

Definition at line 16 of file mpc7450-pmu.c.

#define PM_PMC_MSK   7

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

#define PM_PMC_SH   8

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

#define PM_PMCSEL_MSK   0x7f

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

#define PM_THRESH_MSK   0x3f

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

#define PM_THRESH_SH   12

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

#define PM_THRMULT_MSKS   0x40000

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

Function Documentation

early_initcall ( init_mpc7450_pmu  )

Variable Documentation

struct power_pmu mpc7450_pmu
Initial value:
= {
.name = "MPC7450 family",
.n_counter = N_COUNTER,
.max_alternatives = MAX_ALT,
.add_fields = 0x00111555ul,
.test_adder = 0x00301000ul,
.compute_mmcr = mpc7450_compute_mmcr,
.get_constraint = mpc7450_get_constraint,
.get_alternatives = mpc7450_get_alternatives,
.disable_pmc = mpc7450_disable_pmc,
.n_generic = ARRAY_SIZE(mpc7450_generic_events),
.generic_events = mpc7450_generic_events,
.cache_events = &mpc7450_cache_events,
}

Definition at line 398 of file mpc7450-pmu.c.