operf_kernel.cpp File Reference

#include <stdio.h>
#include <iostream>
#include <sstream>
#include <unistd.h>
#include <stdlib.h>
#include "operf_kernel.h"
#include "operf_sfile.h"
#include "op_list.h"
#include "op_libiberty.h"
#include "cverb.h"
#include "op_fileio.h"
Include dependency graph for operf_kernel.cpp:

Functions

void operf_create_vmlinux (char const *name, char const *arg)
 create the kernel image
void operf_create_module (char const *name, vma_t start, vma_t end)
 Allocate and initialise a kernel module image description.
void operf_free_modules_list (void)
 Free resources in modules list.
struct operf_kernel_imageoperf_find_kernel_image (vma_t pc)
 find a kernel image by PC value
const char * operf_get_vmlinux_name (void)
 Return the name field of the stored vmlinux_image.

Variables

verbose vmisc
 all others not fitting in above category, not voluminous.
bool no_vmlinux

Function Documentation

void operf_create_module ( char const *  name,
vma_t  start,
vma_t  end 
)

Allocate and initialise a kernel module image description.

Create a kernel image for a kernel module and place it on the module_list.

Parameters:
name image name
start start address
end end address

References operf_kernel_image::end, operf_kernel_image::list, operf_kernel_image::name, and operf_kernel_image::start.

void operf_create_vmlinux ( char const *  name,
char const *  arg 
)
struct operf_kernel_image* operf_find_kernel_image ( vma_t  pc  )  [read]

find a kernel image by PC value

Find a kernel_image based upon the given pc address.

Parameters:
trans holds PC value to look up

find the kernel image which contains this PC.

Return NULL if not found.

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

Referenced by operf_sfile_find().

void operf_free_modules_list ( void   ) 
const char* operf_get_vmlinux_name ( void   ) 

Return the name field of the stored vmlinux_image.

References operf_kernel_image::name.


Variable Documentation

bool no_vmlinux

all others not fitting in above category, not voluminous.


Generated on 29 Jul 2013 for oprofile by  doxygen 1.6.1