diff -urNp -x Makefile.in -x aclocal.m4 -x configure -x oprofile.1 oprofile-0.9.1/debian/changelog oprofile-0.9.1-patched/debian/changelog --- oprofile-0.9.1/debian/changelog 2006-01-02 14:14:19.000000000 +0900 +++ oprofile-0.9.1-patched/debian/changelog 2005-12-29 14:24:27.000000000 +0900 @@ -1,3 +1,9 @@ +oprofile (0.9.1-7.1) UNRELEASED; urgency=low + + * oprofile support for ppc 7447A chip + + -- Junichi Uekawa Thu, 29 Dec 2005 14:24:27 +0900 + oprofile (0.9.1-7) unstable; urgency=low * Convert oprofile-source so it uses automake1.9 (instead of 1.7) diff -urNp -x Makefile.in -x aclocal.m4 -x configure -x oprofile.1 oprofile-0.9.1/events/Makefile.am oprofile-0.9.1-patched/events/Makefile.am --- oprofile-0.9.1/events/Makefile.am 2005-07-12 05:46:23.000000000 +0900 +++ oprofile-0.9.1-patched/events/Makefile.am 2005-12-29 14:55:16.000000000 +0900 @@ -29,7 +29,8 @@ event_files = \ mips/r12000/events mips/r12000/unit_masks \ mips/vr5432/events mips/vr5432/unit_masks \ mips/vr5500/events mips/vr5500/unit_masks \ - ppc/e500/events ppc/e500/unit_masks + ppc/e500/events ppc/e500/unit_masks \ + ppc/7447A/events ppc/7447A/unit_masks install-data-local: for i in ${event_files} ; do \ diff -urNp -x Makefile.in -x aclocal.m4 -x configure -x oprofile.1 oprofile-0.9.1/events/ppc/7447A/events oprofile-0.9.1-patched/events/ppc/7447A/events --- oprofile-0.9.1/events/ppc/7447A/events 1970-01-01 09:00:00.000000000 +0900 +++ oprofile-0.9.1-patched/events/ppc/7447A/events 2005-12-29 14:34:19.000000000 +0900 @@ -0,0 +1,4 @@ +# MPC7450: 7447A events +# a hacked-up quickie. +event:0x1 counters:0,1,2,3,4,5 um:zero minimum:3000 name:CYCLES : Counts every processor cycle +event:0x2 counters:0,1,2,3,4,5 um:zero minimum:3000 name:COMPLETED_INSNS : Completed Instructions (0, 1, or 2 per cycle) diff -urNp -x Makefile.in -x aclocal.m4 -x configure -x oprofile.1 oprofile-0.9.1/events/ppc/7447A/unit_masks oprofile-0.9.1-patched/events/ppc/7447A/unit_masks --- oprofile-0.9.1/events/ppc/7447A/unit_masks 1970-01-01 09:00:00.000000000 +0900 +++ oprofile-0.9.1-patched/events/ppc/7447A/unit_masks 2005-12-29 14:34:44.000000000 +0900 @@ -0,0 +1,4 @@ +# 7450 possible unit masks; what's this for? is this functional? +# +name:zero type:mandatory default:0x0 + 0x0 No unit mask diff -urNp -x Makefile.in -x aclocal.m4 -x configure -x oprofile.1 oprofile-0.9.1/libop/op_cpu_type.c oprofile-0.9.1-patched/libop/op_cpu_type.c --- oprofile-0.9.1/libop/op_cpu_type.c 2005-07-12 05:46:23.000000000 +0900 +++ oprofile-0.9.1-patched/libop/op_cpu_type.c 2005-12-29 14:42:08.000000000 +0900 @@ -55,6 +55,7 @@ static struct cpu_descr const cpu_descrs { "NEC VR5432", "mips/vr5432", CPU_MIPS_VR5432, 2 }, { "NEC VR5500", "mips/vr5500", CPU_MIPS_VR5500, 2 }, { "e500", "ppc/e500", CPU_PPC_E500, 4 }, + { "ppc 7447A", "ppc/7447A", CPU_PPC_7447A, 6 }, }; static size_t const nr_cpu_descrs = sizeof(cpu_descrs) / sizeof(struct cpu_descr); diff -urNp -x Makefile.in -x aclocal.m4 -x configure -x oprofile.1 oprofile-0.9.1/libop/op_cpu_type.h oprofile-0.9.1-patched/libop/op_cpu_type.h --- oprofile-0.9.1/libop/op_cpu_type.h 2005-07-12 05:46:23.000000000 +0900 +++ oprofile-0.9.1-patched/libop/op_cpu_type.h 2005-12-29 14:42:05.000000000 +0900 @@ -51,6 +51,7 @@ typedef enum { CPU_MIPS_VR5432, /**< NEC VR5432 */ CPU_MIPS_VR5500, /**< MIPS VR5500, VR5532 and VR7701 */ CPU_PPC_E500, /**< e500 */ + CPU_PPC_7447A, /**< 7447A */ MAX_CPU_TYPE } op_cpu; diff -urNp -x Makefile.in -x aclocal.m4 -x configure -x oprofile.1 oprofile-0.9.1/libop/op_events.c oprofile-0.9.1-patched/libop/op_events.c --- oprofile-0.9.1/libop/op_events.c 2005-07-12 05:46:23.000000000 +0900 +++ oprofile-0.9.1-patched/libop/op_events.c 2005-12-29 14:47:03.000000000 +0900 @@ -816,6 +816,10 @@ void op_default_event(op_cpu cpu_type, s case CPU_PPC_E500: descr->name = "CPU_CLK"; break; + + case CPU_PPC_7447A: + descr->name = "CYCLES"; + break; // don't use default, if someone add a cpu he wants a compiler // warning if he forgets to handle it here.