2005-04-16 22:20:36 +00:00
|
|
|
/**
|
|
|
|
* @file init.c
|
|
|
|
*
|
|
|
|
* @remark Copyright 2004 Oprofile Authors
|
|
|
|
* @remark Read the file COPYING
|
|
|
|
*
|
|
|
|
* @author Zwane Mwaikambo
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <linux/oprofile.h>
|
|
|
|
#include <linux/init.h>
|
|
|
|
#include <linux/errno.h>
|
|
|
|
#include "op_arm_model.h"
|
|
|
|
|
|
|
|
int __init oprofile_arch_init(struct oprofile_operations *ops)
|
|
|
|
{
|
|
|
|
int ret = -ENODEV;
|
|
|
|
|
|
|
|
#ifdef CONFIG_CPU_XSCALE
|
|
|
|
ret = pmu_init(ops, &op_xscale_spec);
|
|
|
|
#endif
|
|
|
|
|
2005-06-28 20:01:03 +00:00
|
|
|
ops->backtrace = arm_backtrace;
|
|
|
|
|
2005-04-16 22:20:36 +00:00
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
void oprofile_arch_exit(void)
|
|
|
|
{
|
|
|
|
#ifdef CONFIG_CPU_XSCALE
|
|
|
|
pmu_exit();
|
|
|
|
#endif
|
|
|
|
}
|