Return-Path: Received: from ch1outboundpool.messaging.microsoft.com (ch1ehsobe005.messaging.microsoft.com [216.32.181.185]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 0B42AE01439 for ; Thu, 29 Nov 2012 11:15:58 -0800 (PST) Received: from mail20-ch1-R.bigfish.com (10.43.68.228) by CH1EHSOBE020.bigfish.com (10.43.70.77) with Microsoft SMTP Server id 14.1.225.23; Thu, 29 Nov 2012 19:15:57 +0000 Received: from mail20-ch1 (localhost [127.0.0.1]) by mail20-ch1-R.bigfish.com (Postfix) with ESMTP id 9EB232000AC for ; Thu, 29 Nov 2012 19:15:57 +0000 (UTC) X-Forefront-Antispam-Report: CIP:70.37.183.190; KIP:(null); UIP:(null); IPV:NLI; H:mail.freescale.net; RD:none; EFVD:NLI X-SpamScore: 1 X-BigFish: VS1(zzd6eah936eId799hzz1de0h1202h1d1ah1d2ah1082kzz8275ch177df4h17326ah8275bh2ba5Iz2dh2a8h668h839hd24he5bhf0ah1288h12a5h12a9h12bdh12e5h137ah139eh13b6h1441h1504h1537h162dh1631h1155h) Received: from mail20-ch1 (localhost.localdomain [127.0.0.1]) by mail20-ch1 (MessageSwitch) id 1354216554789872_14684; Thu, 29 Nov 2012 19:15:54 +0000 (UTC) Received: from CH1EHSMHS020.bigfish.com (snatpool2.int.messaging.microsoft.com [10.43.68.232]) by mail20-ch1.bigfish.com (Postfix) with ESMTP id BDE33440127 for ; Thu, 29 Nov 2012 19:15:54 +0000 (UTC) Received: from mail.freescale.net (70.37.183.190) by CH1EHSMHS020.bigfish.com (10.43.70.20) with Microsoft SMTP Server (TLS) id 14.1.225.23; Thu, 29 Nov 2012 19:15:54 +0000 Received: from tx30smr01.am.freescale.net (10.81.153.31) by 039-SN1MMR1-004.039d.mgd.msft.net (10.84.1.14) with Microsoft SMTP Server (TLS) id 14.2.318.3; Thu, 29 Nov 2012 19:15:53 +0000 Received: from right.am.freescale.net (right.am.freescale.net [10.82.176.228]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id qATJFpuA013610 for ; Thu, 29 Nov 2012 12:15:53 -0700 From: Matthew McClintock To: Date: Thu, 29 Nov 2012 13:15:32 -0600 Message-ID: <1354216551-13932-9-git-send-email-msm@freescale.com> X-Mailer: git-send-email 1.7.9.7 In-Reply-To: <1354216551-13932-1-git-send-email-msm@freescale.com> References: <1354216551-13932-1-git-send-email-msm@freescale.com> MIME-Version: 1.0 X-OriginatorOrg: freescale.com Subject: [PATCH 08/27] oprofile: add 0.9.6 X-BeenThere: meta-freescale@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Usage and development list for the meta-fsl-* layers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Nov 2012 19:15:58 -0000 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable From: Zhenhua Luo oprofile-0.9.7 doesn't support e500mc, the patches of e500mc support are only available for oprofile-0.9.6 Signed-off-by: Zhenhua Luo --- ...ile-0.9.6-add-e500mc-support-in-op_events.patch | 17 ++ .../oprofile/oprofile-0.9.6-e500mc-support-2.patch | 37 +++ .../oprofile/oprofile-0.9.6-e500mc-support.patch | 171 ++++++++++++++ .../oprofile/oprofile-no-query-modules.patch | 29 +++ recipes-kernel/oprofile/oprofile/opstart.patch | 237 ++++++++++++++++= ++++ recipes-kernel/oprofile/oprofile_0.9.6.bb | 35 +++ 6 files changed, 526 insertions(+) create mode 100644 recipes-kernel/oprofile/oprofile/oprofile-0.9.6-add-e50= 0mc-support-in-op_events.patch create mode 100644 recipes-kernel/oprofile/oprofile/oprofile-0.9.6-e500mc-= support-2.patch create mode 100644 recipes-kernel/oprofile/oprofile/oprofile-0.9.6-e500mc-= support.patch create mode 100644 recipes-kernel/oprofile/oprofile/oprofile-no-query-modu= les.patch create mode 100644 recipes-kernel/oprofile/oprofile/opstart.patch create mode 100644 recipes-kernel/oprofile/oprofile_0.9.6.bb diff --git a/recipes-kernel/oprofile/oprofile/oprofile-0.9.6-add-e500mc-sup= port-in-op_events.patch b/recipes-kernel/oprofile/oprofile/oprofile-0.9.6-a= dd-e500mc-support-in-op_events.patch new file mode 100644 index 0000000..2409a63 --- /dev/null +++ b/recipes-kernel/oprofile/oprofile/oprofile-0.9.6-add-e500mc-support-in= -op_events.patch @@ -0,0 +1,17 @@ +Upstream-Status: Pending + +Add e500mc support in libop/op_events.c + +Signed-off-by: Zhenhua Luo +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D +diff -urN oprofile-0.9.6/libop/op_events.c oprofile-0.9.6-new/libop/op_eve= nts.c +--- oprofile-0.9.6/libop/op_events.c 2009-11-24 23:25:17.000000000 +0800 ++++ oprofile-0.9.6-new/libop/op_events.c 2010-08-19 11:13:15.000000000 +08= 00 +@@ -1062,6 +1062,7 @@ +=20 + case CPU_PPC_E500: + case CPU_PPC_E500_2: ++ case CPU_PPC_E500MC: + case CPU_PPC_E300: + descr->name =3D "CPU_CLK"; + break; diff --git a/recipes-kernel/oprofile/oprofile/oprofile-0.9.6-e500mc-support= -2.patch b/recipes-kernel/oprofile/oprofile/oprofile-0.9.6-e500mc-support-2= .patch new file mode 100644 index 0000000..297b954 --- /dev/null +++ b/recipes-kernel/oprofile/oprofile/oprofile-0.9.6-e500mc-support-2.patc= h @@ -0,0 +1,37 @@ +Upstream-Status: Pending + +Add e500mc event in oprofile Makefile to add e500mc support + +Signed-off-by: Luo Zhenhua +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D +diff -urN oprofile-0.9.6-old/events/Makefile.am oprofile-0.9.6/events/Make= file.am +--- oprofile-0.9.6-old/events/Makefile.am 2009-11-24 23:25:18.000000000 +0= 800 ++++ oprofile-0.9.6/events/Makefile.am 2010-08-13 15:23:24.000000000 +0800 +@@ -55,6 +55,7 @@ + mips/vr5500/events mips/vr5500/unit_masks \ + ppc/7450/events ppc/7450/unit_masks \ + ppc/e500/events ppc/e500/unit_masks \ ++ ppc/e500mc/events ppc/e500mc/unit_masks \ + ppc/e500v2/events ppc/e500v2/unit_masks \ + ppc/e300/events ppc/e300/unit_masks +=20 +diff -urN oprofile-0.9.6-old/events/Makefile.in oprofile-0.9.6/events/Make= file.in +--- oprofile-0.9.6-old/events/Makefile.in 2009-11-24 23:25:48.000000000 +0= 800 ++++ oprofile-0.9.6/events/Makefile.in 2010-08-13 15:23:03.000000000 +0800 +@@ -258,6 +258,7 @@ + mips/vr5500/events mips/vr5500/unit_masks \ + ppc/7450/events ppc/7450/unit_masks \ + ppc/e500/events ppc/e500/unit_masks \ ++ ppc/e500mc/events ppc/e500mc/unit_masks \ + ppc/e500v2/events ppc/e500v2/unit_masks \ + ppc/e300/events ppc/e300/unit_masks +=20 +@@ -312,7 +313,7 @@ +=20 +=20 + distdir: $(DISTFILES) +- $(mkdir_p) $(distdir)/alpha/ev4 $(distdir)/alpha/ev5 $(distdir)/alpha/ev= 6 $(distdir)/alpha/ev67 $(distdir)/alpha/pca56 $(distdir)/arm/armv6 $(distd= ir)/arm/armv7 $(distdir)/arm/mpcore $(distdir)/arm/xscale1 $(distdir)/arm/x= scale2 $(distdir)/avr32 $(distdir)/i386/arch_perfmon $(distdir)/i386/athlon= $(distdir)/i386/atom $(distdir)/i386/core $(distdir)/i386/core_2 $(distdir= )/i386/core_i7 $(distdir)/i386/nehalem $(distdir)/i386/p4 $(distdir)/i386/p= 4-ht $(distdir)/i386/p6_mobile $(distdir)/i386/pii $(distdir)/i386/piii $(d= istdir)/i386/ppro $(distdir)/ia64/ia64 $(distdir)/ia64/itanium $(distdir)/i= a64/itanium2 $(distdir)/mips/20K $(distdir)/mips/24K $(distdir)/mips/25K $(= distdir)/mips/34K $(distdir)/mips/5K $(distdir)/mips/r10000 $(distdir)/mips= /r12000 $(distdir)/mips/rm7000 $(distdir)/mips/rm9000 $(distdir)/mips/sb1 $= (distdir)/mips/vr5432 $(distdir)/mips/vr5500 $(distdir)/ppc/7450 $(distdir)= /ppc/e300 $(distdir)/ppc/e500 $(distdir)/ppc/e500v2 $(distdir)/ppc64/970 $(= distdir)/ppc64/970MP $(distdir)/ppc64/cell-be $(distdir)/ppc64/ibm-compat-v= 1 $(distdir)/ppc64/pa6t $(distdir)/ppc64/power4 $(distdir)/ppc64/power5 $(d= istdir)/ppc64/power5+ $(distdir)/ppc64/power5++ $(distdir)/ppc64/power6 $(d= istdir)/ppc64/power7 $(distdir)/rtc $(distdir)/x86-64/family10 $(distdir)/x= 86-64/family11h $(distdir)/x86-64/hammer ++ $(mkdir_p) $(distdir)/alpha/ev4 $(distdir)/alpha/ev5 $(distdir)/alpha/ev= 6 $(distdir)/alpha/ev67 $(distdir)/alpha/pca56 $(distdir)/arm/armv6 $(distd= ir)/arm/armv7 $(distdir)/arm/mpcore $(distdir)/arm/xscale1 $(distdir)/arm/x= scale2 $(distdir)/avr32 $(distdir)/i386/arch_perfmon $(distdir)/i386/athlon= $(distdir)/i386/atom $(distdir)/i386/core $(distdir)/i386/core_2 $(distdir= )/i386/core_i7 $(distdir)/i386/nehalem $(distdir)/i386/p4 $(distdir)/i386/p= 4-ht $(distdir)/i386/p6_mobile $(distdir)/i386/pii $(distdir)/i386/piii $(d= istdir)/i386/ppro $(distdir)/ia64/ia64 $(distdir)/ia64/itanium $(distdir)/i= a64/itanium2 $(distdir)/mips/20K $(distdir)/mips/24K $(distdir)/mips/25K $(= distdir)/mips/34K $(distdir)/mips/5K $(distdir)/mips/r10000 $(distdir)/mips= /r12000 $(distdir)/mips/rm7000 $(distdir)/mips/rm9000 $(distdir)/mips/sb1 $= (distdir)/mips/vr5432 $(distdir)/mips/vr5500 $(distdir)/ppc/7450 $(distdir)= /ppc/e300 $(distdir)/ppc/e500 $(distdir)/ppc/e500mc $(distdir)/ppc/e500v2 $= (distdir)/ppc64/970 $(distdir)/ppc64/970MP $(distdir)/ppc64/cell-be $(distd= ir)/ppc64/ibm-compat-v1 $(distdir)/ppc64/pa6t $(distdir)/ppc64/power4 $(dis= tdir)/ppc64/power5 $(distdir)/ppc64/power5+ $(distdir)/ppc64/power5++ $(dis= tdir)/ppc64/power6 $(distdir)/ppc64/power7 $(distdir)/rtc $(distdir)/x86-64= /family10 $(distdir)/x86-64/family11h $(distdir)/x86-64/hammer + @srcdirstrip=3D`echo "$(srcdir)" | sed 's|.|.|g'`; \ + topsrcdirstrip=3D`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ + list=3D'$(DISTFILES)'; for file in $$list; do \ diff --git a/recipes-kernel/oprofile/oprofile/oprofile-0.9.6-e500mc-support= .patch b/recipes-kernel/oprofile/oprofile/oprofile-0.9.6-e500mc-support.pat= ch new file mode 100644 index 0000000..022b5bd --- /dev/null +++ b/recipes-kernel/oprofile/oprofile/oprofile-0.9.6-e500mc-support.patch @@ -0,0 +1,171 @@ +Upstream-Status: Pending + +Add e500mc event in oprofile to add e500mc support + +Signed-off-by: George Stephen +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D +diff -urN oprofile-0.9.6/events/ppc/e500mc/events oprofile-0.9.6-new/event= s/ppc/e500mc/events +--- oprofile-0.9.6/events/ppc/e500mc/events 1970-01-01 08:00:00.000000000 = +0800 ++++ oprofile-0.9.6-new/events/ppc/e500mc/events 2010-08-16 17:57:49.000000= 000 +0800 +@@ -0,0 +1,120 @@ ++# e500mc Events ++#=20 ++# Copyright (C) 2010 Freescale Semiconductor, Inc. ++# ++event:0x1 counters:0,1,2,3 um:zero minimum:100 name:CPU_CLK : Cycles ++event:0x2 counters:0,1,2,3 um:zero minimum:500 name:COMPLETED_INSNS : Com= pleted Instructions (0, 1, or 2 per cycle) ++event:0x3 counters:0,1,2,3 um:zero minimum:500 name:COMPLETED_OPS : Compl= eted Micro-ops (counts 2 for load/store w/update) ++event:0x4 counters:0,1,2,3 um:zero minimum:500 name:INSTRUCTION_FETCHES := Instruction fetches ++event:0x5 counters:0,1,2,3 um:zero minimum:500 name:DECODED_OPS : Micro-o= ps decoded ++event:0x8 counters:0,1,2,3 um:zero minimum:500 name:COMPLETED_BRANCHES : = Branch Instructions completed ++event:0x9 counters:0,1,2,3 um:zero minimum:500 name:COMPLETED_LOAD_OPS : = Load micro-ops completed ++event:0xa counters:0,1,2,3 um:zero minimum:500 name:COMPLETED_STORE_OPS := Store micro-ops completed ++event:0xb counters:0,1,2,3 um:zero minimum:500 name:COMPLETION_REDIRECTS = : Number of completion buffer redirects ++event:0xc counters:0,1,2,3 um:zero minimum:500 name:BRANCHES_FINISHED : B= ranches finished ++event:0xd counters:0,1,2,3 um:zero minimum:500 name:TAKEN_BRANCHES_FINISH= ED : Taken branches finished ++event:0xe counters:0,1,2,3 um:zero minimum:500 name:BIFFED_BRANCHES_FINIS= HED : Biffed branches finished ++event:0xf counters:0,1,2,3 um:zero minimum:500 name:BRANCHES_MISPREDICTED= : Branch instructions mispredicted due to direction, target, or IAB predic= tion ++event:0x10 counters:0,1,2,3 um:zero minimum:500 name:BRANCHES_MISPREDICTE= D_DIRECTION : Branches mispredicted due to direction prediction ++event:0x11 counters:0,1,2,3 um:zero minimum:500 name:BTB_HITS : Branches = that hit in the BTB, or missed but are not taken ++event:0x12 counters:0,1,2,3 um:zero minimum:500 name:DECODE_STALLED : Cyc= les the instruction buffer was not empty, but 0 instructions decoded ++event:0x13 counters:0,1,2,3 um:zero minimum:500 name:ISSUE_STALLED : Cycl= es the issue buffer is not empty but 0 instructions issued=20 ++event:0x14 counters:0,1,2,3 um:zero minimum:500 name:BRANCH_ISSUE_STALLED= : Cycles the branch buffer is not empty but 0 instructions issued=20 ++event:0x15 counters:0,1,2,3 um:zero minimum:500 name:SRS0_SCHEDULE_STALLE= D : Cycles SRS0 is not empty but 0 instructions scheduled=20 ++event:0x16 counters:0,1,2,3 um:zero minimum:500 name:SRS1_SCHEDULE_STALLE= D : Cycles SRS1 is not empty but 0 instructions scheduled=20 ++event:0x17 counters:0,1,2,3 um:zero minimum:500 name:VRS_SCHEDULE_STALLED= : Cycles VRS is not empty but 0 instructions scheduled=20 ++event:0x18 counters:0,1,2,3 um:zero minimum:500 name:LRS_SCHEDULE_STALLED= : Cycles LRS is not empty but 0 instructions scheduled=20 ++event:0x19 counters:0,1,2,3 um:zero minimum:500 name:BRS_SCHEDULE_STALLED= : Cycles BRS is not empty but 0 instructions scheduled Load/Store, Data Ca= che, and dLFB Events=20 ++event:0x1a counters:0,1,2,3 um:zero minimum:500 name:TOTAL_TRANSLATED : T= otal Ldst microops translated.=20 ++event:0x1b counters:0,1,2,3 um:zero minimum:500 name:LOADS_TRANSLATED : N= umber of cacheable L* or EVL* microops translated. (This includes microops = from load-multiple, load-update, and load-context instructions.)=20 ++event:0x1c counters:0,1,2,3 um:zero minimum:500 name:STORES_TRANSLATED : = Number of cacheable ST* or EVST* microops translated. (This includes microo= ps from store-multiple, store-update, and save-context instructions.)=20 ++event:0x1d counters:0,1,2,3 um:zero minimum:500 name:TOUCHES_TRANSLATED := Number of cacheable DCBT and DCBTST instructions translated (L1 only) (Doe= s not count touches that are converted to nops i.e. exceptions, noncacheabl= e, hid0[nopti] bit is set.)=20 ++event:0x1e counters:0,1,2,3 um:zero minimum:500 name:CACHEOPS_TRANSLATED = : Number of dcba, dcbf, dcbst, and dcbz instructions translated (e500 traps= on dcbi)=20 ++event:0x1f counters:0,1,2,3 um:zero minimum:500 name:CACHEINHIBITED_ACCES= SES_TRANSLATED : Number of cache inhibited accesses translated=20 ++event:0x20 counters:0,1,2,3 um:zero minimum:500 name:GUARDED_LOADS_TRANSL= ATED : Number of guarded loads translated=20 ++event:0x21 counters:0,1,2,3 um:zero minimum:500 name:WRITETHROUGH_STORES_= TRANSLATED : Number of write-through stores translated=20 ++event:0x22 counters:0,1,2,3 um:zero minimum:500 name:MISALIGNED_ACCESSES_= TRANSLATED : Number of misaligned load or store accesses translated.=20 ++event:0x23 counters:0,1,2,3 um:zero minimum:500 name:TOTAL_ALLOCATED_DLFB= : Total allocated to dLFB ++event:0x24 counters:0,1,2,3 um:zero minimum:500 name:LOADS_TRANSLATED_ALL= OCATED_DLFB : Loads translated and allocated to dLFB (Applies to same class= of instructions as loads translated.)=20 ++event:0x25 counters:0,1,2,3 um:zero minimum:500 name:STORES_COMPLETED_ALL= OCATED_DLFB : Stores completed and allocated to dLFB (Applies to same class= of instructions as stores translated.)=20 ++event:0x26 counters:0,1,2,3 um:zero minimum:500 name:TOUCHES_TRANSLATED_A= LLOCATED_DLFB : Touches translated and allocated to dLFB (Applies to same c= lass of instructions as touches translated.)=20 ++event:0x27 counters:0,1,2,3 um:zero minimum:500 name:STORES_COMPLETED : N= umber of cacheable ST* or EVST* microops completed. (Applies to the same cl= ass of instructions as stores translated.)=20 ++event:0x28 counters:0,1,2,3 um:zero minimum:500 name:DL1_LOCKS : Number o= f cache lines locked in the dL1. (Counts a lock even if an overlock conditi= on is encountered.)=20 ++event:0x29 counters:0,1,2,3 um:zero minimum:500 name:DL1_RELOADS : This i= s historically used to determine dcache miss rate (along with loads/stores = completed). This counts dL1 reloads for any reason.=20 ++event:0x2a counters:0,1,2,3 um:zero minimum:500 name:DL1_CASTOUTS : dL1 c= astouts. Does not count castouts due to DCBF.=20 ++event:0x2b counters:0,1,2,3 um:zero minimum:500 name:DETECTED_REPLAYS : T= imes detected replay condition - Load miss with dLFB full.=20 ++event:0x2c counters:0,1,2,3 um:zero minimum:500 name:LOAD_MISS_QUEUE_FULL= _REPLAYS : Load miss with load queue full.=20 ++event:0x2d counters:0,1,2,3 um:zero minimum:500 name:LOAD_GUARDED_MISS_NO= T_LAST_REPLAYS : Load guarded miss when the load is not yet at the bottom o= f the completion buffer. ++event:0x2e counters:0,1,2,3 um:zero minimum:500 name:STORE_TRANSLATED_QUE= UE_FULL_REPLAYS : Translate a store when the StQ is full. ++event:0x2f counters:0,1,2,3 um:zero minimum:500 name:ADDRESS_COLLISION_RE= PLAYS : Address collision. ++event:0x30 counters:0,1,2,3 um:zero minimum:500 name:DMMU_MISS_REPLAYS : = DMMU_MISS_REPLAYS : DMMU miss. ++event:0x31 counters:0,1,2,3 um:zero minimum:500 name:DMMU_BUSY_REPLAYS : = DMMU_BUSY_REPLAYS : DMMU busy. ++event:0x32 counters:0,1,2,3 um:zero minimum:500 name:SECOND_PART_MISALIGN= ED_AFTER_MISS_REPLAYS : Second part of misaligned access when first part mi= ssed in cache. ++event:0x33 counters:0,1,2,3 um:zero minimum:500 name:LOAD_MISS_DLFB_FULL_= CYCLES : Cycles stalled on replay condition - Load miss with dLFB full. ++event:0x34 counters:0,1,2,3 um:zero minimum:500 name:LOAD_MISS_QUEUE_FULL= _CYCLES : Cycles stalled on replay condition - Load miss with load queue fu= ll. ++event:0x35 counters:0,1,2,3 um:zero minimum:500 name:LOAD_GUARDED_MISS_NO= T_LAST_CYCLES : Cycles stalled on replay condition - Load guarded miss when= the load is not yet at the bottom of the completion buffer. ++event:0x36 counters:0,1,2,3 um:zero minimum:500 name:STORE_TRANSLATED_QUE= UE_FULL_CYCLES : Cycles stalled on replay condition - Translate a store whe= n the StQ is full. ++event:0x37 counters:0,1,2,3 um:zero minimum:500 name:ADDRESS_COLLISION_CY= CLES : Cycles stalled on replay condition - Address collision. ++event:0x38 counters:0,1,2,3 um:zero minimum:500 name:DMMU_MISS_CYCLES : C= ycles stalled on replay condition - DMMU miss. ++event:0x39 counters:0,1,2,3 um:zero minimum:500 name:DMMU_BUSY_CYCLES : C= ycles stalled on replay condition - DMMU busy. ++event:0x3a counters:0,1,2,3 um:zero minimum:500 name:SECOND_PART_MISALIGN= ED_AFTER_MISS_CYCLES : Cycles stalled on replay condition - Second part of = misaligned access when first part missed in cache. ++event:0x3b counters:0,1,2,3 um:zero minimum:500 name:IL1_LOCKS : Number o= f cache lines locked in the iL1. (Counts a lock even if an overlock conditi= on is encountered.)=20 ++event:0x3c counters:0,1,2,3 um:zero minimum:500 name:IL1_FETCH_RELOADS : = This is historically used to determine icache miss rate (along with instruc= tions completed) Reloads due to demand fetch.=20 ++event:0x3d counters:0,1,2,3 um:zero minimum:500 name:FETCHES : Counts the= number of fetches that write at least one instruction to the instruction b= uffer. (With instruction fetched, can used to compute instructions-per-fetc= h)=20 ++event:0x3e counters:0,1,2,3 um:zero minimum:500 name:IMMU_TLB4K_RELOADS := iMMU TLB4K reloads ++event:0x3f counters:0,1,2,3 um:zero minimum:500 name:IMMU_VSP_RELOADS : i= MMU VSP reloads ++event:0x40 counters:0,1,2,3 um:zero minimum:500 name:DMMU_TLB4K_RELOADS := dMMU TLB4K reloads ++event:0x41 counters:0,1,2,3 um:zero minimum:500 name:DMMU_VSP_RELOADS : d= MMU VSP reloads ++event:0x42 counters:0,1,2,3 um:zero minimum:500 name:L2MMU_MISSES : Count= s iTLB/dTLB error interrupt=20 ++event:0x43 counters:0,1,2,3 um:zero minimum:500 name:BIU_MASTER_REQUESTS = : Number of master transactions. (Number of master TSs.)=20 ++event:0x44 counters:0,1,2,3 um:zero minimum:500 name:BIU_MASTER_I_REQUEST= S : Number of master I-Side transactions. (Number of master I-Side TSs.)=20 ++event:0x45 counters:0,1,2,3 um:zero minimum:500 name:BIU_MASTER_D_REQUEST= S : Number of master D-Side transactions. (Number of master D-Side TSs.)=20 ++event:0x46 counters:0,1,2,3 um:zero minimum:500 name:BIU_MASTER_D_CASTOUT= _REQUESTS : Number of master D-Side non-program-demand castout transactions= . This counts replacement pushes and snoop pushes. This does not count DCBF= castouts. (Number of master D-side non-program-demand castout TSs.)=20 ++event:0x48 counters:0,1,2,3 um:zero minimum:500 name:SNOOP_REQUESTS : Num= ber of externally generated snoop requests. (Counts snoop TSs.)=20 ++event:0x49 counters:0,1,2,3 um:zero minimum:500 name:SNOOP_HITS : Number = of snoop hits on all D-side resources regardless of the cache state (modifi= ed, exclusive, or shared)=20 ++event:0x4a counters:0,1,2,3 um:zero minimum:500 name:SNOOP_PUSHES : Numbe= r of snoop pushes from all D-side resources. (Counts snoop ARTRY/WOPs.)=20 ++event:0x52 counters:0,1,2,3 um:zero minimum:500 name:PMC0_OVERFLOW : Coun= ts the number of times PMC0[32] transitioned from 1 to 0.=20 ++event:0x53 counters:0,1,2,3 um:zero minimum:500 name:PMC1_OVERFLOW : Coun= ts the number of times PMC1[32] transitioned from 1 to 0.=20 ++event:0x54 counters:0,1,2,3 um:zero minimum:500 name:PMC2_OVERFLOW : Coun= ts the number of times PMC2[32] transitioned from 1 to 0.=20 ++event:0x55 counters:0,1,2,3 um:zero minimum:500 name:PMC3_OVERFLOW : Coun= ts the number of times PMC3[32] transitioned from 1 to 0. ++event:0x56 counters:0,1,2,3 um:zero minimum:500 name:INTERRUPTS : Number = of interrupts taken ++event:0x57 counters:0,1,2,3 um:zero minimum:500 name:EXTERNAL_INTERRUPTS = : Number of external input interrupts taken ++event:0x58 counters:0,1,2,3 um:zero minimum:500 name:CRITICAL_INTERRUPTS = : Number of critical input interrupts taken ++event:0x59 counters:0,1,2,3 um:zero minimum:500 name:SC_TRAP_INTERRUPTS := Number of system call and trap interrupts ++event:0x5b counters:0,1,2,3 um:zero minimum:500 name:L2_LINEFILL_REQ : Nu= mber L2 Linefill requests ++event:0x5c counters:0,1,2,3 um:zero minimum:500 name:L2_VICTIM_SELECT : N= umber L2 Victim selects ++event:0x6e counters:0,1,2,3 um:zero minimum:500 name:L2_ACCESS : Number L= 2 cache accesses ++event:0x6f counters:0,1,2,3 um:zero minimum:500 name:L2_HIT_ACCESS : Numb= er L2 hit cache accesses ++event:0x70 counters:0,1,2,3 um:zero minimum:500 name:L2_DATA_ACCESS : Num= ber L2 data cache accesses ++event:0x71 counters:0,1,2,3 um:zero minimum:500 name:L2_HIT_DATA_ACCESS := Number L2 hit data cache accesses ++event:0x72 counters:0,1,2,3 um:zero minimum:500 name:L2_INST_ACCESS : Num= ber L2 instruction cache accesses ++event:0x73 counters:0,1,2,3 um:zero minimum:500 name:L2_HIT_INST_ACCESS := Number L2 hit instruction cache accesses ++event:0x74 counters:0,1,2,3 um:zero minimum:500 name:L2_ALLOC : Number L2= cache allocations ++event:0x75 counters:0,1,2,3 um:zero minimum:500 name:L2_DATA_ALLOC : Numb= er L2 data cache allocations ++event:0x76 counters:0,1,2,3 um:zero minimum:500 name:L2_DIRTY_DATA_ALLOC = : Number L2 dirty data cache allocations ++event:0x77 counters:0,1,2,3 um:zero minimum:500 name:L2_INST_ALLOC : Numb= er L2 instruction cache allocations ++event:0x78 counters:0,1,2,3 um:zero minimum:500 name:L2_UPDATE : Number L= 2 cache updates ++event:0x79 counters:0,1,2,3 um:zero minimum:500 name:L2_CLEAN_UPDATE : Nu= mber L2 cache clean updates ++event:0x7a counters:0,1,2,3 um:zero minimum:500 name:L2_DIRTY_UPDATE : Nu= mber L2 cache dirty updates ++event:0x7b counters:0,1,2,3 um:zero minimum:500 name:L2_CLEAN_REDU_UPDATE= : Number L2 cache clean redundant updates ++event:0x7c counters:0,1,2,3 um:zero minimum:500 name:L2_DIRTY_REDU_UPDATE= : Number L2 cache dirty redundant updates ++event:0x7d counters:0,1,2,3 um:zero minimum:500 name:L2_LOCKS : Number L2= cache locks ++event:0x7e counters:0,1,2,3 um:zero minimum:500 name:L2_CASTOUT : Number = L2 cache castouts ++event:0x7f counters:0,1,2,3 um:zero minimum:500 name:L2_HIT_DATA_DIRTY : = Number L2 cache data dirty hits ++event:0x82 counters:0,1,2,3 um:zero minimum:500 name:L2_INV_CLEAN : Numbe= r L2 cache invalidation of clean lines ++event:0x83 counters:0,1,2,3 um:zero minimum:500 name:L2_INV_INCOHER : Num= ber L2 cache invalidation of incoherent lines ++event:0x84 counters:0,1,2,3 um:zero minimum:500 name:L2_INV_COHER : Numbe= r L2 cache invalidation of coherent lines ++event:0x94 counters:0,1,2,3 um:zero minimum:500 name:DVT0 : Detection of = write to DEVENT with DVT0 set ++event:0x95 counters:0,1,2,3 um:zero minimum:500 name:DVT1 : Detection of = write to DEVENT with DVT1 set ++event:0x96 counters:0,1,2,3 um:zero minimum:500 name:DVT2 : Detection of = write to DEVENT with DVT2 set ++event:0x97 counters:0,1,2,3 um:zero minimum:500 name:DVT3 : Detection of = write to DEVENT with DVT3 set ++event:0x98 counters:0,1,2,3 um:zero minimum:500 name:DVT4 : Detection of = write to DEVENT with DVT4 set ++event:0x99 counters:0,1,2,3 um:zero minimum:500 name:DVT5 : Detection of = write to DEVENT with DVT5 set ++event:0x9a counters:0,1,2,3 um:zero minimum:500 name:DVT6 : Detection of = write to DEVENT with DVT6 set ++event:0x9b counters:0,1,2,3 um:zero minimum:500 name:DVT7 : Detection of = write to DEVENT with DVT7 set ++event:0x9c counters:0,1,2,3 um:zero minimum:500 name:CYCLES_NEXUS_STALLED= : Number of completion cycles stalled due to Nexus FIFO full ++event:0xb0 counters:0,1,2,3 um:zero minimum:500 name:DECORATED_LOAD : Num= ber of decorated loads. ++event:0xb1 counters:0,1,2,3 um:zero minimum:500 name:DECORATED_STORE : Nu= mber of decorated stores ++event:0xb2 counters:0,1,2,3 um:zero minimum:500 name:LOAD_RETRY : Number = of load retries ++event:0xb3 counters:0,1,2,3 um:zero minimum:500 name:STWCX_SUCCESS : Numb= er of successful stwcx. instructions ++event:0xb4 counters:0,1,2,3 um:zero minimum:500 name:STWCX_UNSUCCESS : Nu= mber of unsuccessful stwcx. instructions +diff -urN oprofile-0.9.6/events/ppc/e500mc/unit_masks oprofile-0.9.6-new/e= vents/ppc/e500mc/unit_masks +--- oprofile-0.9.6/events/ppc/e500mc/unit_masks 1970-01-01 08:00:00.000000= 000 +0800 ++++ oprofile-0.9.6-new/events/ppc/e500mc/unit_masks 2010-08-16 17:56:03.00= 0000000 +0800 +@@ -0,0 +1,4 @@ ++# e500 possible unit masks ++# ++name:zero type:mandatory default:0x0 ++ 0x0 No unit mask +diff -urN oprofile-0.9.6/libop/op_cpu_type.c oprofile-0.9.6-new/libop/op_c= pu_type.c +--- oprofile-0.9.6/libop/op_cpu_type.c 2009-11-24 23:25:17.000000000 +0800 ++++ oprofile-0.9.6-new/libop/op_cpu_type.c 2010-08-16 17:56:03.000000000 += 0800 +@@ -82,6 +82,7 @@ + { "ppc64 compat version 1", "ppc64/ibm-compat-v1", CPU_PPC64_IBM_COMPAT_= V1, 4 }, + { "Intel Core/i7", "i386/core_i7", CPU_CORE_I7, 4 }, + { "Intel Atom", "i386/atom", CPU_ATOM, 2 }, ++ { "e500mc", "ppc/e500mc", CPU_PPC_E500MC, 4 }, + }; + =20 + static size_t const nr_cpu_descrs =3D sizeof(cpu_descrs) / sizeof(struct = cpu_descr); +diff -urN oprofile-0.9.6/libop/op_cpu_type.h oprofile-0.9.6-new/libop/op_c= pu_type.h +--- oprofile-0.9.6/libop/op_cpu_type.h 2009-11-24 23:25:17.000000000 +0800 ++++ oprofile-0.9.6-new/libop/op_cpu_type.h 2010-08-16 17:56:03.000000000 += 0800 +@@ -79,6 +79,7 @@ + CPU_PPC64_IBM_COMPAT_V1, /**< IBM PPC64 processor compat mode version 1 = */ + CPU_CORE_I7, /* Intel Core i7, Nehalem */ + CPU_ATOM, /* First generation Intel Atom */ ++ CPU_PPC_E500MC, /**< e500mc */ + MAX_CPU_TYPE + } op_cpu; +=20 +diff -urN oprofile-0.9.6/utils/ophelp.c oprofile-0.9.6-new/utils/ophelp.c +--- oprofile-0.9.6/utils/ophelp.c 2009-11-24 23:25:17.000000000 +0800 ++++ oprofile-0.9.6-new/utils/ophelp.c 2010-08-16 17:56:03.000000000 +0800 +@@ -619,6 +619,7 @@ +=20 + case CPU_PPC_E500: + case CPU_PPC_E500_2: ++ case CPU_PPC_E500MC: + event_doc =3D + "See PowerPC e500 Core Complex Reference Manual\n" + "Chapter 7: Performance Monitor\n" diff --git a/recipes-kernel/oprofile/oprofile/oprofile-no-query-modules.pat= ch b/recipes-kernel/oprofile/oprofile/oprofile-no-query-modules.patch new file mode 100644 index 0000000..c9d7cd6 --- /dev/null +++ b/recipes-kernel/oprofile/oprofile/oprofile-no-query-modules.patch @@ -0,0 +1,29 @@ +disable portions which use query_module on 2.6 kernel this is not availabl= e +in OE we dont support 2.4 anyway + + +Upstream-Status: Pending +Signed-off-by: Khem Raj + +Index: oprofile-0.9.6/daemon/liblegacy/opd_kernel.c +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D +--- oprofile-0.9.6.orig/daemon/liblegacy/opd_kernel.c 2009-11-24 07:25:17.= 000000000 -0800 ++++ oprofile-0.9.6/daemon/liblegacy/opd_kernel.c 2011-07-18 10:08:39.86379= 8825 -0700 +@@ -270,6 +270,9 @@ + */ + static void opd_drop_module_sample(unsigned long eip) + { ++ verbprintf(vmodule, "query_module not available on linux-2.6: %s\n", str= error(EPERM)); ++ ++#if 0 + char * module_names; + char * name; + size_t size =3D 1024; +@@ -307,6 +310,7 @@ +=20 + if (module_names) + free(module_names); ++#endif + } +=20 +=20 diff --git a/recipes-kernel/oprofile/oprofile/opstart.patch b/recipes-kerne= l/oprofile/oprofile/opstart.patch new file mode 100644 index 0000000..c588deb --- /dev/null +++ b/recipes-kernel/oprofile/oprofile/opstart.patch @@ -0,0 +1,237 @@ +Upstream-Status: Pending + +Index: oprofile/utils/Makefile.am +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D +--- oprofile.orig/utils/Makefile.am 2005-03-31 18:20:41.000000000 +0100 ++++ oprofile/utils/Makefile.am 2008-07-02 15:14:07.000000000 +0100 +@@ -3,8 +3,15 @@ +=20 + LIBS=3D@POPT_LIBS@ @LIBERTY_LIBS@ +=20 +-bin_PROGRAMS =3D ophelp ++bin_PROGRAMS =3D ophelp opstart + dist_bin_SCRIPTS =3D opcontrol +=20 + ophelp_SOURCES =3D ophelp.c + ophelp_LDADD =3D ../libop/libop.a ../libutil/libutil.a ++ ++opstart_SOURCES =3D opstart.c ++ ++install-exec-local: ++ cd $(DESTDIR)/$(bindir) && \ ++ rm -f opstop && \ ++ $(LN_S) opstart opstop +Index: oprofile/utils/opstart.c +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D +--- /dev/null 1970-01-01 00:00:00.000000000 +0000 ++++ oprofile/utils/opstart.c 2008-07-02 15:14:07.000000000 +0100 +@@ -0,0 +1,110 @@ ++/** ++ * @file opstart.c ++ * Start/Stop oprofile ++ * ++ * @remark Copyright 2007 Openedhand Ltd. ++ * @remark Read the file COPYING ++ * ++ * @author Richard Purdie ++ */ ++ ++#include ++#include ++#include ++#include ++#include ++#include ++#include ++ ++int main(const int argc, const char* argv[]) ++{ ++ const char *enable =3D "/dev/oprofile/enable"; ++ const char *lockfile; ++ unsigned long dpid; ++ struct stat sbuf; ++ FILE *lfile, *efile; ++ int sig, enb, err; ++ ++ if (argc >=3D 2) { ++ printf("Error: Invalid options.\n"); ++ return 1; ++ } ++ ++ lockfile =3D getenv("LOCK_FILE"); ++ if (!lockfile) ++ lockfile =3D "/var/lib/oprofile/lock"; ++ ++ /* Add SESSION_DIR support? */ ++ ++ if (geteuid()) { ++ printf("Error: This program must be run as root.\n"); ++ return 1; ++ } ++ ++ if (stat(enable, &sbuf)) { ++ printf("Error: Could not find /dev/oprofile/enable, the" ++ " kernel module probably isn't loaded.\n"); ++ printf("This binary only works with 2.6 kernels and oprofile" ++ " must have been initialised with 'opcontrol --start-daemon'.\n"= ); ++ return 1; ++ } ++ ++ if (stat(lockfile, &sbuf)) { ++ printf("Error: Could not find lockfile %s.\n", lockfile); ++ printf("The oprofile daemon must be running (oprofile must" ++ " have been initialised with 'opcontrol --start-daemon').\n"); ++ return 1; ++ } ++ ++ lfile =3D fopen(lockfile, "r"); ++ if (!lfile) { ++ printf("Error opening lockfile %s.\n", lockfile); ++ return 1; ++ } ++ ++ err =3D fscanf(lfile, "%lud", (unsigned long *) &dpid); ++ if (err !=3D 1) { ++ printf("Error reading pid from lockfile %s.\n", lockfile); ++ return 1; ++ } ++ fclose(lfile); ++ ++ efile =3D fopen(enable, "r"); ++ if (!efile) { ++ printf("Error opening %s.\n", enable); ++ return 1; ++ } ++ ++ if (strstr(argv[0], "opstart")) { ++ printf("Starting Profiler\n"); ++ sig =3D SIGUSR1; ++ enb =3D 1; ++ } else if (strstr(argv[0], "opstop")) { ++ printf("Stopping Oprofile.\n"); ++ printf("You need to run 'opcontrol --dump' when the session" ++ " is finished.\n"); ++ sig =3D SIGUSR2; ++ enb =3D 0; ++ } else { ++ printf("Error: Please call as 'opstart' or 'opstop'\n"); ++ return 1; ++ } ++ ++ err =3D kill(dpid, 0); ++ if (err) { ++ printf("Error sending signal to oprofiled. Stale lockfile" ++ " (%s) ?\n", lockfile); ++ return 1; ++ } ++ ++ fprintf(efile, "%d\n", enb); ++ err =3D kill(dpid, sig); ++ if (err) { ++ printf("Error sending signal to oprofiled. Stale lockfile" ++ " (%s) ?\n", lockfile); ++ return 1; ++ } ++ ++ return 0; ++} ++ +Index: oprofile/configure.in +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D +--- oprofile.orig/configure.in 2008-07-02 15:13:58.000000000 +0100 ++++ oprofile/configure.in 2008-07-02 15:17:37.000000000 +0100 +@@ -16,6 +16,7 @@ + AM_CONFIG_HEADER(config.h) +=20 + AC_PROG_RANLIB ++AC_PROG_LN_S + AC_PROG_LIBTOOL +=20 + dnl for the man page +@@ -241,6 +242,8 @@ + doc/xsl/catalog-1.xml \ + doc/oprofile.1 \ + doc/opcontrol.1 \ ++ doc/opstart.1 \ ++ doc/opstop.1 \ + doc/ophelp.1 \ + doc/opreport.1 \ + doc/opannotate.1 \ +Index: oprofile/doc/Makefile.am +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D +--- oprofile.orig/doc/Makefile.am 2008-07-02 15:13:59.000000000 +0100 ++++ oprofile/doc/Makefile.am 2008-07-02 15:14:07.000000000 +0100 +@@ -11,6 +11,8 @@ + man_MANS =3D \ + oprofile.1 \ + opcontrol.1 \ ++ opstart.1 \ ++ opstop.1 \ + opreport.1 \ + opannotate.1 \ + opgprof.1 \ +Index: oprofile/doc/opstart.1.in +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D +--- /dev/null 1970-01-01 00:00:00.000000000 +0000 ++++ oprofile/doc/opstart.1.in 2008-07-02 15:14:07.000000000 +0100 +@@ -0,0 +1,27 @@ ++.TH OPSTART 1 "@DATE@" "oprofile @VERSION@" ++.UC 4 ++.SH NAME ++opstart \- start OProfile profiling ++.SH SYNOPSIS ++.br ++.B opstart ++.SH DESCRIPTION ++.B opstart ++is a simple optimised command to start profiling with 2.6 Linux kernels. ++OProfile should have already been initialised by calling "opcontrol --sta= rt-daemon". ++ ++.SH ENVIRONMENT ++No special environment variables are recognised by opstart. ++ ++.SH FILES ++.TP ++.I /var/lib/oprofile/samples/ ++The location of the generated sample files. ++ ++.SH VERSION ++.TP ++This man page is current for @PACKAGE@-@VERSION@. ++ ++.SH SEE ALSO ++.BR @OP_DOCDIR@, ++.BR oprofile(1) +Index: oprofile/doc/opstop.1.in +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D +--- /dev/null 1970-01-01 00:00:00.000000000 +0000 ++++ oprofile/doc/opstop.1.in 2008-07-02 15:14:07.000000000 +0100 +@@ -0,0 +1,28 @@ ++.TH OPSTOP 1 "@DATE@" "oprofile @VERSION@" ++.UC 4 ++.SH NAME ++opstop \- stop OProfile profiling ++.SH SYNOPSIS ++.br ++.B opstop ++.SH DESCRIPTION ++.B opstop ++is a simple optimsed command to stop profiling with 2.6 Linux kernels. ++You need to run "opcontrol --dump" before being able to view a profile ++with opreport. ++ ++.SH ENVIRONMENT ++No special environment variables are recognised by opstop. ++ ++.SH FILES ++.TP ++.I /var/lib/oprofile/samples/ ++The location of the generated sample files. ++ ++.SH VERSION ++.TP ++This man page is current for @PACKAGE@-@VERSION@. ++ ++.SH SEE ALSO ++.BR @OP_DOCDIR@, ++.BR oprofile(1) diff --git a/recipes-kernel/oprofile/oprofile_0.9.6.bb b/recipes-kernel/opr= ofile/oprofile_0.9.6.bb new file mode 100644 index 0000000..6664c89 --- /dev/null +++ b/recipes-kernel/oprofile/oprofile_0.9.6.bb @@ -0,0 +1,35 @@ +SUMMARY =3D "System-Wide Profiler" +DESCRIPTION =3D "OProfile is a system-wide profiler for Linux systems, cap= able \ +of profiling all running code at low overhead." +HOMEPAGE =3D "http://oprofile.sourceforge.net/news/" +BUGTRACKER =3D "http://sourceforge.net/tracker/?group_id=3D16191&atid=3D11= 6191" + +LICENSE =3D "LGPLv2.1+ & GPLv2" +LIC_FILES_CHKSUM =3D "file://COPYING;md5=3D94d55d512a9ba36caa9b7df079bae19= f \ + file://libopagent/opagent.h;beginline=3D5;endline=3D26= ;md5=3D4f16f72c7a493d8a4704aa18d03d15c6 \ + file://daemon/liblegacy/p_module.h;beginline=3D2;endli= ne=3D20;md5=3Dfc23a43455edf185307274a99730b6e4" + +SECTION =3D "devel" + +DEPENDS =3D "popt binutils" +RDEPENDS_${PN} =3D "binutils-symlinks" +RRECOMMENDS_${PN} =3D "kernel-vmlinux" + +FILES_${PN} =3D "${bindir} ${libdir}/${BPN}/lib*.so.* ${datadir}/${BPN}" +FILES_${PN}-dev +=3D "${libdir}/${BPN}/lib*.so ${libdir}/${BPN}/lib*.la" +FILES_${PN}-staticdev +=3D "${libdir}/${BPN}/lib*.a" + +SRC_URI =3D "${SOURCEFORGE_MIRROR}/oprofile/oprofile-${PV}.tar.gz \ + file://opstart.patch \ + file://oprofile-no-query-modules.patch \ + file://oprofile-0.9.6-e500mc-support.patch \ + file://oprofile-0.9.6-e500mc-support-2.patch \ + file://oprofile-0.9.6-add-e500mc-support-in-op_events.patch" + +SRC_URI[md5sum] =3D "4e407093ac06200185d5a5e6437d7242" +SRC_URI[sha256sum] =3D "3f0dd40a7749fc650d25d79d42ebbff8f3b6db310c36e7c383= 9696cc09077880" +S =3D "${WORKDIR}/oprofile-${PV}" + +inherit autotools + +EXTRA_OECONF =3D "--with-kernel-support --without-x" --=20 1.7.9.7