init.c 722 字节
Newer Older
L
Linus Torvalds 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13
/**
 * arch/s390/oprofile/init.c
 *
 * S390 Version
 *   Copyright (C) 2003 IBM Deutschland Entwicklung GmbH, IBM Corporation
 *   Author(s): Thomas Spatzier (tspat@de.ibm.com)
 *
 * @remark Copyright 2002 OProfile authors
 */

#include <linux/oprofile.h>
#include <linux/init.h>
#include <linux/errno.h>
14
#include <linux/fs.h>
L
Linus Torvalds 已提交
15

16 17
extern int oprofile_hwsampler_init(struct oprofile_operations* ops);
extern void oprofile_hwsampler_exit(void);
18 19 20

extern void s390_backtrace(struct pt_regs * const regs, unsigned int depth);

L
Linus Torvalds 已提交
21 22
int __init oprofile_arch_init(struct oprofile_operations* ops)
{
23
	ops->backtrace = s390_backtrace;
24 25

	return oprofile_hwsampler_init(ops);
L
Linus Torvalds 已提交
26 27 28 29
}

void oprofile_arch_exit(void)
{
30
	oprofile_hwsampler_exit();
L
Linus Torvalds 已提交
31
}