opd_kernel.h File Reference

#include "op_types.h"
Include dependency graph for opd_kernel.h:

Go to the source code of this file.

Functions

void opd_init_kernel_image (void)
void opd_parse_kernel_range (char const *arg)
void opd_clear_module_info (void)
void opd_handle_kernel_sample (unsigned long eip, u32 counter)
int opd_eip_is_kernel (unsigned long eip)
void opd_add_kernel_map (struct opd_proc *proc, unsigned long eip)

Detailed Description

Dealing with the kernel and kernel module samples

Remarks:
Copyright 2002 OProfile authors
Read the file COPYING
Author:
John Levon
Philippe Elie

Definition in file opd_kernel.h.


Function Documentation

void opd_add_kernel_map ( struct opd_proc proc,
unsigned long  eip 
)

opd_add_kernel_map - add a module or kernel maps to a proc struct

Parameters:
proc owning proc of the new mapping
eip eip inside the new mapping

We assume than eip >= kernel_start

Definition at line 411 of file opd_kernel.c.

References app_name, opd_module::end, opd_module::image, kernel_end, kernel_start, opd_module::name, opd_image::name, opd_proc::name, opd_add_mapping(), opd_clear_module_info(), opd_drop_module_sample(), opd_find_module_by_eip(), opd_get_kernel_image(), opd_get_module_info(), opd_module::start, opd_proc::tgid, opd_proc::tid, verbprintf, vmisc, vmlinux, and vmodule.

Referenced by opd_put_sample().

Here is the call graph for this function:

Here is the caller graph for this function:

void opd_clear_module_info ( void   ) 

opd_clear_module_info - clear kernel module information

Clear and free all kernel module information and reset values.

Definition at line 113 of file opd_kernel.c.

References list_entry, list_for_each_safe, list_init(), opd_module::module_list, opd_module::name, opd_clear_kernel_mapping(), verbprintf, and vmodule.

Referenced by opd_24_exit(), opd_add_kernel_map(), opd_do_notes(), and opd_handle_module_sample().

Here is the call graph for this function:

Here is the caller graph for this function:

int opd_eip_is_kernel ( unsigned long  eip  ) 

opd_eip_is_kernel - is the sample from kernel/module space

Parameters:
eip EIP value

Returns 1 if eip is in the address space starting at kernel_start, 0 otherwise.

Definition at line 394 of file opd_kernel.c.

References kernel_start.

Referenced by opd_put_sample(), and opd_remove_kernel_mapping().

Here is the caller graph for this function:

void opd_handle_kernel_sample ( unsigned long  eip,
u32  counter 
)

opd_handle_kernel_sample - process a kernel sample

Parameters:
eip EIP value of sample
counter counter number

Handle a sample in kernel address space or in a module. The sample is output to the relevant image file.

Definition at line 381 of file opd_kernel.c.

References kernel_end, kernel_start, no_vmlinux, opd_24_stats, opd_handle_module_sample(), OPD_KERNEL, and opd_put_image_sample().

Referenced by opd_put_sample().

Here is the call graph for this function:

Here is the caller graph for this function:

void opd_init_kernel_image ( void   ) 

opd_init_kernel_image - initialise the kernel image

Definition at line 46 of file opd_kernel.c.

References opd_get_kernel_image(), opd_image::ref_count, and vmlinux.

Referenced by opd_24_init().

Here is the call graph for this function:

Here is the caller graph for this function:

void opd_parse_kernel_range ( char const *  arg  ) 

opd_parse_kernel_range - parse the kernel range values

Definition at line 56 of file opd_kernel.c.

References kernel_end, kernel_start, verbprintf, and vmisc.

Referenced by opd_24_init().

Here is the caller graph for this function:


Generated on 8 Nov 2012 for Oprofile by  doxygen 1.6.1