init.c
来自「底层驱动开发」· C语言 代码 · 共 34 行
C
34 行
/** * @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 ops->backtrace = arm_backtrace; return ret;}void oprofile_arch_exit(void){#ifdef CONFIG_CPU_XSCALE pmu_exit();#endif}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?