Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | /** |
| 2 | * arch/s390/oprofile/init.c |
| 3 | * |
| 4 | * S390 Version |
| 5 | * Copyright (C) 2003 IBM Deutschland Entwicklung GmbH, IBM Corporation |
| 6 | * Author(s): Thomas Spatzier (tspat@de.ibm.com) |
| 7 | * |
| 8 | * @remark Copyright 2002 OProfile authors |
| 9 | */ |
| 10 | |
| 11 | #include <linux/oprofile.h> |
| 12 | #include <linux/init.h> |
| 13 | #include <linux/errno.h> |
| 14 | |
Heinz Graalfs | 997dbb4 | 2011-01-21 10:06:53 +0000 | [diff] [blame] | 15 | extern int oprofile_hwsampler_init(struct oprofile_operations* ops); |
| 16 | extern void oprofile_hwsampler_exit(void); |
Andreas Krebbel | d0f4c16 | 2006-01-06 00:19:16 -0800 | [diff] [blame] | 17 | |
| 18 | extern void s390_backtrace(struct pt_regs * const regs, unsigned int depth); |
| 19 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 20 | int __init oprofile_arch_init(struct oprofile_operations* ops) |
| 21 | { |
Andreas Krebbel | d0f4c16 | 2006-01-06 00:19:16 -0800 | [diff] [blame] | 22 | ops->backtrace = s390_backtrace; |
Heinz Graalfs | 997dbb4 | 2011-01-21 10:06:53 +0000 | [diff] [blame] | 23 | |
| 24 | return oprofile_hwsampler_init(ops); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 25 | } |
| 26 | |
| 27 | void oprofile_arch_exit(void) |
| 28 | { |
Heinz Graalfs | 997dbb4 | 2011-01-21 10:06:53 +0000 | [diff] [blame] | 29 | oprofile_hwsampler_exit(); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 30 | } |