opd_kernel.h File Reference

#include "op_types.h"
#include "op_list.h"
Include dependency graph for opd_kernel.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  kernel_image

Functions

void opd_create_vmlinux (char const *name, char const *arg)
void opd_create_xen (char const *name, char const *arg)
void opd_reread_module_info (void)
struct kernel_imagefind_kernel_image (struct transient const *trans)

Detailed Description

Dealing with the kernel and kernel module images

Remarks:
Copyright 2002 OProfile authors
Read the file COPYING
Author:
John Levon
Philippe Elie Modified by Aravind Menon for Xen These modifications are: Copyright (C) 2005 Hewlett-Packard Co.

Definition in file opd_kernel.h.


Function Documentation

struct kernel_image* find_kernel_image ( struct transient const *  trans  )  [read]

Find a kernel_image based upon the given parameters in trans.

find a kernel image by PC value

Parameters:
trans holds PC value to look up

find the kernel image which contains this PC.

Return NULL if not found.

Definition at line 208 of file opd_kernel.c.

References kernel_image::end, kernel_image::list, list_entry, list_for_each, no_vmlinux, operf_transient::pc, kernel_image::start, trans, vmlinux_image, and xen_image.

Referenced by opd_put_ibs_sample(), and sfile_find().

Here is the caller graph for this function:

void opd_create_vmlinux ( char const *  name,
char const *  arg 
)

create the kernel image

Definition at line 37 of file opd_kernel.c.

References kernel_image::end, kernel_image::list, list_init(), kernel_image::name, no_vmlinux, kernel_image::start, verbprintf, vmisc, and vmlinux_image.

Referenced by opd_26_init().

Here is the call graph for this function:

Here is the caller graph for this function:

void opd_create_xen ( char const *  name,
char const *  arg 
)

Definition at line 62 of file opd_kernel.c.

References kernel_image::end, kernel_image::list, list_init(), kernel_image::name, no_xen, kernel_image::start, verbprintf, vmisc, and xen_image.

Referenced by opd_26_init().

Here is the call graph for this function:

Here is the caller graph for this function:

void opd_reread_module_info ( void   ) 

opd_reread_module_info - parse /proc/modules for kernel modules

Definition at line 139 of file opd_kernel.c.

References kernel_image::end, kernel_image::name, no_vmlinux, op_close_file(), op_get_line(), op_try_open_file(), opd_clear_modules(), opd_create_module(), kernel_image::start, verbprintf, and vmodule.

Referenced by code_module_loaded(), and opd_26_init().

Here is the call graph for this function:

Here is the caller graph for this function:


Generated on 8 Nov 2012 for Oprofile by  doxygen 1.6.1