Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
profile.c File Reference
#include <linux/export.h>
#include <linux/profile.h>
#include <linux/bootmem.h>
#include <linux/notifier.h>
#include <linux/mm.h>
#include <linux/cpumask.h>
#include <linux/cpu.h>
#include <linux/highmem.h>
#include <linux/mutex.h>
#include <linux/slab.h>
#include <linux/vmalloc.h>
#include <asm/sections.h>
#include <asm/irq_regs.h>
#include <asm/ptrace.h>

Go to the source code of this file.

Data Structures

struct  profile_hit
 

Macros

#define PROFILE_GRPSHIFT   3
 
#define PROFILE_GRPSZ   (1 << PROFILE_GRPSHIFT)
 
#define NR_PROFILE_HIT   (PAGE_SIZE/sizeof(struct profile_hit))
 
#define NR_PROFILE_GRP   (NR_PROFILE_HIT/PROFILE_GRPSZ)
 
#define profile_flip_buffers()   do { } while (0)
 
#define profile_discard_flip_buffers()   do { } while (0)
 
#define profile_cpu_callback   NULL
 

Functions

 __setup ("profile=", profile_setup)
 
int __ref profile_init (void)
 
void profile_task_exit (struct task_struct *task)
 
int profile_handoff_task (struct task_struct *task)
 
void profile_munmap (unsigned long addr)
 
int task_handoff_register (struct notifier_block *n)
 
 EXPORT_SYMBOL_GPL (task_handoff_register)
 
int task_handoff_unregister (struct notifier_block *n)
 
 EXPORT_SYMBOL_GPL (task_handoff_unregister)
 
int profile_event_register (enum profile_type type, struct notifier_block *n)
 
 EXPORT_SYMBOL_GPL (profile_event_register)
 
int profile_event_unregister (enum profile_type type, struct notifier_block *n)
 
 EXPORT_SYMBOL_GPL (profile_event_unregister)
 
int register_timer_hook (int(*hook)(struct pt_regs *))
 
 EXPORT_SYMBOL_GPL (register_timer_hook)
 
void unregister_timer_hook (int(*hook)(struct pt_regs *))
 
 EXPORT_SYMBOL_GPL (unregister_timer_hook)
 
void profile_hits (int type, void *__pc, unsigned int nr_hits)
 
 EXPORT_SYMBOL_GPL (profile_hits)
 
void profile_tick (int type)
 

Macro Definition Documentation

#define NR_PROFILE_GRP   (NR_PROFILE_HIT/PROFILE_GRPSZ)

Definition at line 37 of file profile.c.

#define NR_PROFILE_HIT   (PAGE_SIZE/sizeof(struct profile_hit))

Definition at line 36 of file profile.c.

#define profile_cpu_callback   NULL

Definition at line 416 of file profile.c.

#define profile_discard_flip_buffers ( )    do { } while (0)

Definition at line 415 of file profile.c.

#define profile_flip_buffers ( )    do { } while (0)

Definition at line 414 of file profile.c.

#define PROFILE_GRPSHIFT   3

Definition at line 34 of file profile.c.

#define PROFILE_GRPSZ   (1 << PROFILE_GRPSHIFT)

Definition at line 35 of file profile.c.

Function Documentation

__setup ( )
EXPORT_SYMBOL_GPL ( task_handoff_register  )
EXPORT_SYMBOL_GPL ( task_handoff_unregister  )
EXPORT_SYMBOL_GPL ( profile_event_register  )
EXPORT_SYMBOL_GPL ( profile_event_unregister  )
EXPORT_SYMBOL_GPL ( register_timer_hook  )
EXPORT_SYMBOL_GPL ( unregister_timer_hook  )
EXPORT_SYMBOL_GPL ( profile_hits  )
int profile_event_register ( enum profile_type  type,
struct notifier_block n 
)

Definition at line 172 of file profile.c.

int profile_event_unregister ( enum profile_type  type,
struct notifier_block n 
)

Definition at line 191 of file profile.c.

int profile_handoff_task ( struct task_struct task)

Definition at line 148 of file profile.c.

void profile_hits ( int  type,
void __pc,
unsigned int  nr_hits 
)

Definition at line 426 of file profile.c.

int __ref profile_init ( void  )

Definition at line 105 of file profile.c.

void profile_munmap ( unsigned long  addr)

Definition at line 155 of file profile.c.

void profile_task_exit ( struct task_struct task)

Definition at line 143 of file profile.c.

void profile_tick ( int  type)

Definition at line 434 of file profile.c.

int register_timer_hook ( int(*)(struct pt_regs *)  hook)

Definition at line 210 of file profile.c.

int task_handoff_register ( struct notifier_block n)

Definition at line 160 of file profile.c.

int task_handoff_unregister ( struct notifier_block n)

Definition at line 166 of file profile.c.

void unregister_timer_hook ( int(*)(struct pt_regs *)  hook)

Definition at line 219 of file profile.c.