• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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  * Modified by Aravind Menon for Xen
11  * These modifications are:
12  * Copyright (C) 2005 Hewlett-Packard Co.
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 
26 void opd_create_xen(char const * name, char const * arg);
27 
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 */
44