Upstream | cc2ee17 | 1970-01-12 13:46:40 +0000 | [diff] [blame^] | 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 | |
| 21 | int __init stub_init(void) |
| 22 | { |
| 23 | sysctl.cpu_type = get_cpu_type(); |
| 24 | return oprof_init(); |
| 25 | } |
| 26 | |
| 27 | void __exit stub_exit(void) |
| 28 | { |
| 29 | oprof_exit(); |
| 30 | } |
| 31 | |
| 32 | module_init(stub_init); |
| 33 | module_exit(stub_exit); |