00001 /** 00002 * @file daemon/opd_kernel.h 00003 * Dealing with the kernel and kernel module images 00004 * 00005 * @remark Copyright 2002 OProfile authors 00006 * @remark Read the file COPYING 00007 * 00008 * @author John Levon 00009 * @author Philippe Elie 00010 * Modified by Aravind Menon for Xen 00011 * These modifications are: 00012 * Copyright (C) 2005 Hewlett-Packard Co. 00013 */ 00014 00015 #ifndef OPD_KERNEL_H 00016 #define OPD_KERNEL_H 00017 00018 #include "op_types.h" 00019 #include "op_list.h" 00020 00021 struct transient; 00022 00023 /** create the kernel image */ 00024 void opd_create_vmlinux(char const * name, char const * arg); 00025 00026 void opd_create_xen(char const * name, char const * arg); 00027 00028 /** opd_reread_module_info - parse /proc/modules for kernel modules */ 00029 void opd_reread_module_info(void); 00030 00031 /** Describes a kernel module or vmlinux itself */ 00032 struct kernel_image { 00033 char * name; 00034 vma_t start; 00035 vma_t end; 00036 struct list_head list; 00037 }; 00038 00039 /** Find a kernel_image based upon the given parameters in trans. */ 00040 struct kernel_image * 00041 find_kernel_image(struct transient const * trans); 00042 00043 #endif /* OPD_KERNEL_H */
1.6.1