[prev in list] [next in list] [prev in thread] [next in thread]
List: oprofile-commits
Subject: [oprof-cvs] CVS: oprofile/libop op_cpu_type.c,1.25,1.26 op_cpu_type.h,1.18,1.19 op_events.c,1.53,1.5
From: Zwane Mwaikambo <zwane () users ! sourceforge ! net>
Date: 2004-04-06 4:34:27
Message-ID: E1BAiI7-0006VP-64 () sc8-pr-cvs1 ! sourceforge ! net
[Download RAW message or body]
Update of /cvsroot/oprofile/oprofile/libop
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24827/libop
Modified Files:
op_cpu_type.c op_cpu_type.h op_events.c
Log Message:
Add ARM/xscale PMU support
Index: op_cpu_type.c
===================================================================
RCS file: /cvsroot/oprofile/oprofile/libop/op_cpu_type.c,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -p -d -r1.25 -r1.26
--- op_cpu_type.c 11 Feb 2004 02:24:37 -0000 1.25
+++ op_cpu_type.c 6 Apr 2004 04:34:24 -0000 1.26
@@ -41,6 +41,8 @@ static struct cpu_descr const cpu_descrs
{ "Alpha EV6", "alpha/ev6", CPU_AXP_EV6, 2 },
{ "Alpha EV67", "alpha/ev67", CPU_AXP_EV67, 20 },
{ "Pentium M (P6 core)", "i386/p6_mobile", CPU_P6_MOBILE, 2 },
+ { "ARM/XScale PMU1", "arm/xscale1", CPU_ARM_XSCALE1, 3 },
+ { "ARM/XScale PMU2", "arm/xscale2", CPU_ARM_XSCALE2, 5 },
};
static size_t const nr_cpu_descrs = sizeof(cpu_descrs) / sizeof(struct cpu_descr);
Index: op_cpu_type.h
===================================================================
RCS file: /cvsroot/oprofile/oprofile/libop/op_cpu_type.h,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -p -d -r1.18 -r1.19
--- op_cpu_type.h 11 Feb 2004 02:24:38 -0000 1.18
+++ op_cpu_type.h 6 Apr 2004 04:34:24 -0000 1.19
@@ -37,6 +37,8 @@ typedef enum {
CPU_AXP_EV6, /**< Alpha EV6 family */
CPU_AXP_EV67, /**< Alpha EV67 family */
CPU_P6_MOBILE, /**< Pentium M series */
+ CPU_ARM_XSCALE1, /**< ARM XScale 1 */
+ CPU_ARM_XSCALE2, /**< ARM XScale 2 */
MAX_CPU_TYPE
} op_cpu;
Index: op_events.c
===================================================================
RCS file: /cvsroot/oprofile/oprofile/libop/op_events.c,v
retrieving revision 1.53
retrieving revision 1.54
diff -u -p -d -r1.53 -r1.54
--- op_events.c 15 Feb 2004 03:01:31 -0000 1.53
+++ op_events.c 6 Apr 2004 04:34:24 -0000 1.54
@@ -645,6 +645,12 @@ void op_default_event(op_cpu cpu_type, s
descr->name = "CYCLES";
break;
+ // we could possibly use the CCNT
+ case CPU_ARM_XSCALE1:
+ case CPU_ARM_XSCALE2:
+ descr->name = "CPU_CYCLES";
+ break;
+
// don't use default, if someone add a cpu he wants a compiler
// warning if he forgets to handle it here.
case CPU_TIMER_INT:
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Oprofile-commits mailing list
Oprofile-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oprofile-commits
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic