opd_kernel.c File Reference

Dealing with the kernel and kernel module samples. More...

#include "opd_kernel.h"
#include "opd_sfile.h"
#include "opd_trans.h"
#include "opd_printf.h"
#include "opd_stats.h"
#include "oprofiled.h"
#include "op_fileio.h"
#include "op_config.h"
#include "op_libiberty.h"
#include <string.h>
#include <stdlib.h>
#include <errno.h>
#include <assert.h>
Include dependency graph for opd_kernel.c:

Functions

void opd_create_vmlinux (char const *name, char const *arg)
 create the kernel image
void opd_create_xen (char const *name, char const *arg)
void opd_reread_module_info (void)
 opd_reread_module_info - parse /proc/modules for kernel modules
struct kernel_imagefind_kernel_image (struct transient const *trans)
 find a kernel image by PC value

Detailed Description

Dealing with the kernel and kernel module samples.

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.

Function Documentation

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

find a kernel image by PC value

Find a kernel_image based upon the given parameters in trans.

Parameters:
trans holds PC value to look up

find the kernel image which contains this PC.

Return NULL if not found.

References kernel_image::end, kernel_image::list, list_entry, list_for_each, no_vmlinux, and kernel_image::start.

Referenced by sfile_find().

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   ) 

opd_reread_module_info - parse /proc/modules for kernel modules

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


Generated on 29 Jul 2013 for oprofile by  doxygen 1.6.1