2005-04-16 16:20:36 -06:00
|
|
|
/**
|
|
|
|
* 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>
|
|
|
|
|
2011-01-21 03:06:53 -07:00
|
|
|
extern int oprofile_hwsampler_init(struct oprofile_operations* ops);
|
|
|
|
extern void oprofile_hwsampler_exit(void);
|
2006-01-06 01:19:16 -07:00
|
|
|
|
|
|
|
extern void s390_backtrace(struct pt_regs * const regs, unsigned int depth);
|
|
|
|
|
2005-04-16 16:20:36 -06:00
|
|
|
int __init oprofile_arch_init(struct oprofile_operations* ops)
|
|
|
|
{
|
2006-01-06 01:19:16 -07:00
|
|
|
ops->backtrace = s390_backtrace;
|
2011-01-21 03:06:53 -07:00
|
|
|
|
|
|
|
return oprofile_hwsampler_init(ops);
|
2005-04-16 16:20:36 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
void oprofile_arch_exit(void)
|
|
|
|
{
|
2011-01-21 03:06:53 -07:00
|
|
|
oprofile_hwsampler_exit();
|
2005-04-16 16:20:36 -06:00
|
|
|
}
|