2
* @file daemon/liblegacy/opd_kernel.h
3
* Dealing with the kernel and kernel module samples
5
* @remark Copyright 2002 OProfile authors
6
* @remark Read the file COPYING
9
* @author Philippe Elie
20
* opd_init_kernel_image - initialise the kernel image
22
void opd_init_kernel_image(void);
25
* opd_parse_kernel_range - parse the kernel range values
27
void opd_parse_kernel_range(char const * arg);
30
* opd_clear_module_info - clear kernel module information
32
* Clear and free all kernel module information and reset
35
void opd_clear_module_info(void);
38
* opd_handle_kernel_sample - process a kernel sample
39
* @param eip EIP value of sample
40
* @param counter counter number
42
* Handle a sample in kernel address space or in a module. The sample is
43
* output to the relevant image file.
45
void opd_handle_kernel_sample(unsigned long eip, u32 counter);
48
* opd_eip_is_kernel - is the sample from kernel/module space
49
* @param eip EIP value
51
* Returns %1 if eip is in the address space starting at
52
* kernel_start, %0 otherwise.
54
int opd_eip_is_kernel(unsigned long eip);
57
* opd_add_kernel_map - add a module or kernel maps to a proc struct
59
* @param proc owning proc of the new mapping
60
* @param eip eip inside the new mapping
62
* We assume than eip >= kernel_start
65
void opd_add_kernel_map(struct opd_proc * proc, unsigned long eip);
67
#endif /* OPD_KERNEL_H */