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 |
Ben Cheng | 2b16b5f | 2008-10-23 16:07:43 -0700 | [diff] [blame^] | 10 | * Modified by Aravind Menon for Xen |
| 11 | * These modifications are: |
| 12 | * Copyright (C) 2005 Hewlett-Packard Co. |
Upstream | cc2ee17 | 1970-01-12 13:46:40 +0000 | [diff] [blame] | 13 | */ |
| 14 | |
| 15 | #ifndef OPD_KERNEL_H |
| 16 | #define OPD_KERNEL_H |
| 17 | |
| 18 | #include "op_types.h" |
| 19 | #include "op_list.h" |
| 20 | |
| 21 | struct transient; |
| 22 | |
| 23 | /** create the kernel image */ |
| 24 | void opd_create_vmlinux(char const * name, char const * arg); |
| 25 | |
Ben Cheng | 2b16b5f | 2008-10-23 16:07:43 -0700 | [diff] [blame^] | 26 | void opd_create_xen(char const * name, char const * arg); |
| 27 | |
Upstream | cc2ee17 | 1970-01-12 13:46:40 +0000 | [diff] [blame] | 28 | /** opd_reread_module_info - parse /proc/modules for kernel modules */ |
| 29 | void opd_reread_module_info(void); |
| 30 | |
| 31 | /** Describes a kernel module or vmlinux itself */ |
| 32 | struct kernel_image { |
| 33 | char * name; |
| 34 | vma_t start; |
| 35 | vma_t end; |
| 36 | struct list_head list; |
| 37 | }; |
| 38 | |
| 39 | /** Find a kernel_image based upon the given parameters in trans. */ |
| 40 | struct kernel_image * |
| 41 | find_kernel_image(struct transient const * trans); |
| 42 | |
| 43 | #endif /* OPD_KERNEL_H */ |