CVSROOT: /home/cvs
Module name: linux
Changes by: ralf@ftp.linux-mips.org 05/01/17 17:58:00
Modified files:
arch/mips/oprofile: common.c
Log message:
Hooks to support profiling for MIPS32 / MIPS64 processors, for the
moment only for the 24K.
diff -urN linux/arch/mips/oprofile/common.c linux/arch/mips/oprofile/common.c
--- linux/arch/mips/oprofile/common.c 2005/01/14 00:58:31 1.2
+++ linux/arch/mips/oprofile/common.c 2005/01/17 17:58:00 1.3
@@ -13,6 +13,7 @@
#include "op_impl.h"
+extern struct op_mips_model op_model_mipsxx __attribute__((weak));
extern struct op_mips_model op_model_rm9000 __attribute__((weak));
static struct op_mips_model *model;
@@ -72,6 +73,10 @@
struct op_mips_model *lmodel = NULL;
switch (current_cpu_data.cputype) {
+ case CPU_24K:
+ lmodel = &op_model_mipsxx;
+ break;
+
case CPU_RM9000:
lmodel = &op_model_rm9000;
break;
|