opd_kernel.h revision cc2ee177dbb3befca43e36cfc56778b006c3d050
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
18struct transient;
19
20/** create the kernel image */
21void opd_create_vmlinux(char const * name, char const * arg);
22
23/** opd_reread_module_info - parse /proc/modules for kernel modules */
24void opd_reread_module_info(void);
25
26/** Describes a kernel module or vmlinux itself */
27struct 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. */
35struct kernel_image *
36find_kernel_image(struct transient const * trans);
37
38#endif /* OPD_KERNEL_H */
39