Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
perf_regs.c File Reference
#include <linux/errno.h>
#include <linux/kernel.h>
#include <linux/sched.h>
#include <linux/perf_event.h>
#include <linux/bug.h>
#include <linux/stddef.h>
#include <asm/perf_regs.h>
#include <asm/ptrace.h>

Go to the source code of this file.

Macros

#define PERF_REG_X86_MAX   PERF_REG_X86_64_MAX
 
#define PT_REGS_OFFSET(id, r)   [id] = offsetof(struct pt_regs, r)
 
#define REG_RESERVED   (~((1ULL << PERF_REG_X86_MAX) - 1ULL))
 
#define REG_NOSUPPORT
 

Functions

u64 perf_reg_value (struct pt_regs *regs, int idx)
 
int perf_reg_validate (u64 mask)
 
u64 perf_reg_abi (struct task_struct *task)
 

Macro Definition Documentation

#define PERF_REG_X86_MAX   PERF_REG_X86_64_MAX

Definition at line 13 of file perf_regs.c.

#define PT_REGS_OFFSET (   id,
  r 
)    [id] = offsetof(struct pt_regs, r)

Definition at line 16 of file perf_regs.c.

#define REG_NOSUPPORT
Value:
((1ULL << PERF_REG_X86_DS) | \
(1ULL << PERF_REG_X86_ES) | \
(1ULL << PERF_REG_X86_FS) | \
(1ULL << PERF_REG_X86_GS))

Definition at line 82 of file perf_regs.c.

#define REG_RESERVED   (~((1ULL << PERF_REG_X86_MAX) - 1ULL))

Definition at line 66 of file perf_regs.c.

Function Documentation

u64 perf_reg_abi ( struct task_struct task)

Definition at line 98 of file perf_regs.c.

int perf_reg_validate ( u64  mask)

Definition at line 87 of file perf_regs.c.

u64 perf_reg_value ( struct pt_regs regs,
int  idx 
)

Definition at line 58 of file perf_regs.c.