#include "op_types.h"
#include "op_list.h"
Go to the source code of this file.
Data Structures | |
struct | operf_kernel_image |
Functions | |
void | operf_create_vmlinux (char const *name, char const *arg) |
struct operf_kernel_image * | operf_find_kernel_image (vma_t pc) |
const char * | operf_get_vmlinux_name (void) |
void | operf_create_module (char const *name, vma_t start, vma_t end) |
void | operf_free_modules_list (void) |
Create a kernel image for a kernel module and place it on the module_list.
Allocate and initialise a kernel module image description.
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().
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().
struct operf_kernel_image* operf_find_kernel_image | ( | vma_t | pc | ) | [read] |
Find a kernel_image based upon the given pc address.
find a kernel image by PC value
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().
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().
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().