operf_kernel.cpp File Reference

#include <stdio.h>
#include <iostream>
#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:

Go to the source code of this file.

Functions

static LIST_HEAD (modules)
void operf_create_vmlinux (char const *name, char const *arg)
void operf_create_module (char const *name, vma_t start, vma_t end)
void operf_free_modules_list (void)
struct operf_kernel_imageoperf_find_kernel_image (vma_t pc)
const char * operf_get_vmlinux_name (void)

Variables

verbose vmisc
 all others not fitting in above category, not voluminous.
bool no_vmlinux
static struct operf_kernel_image vmlinux_image

Function Documentation

static LIST_HEAD ( modules   )  [static]
void operf_create_module ( char const *  name,
vma_t  start,
vma_t  end 
)

Allocate and initialise a kernel module image description.

Parameters:
name image name
start start address
end end address

Definition at line 67 of file operf_kernel.cpp.

References operf_kernel_image::end, operf_kernel_image::list, list_add(), operf_kernel_image::name, and operf_kernel_image::start.

Referenced by __handle_mmap_event().

Here is the call graph for this function:

Here is the caller graph for this function:

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

create the kernel image

Definition at line 35 of file operf_kernel.cpp.

References cverb, operf_kernel_image::end, operf_kernel_image::list, list_init(), operf_kernel_image::name, no_vmlinux, and operf_kernel_image::start.

Referenced by process_args().

Here is the call graph for this function:

Here is the caller graph for this function:

struct operf_kernel_image* operf_find_kernel_image ( vma_t  pc  )  [read]

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 99 of file operf_kernel.cpp.

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().

Here is the caller graph for this function:

void operf_free_modules_list ( void   ) 

Free resources in modules list.

Definition at line 77 of file operf_kernel.cpp.

References operf_kernel_image::list, list_del(), list_entry, list_for_each_safe, and operf_kernel_image::name.

Referenced by OP_perf_utils::op_release_resources().

Here is the call graph for this function:

Here is the caller graph for this function:

const char* operf_get_vmlinux_name ( void   ) 

Return the name field of the stored vmlinux_image.

Definition at line 119 of file operf_kernel.cpp.

References operf_kernel_image::name.

Referenced by __handle_mmap_event().

Here is the caller graph for this function:


Variable Documentation

bool no_vmlinux

Definition at line 67 of file oprofiled.c.

all others not fitting in above category, not voluminous.

Definition at line 61 of file oprofiled.c.

Definition at line 31 of file operf_kernel.cpp.


Generated on 8 Nov 2012 for Oprofile by  doxygen 1.6.1