• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /**
2  * @file op_init.c
3  * Initialisation stubs
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 // FIXME: any point in this file now we don't fiddle
13 // with -march options ??
14 
15 #undef __NO_VERSION__
16 
17 #include "oprofile.h"
18 
19 EXPORT_NO_SYMBOLS;
20 
stub_init(void)21 int __init stub_init(void)
22 {
23 	sysctl.cpu_type = get_cpu_type();
24 	return oprof_init();
25 }
26 
stub_exit(void)27 void __exit stub_exit(void)
28 {
29 	oprof_exit();
30 }
31 
32 module_init(stub_init);
33 module_exit(stub_exit);
34