Upstream | cc2ee17 | 1970-01-12 13:46:40 +0000 | [diff] [blame^] | 1 | /** |
| 2 | * @file daemon/opd_kernel.h |
| 3 | * Dealing with the kernel and kernel module images |
| 4 | * |
| 5 | * @remark Copyright 2002 OProfile authors |
| 6 | * @remark Read the file COPYING |
| 7 | * |
| 8 | * @author John Levon |
| 9 | * @author Philippe Elie |
| 10 | */ |
| 11 | |
| 12 | #ifndef OPD_KERNEL_H |
| 13 | #define OPD_KERNEL_H |
| 14 | |
| 15 | #include "op_types.h" |
| 16 | #include "op_list.h" |
| 17 | |
| 18 | struct transient; |
| 19 | |
| 20 | /** create the kernel image */ |
| 21 | void opd_create_vmlinux(char const * name, char const * arg); |
| 22 | |
| 23 | /** opd_reread_module_info - parse /proc/modules for kernel modules */ |
| 24 | void opd_reread_module_info(void); |
| 25 | |
| 26 | /** Describes a kernel module or vmlinux itself */ |
| 27 | struct kernel_image { |
| 28 | char * name; |
| 29 | vma_t start; |
| 30 | vma_t end; |
| 31 | struct list_head list; |
| 32 | }; |
| 33 | |
| 34 | /** Find a kernel_image based upon the given parameters in trans. */ |
| 35 | struct kernel_image * |
| 36 | find_kernel_image(struct transient const * trans); |
| 37 | |
| 38 | #endif /* OPD_KERNEL_H */ |