Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Variables
op_model_amd.c File Reference
#include <linux/oprofile.h>
#include <linux/device.h>
#include <linux/pci.h>
#include <linux/percpu.h>
#include <asm/ptrace.h>
#include <asm/msr.h>
#include <asm/nmi.h>
#include <asm/apic.h>
#include <asm/processor.h>
#include <asm/cpufeature.h>
#include "op_x86_model.h"
#include "op_counter.h"

Go to the source code of this file.

Data Structures

struct  ibs_config
 
struct  ibs_state
 

Macros

#define NUM_VIRT_COUNTERS   0
 
#define OP_EVENT_MASK   0x0FFF
 
#define OP_CTR_OVERFLOW   (1ULL<<31)
 
#define MSR_AMD_EVENTSEL_RESERVED   ((0xFFFFFCF0ULL<<32)|(1ULL<<21))
 
#define IBS_FETCH_SIZE   6
 
#define IBS_OP_SIZE   12
 
#define IBS_RANDOM_BITS   12
 
#define IBS_RANDOM_MASK   ((1ULL << IBS_RANDOM_BITS) - 1)
 
#define IBS_RANDOM_MAXCNT_OFFSET   (1ULL << (IBS_RANDOM_BITS - 5))
 

Variables

struct op_x86_model_spec op_amd_spec
 

Macro Definition Documentation

#define IBS_FETCH_SIZE   6

Definition at line 46 of file op_model_amd.c.

#define IBS_OP_SIZE   12

Definition at line 47 of file op_model_amd.c.

#define IBS_RANDOM_BITS   12

Definition at line 73 of file op_model_amd.c.

#define IBS_RANDOM_MASK   ((1ULL << IBS_RANDOM_BITS) - 1)

Definition at line 74 of file op_model_amd.c.

#define IBS_RANDOM_MAXCNT_OFFSET   (1ULL << (IBS_RANDOM_BITS - 5))

Definition at line 75 of file op_model_amd.c.

#define MSR_AMD_EVENTSEL_RESERVED   ((0xFFFFFCF0ULL<<32)|(1ULL<<21))

Definition at line 41 of file op_model_amd.c.

#define NUM_VIRT_COUNTERS   0

Definition at line 35 of file op_model_amd.c.

#define OP_CTR_OVERFLOW   (1ULL<<31)

Definition at line 39 of file op_model_amd.c.

#define OP_EVENT_MASK   0x0FFF

Definition at line 38 of file op_model_amd.c.

Variable Documentation

Initial value:
= {
.event_mask = OP_EVENT_MASK,
.init = op_amd_init,
.fill_in_addresses = &op_amd_fill_in_addresses,
.setup_ctrs = &op_amd_setup_ctrs,
.check_ctrs = &op_amd_check_ctrs,
.start = &op_amd_start,
.stop = &op_amd_stop,
.shutdown = &op_amd_shutdown,
}

Definition at line 508 of file op_model_amd.c.