xref: /OK3568_Linux_fs/kernel/arch/ia64/oprofile/init.c (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun /**
2*4882a593Smuzhiyun  * @file init.c
3*4882a593Smuzhiyun  *
4*4882a593Smuzhiyun  * @remark Copyright 2002 OProfile authors
5*4882a593Smuzhiyun  * @remark Read the file COPYING
6*4882a593Smuzhiyun  *
7*4882a593Smuzhiyun  * @author John Levon <levon@movementarian.org>
8*4882a593Smuzhiyun  */
9*4882a593Smuzhiyun 
10*4882a593Smuzhiyun #include <linux/kernel.h>
11*4882a593Smuzhiyun #include <linux/oprofile.h>
12*4882a593Smuzhiyun #include <linux/init.h>
13*4882a593Smuzhiyun #include <linux/errno.h>
14*4882a593Smuzhiyun 
15*4882a593Smuzhiyun extern int perfmon_init(struct oprofile_operations *ops);
16*4882a593Smuzhiyun extern void perfmon_exit(void);
17*4882a593Smuzhiyun extern void ia64_backtrace(struct pt_regs * const regs, unsigned int depth);
18*4882a593Smuzhiyun 
oprofile_arch_init(struct oprofile_operations * ops)19*4882a593Smuzhiyun int __init oprofile_arch_init(struct oprofile_operations *ops)
20*4882a593Smuzhiyun {
21*4882a593Smuzhiyun 	ops->backtrace = ia64_backtrace;
22*4882a593Smuzhiyun 	return -ENODEV;
23*4882a593Smuzhiyun }
24*4882a593Smuzhiyun 
25*4882a593Smuzhiyun 
oprofile_arch_exit(void)26*4882a593Smuzhiyun void oprofile_arch_exit(void)
27*4882a593Smuzhiyun {
28*4882a593Smuzhiyun }
29