Skip to contentSkip to conversation

Add sysprof package, v2

PATCH New Tom Zanussi 1 participant 2 messages Dec 10, 2010

lore
Share & tools
lore
#0 lore raw

cover Add sysprof package, v2

Add sysprof, one of the tracing/profiling tools mentioned in the Yocto v1.0 tracing/profiling tools list posted here:

https://lists.yoctoproject.org/pipermail/yocto/2010-November/000281.html

v2 changes:

Fix compile errors for arm, mips and powerpc.

Pull URL: git://git.pokylinux.org/poky-contrib.git
Branch: tzanussi/sysprof
Browse: http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=tzanussi/sysprof

Thanks,
Tom Zanussi <[email protected]>
---

Tom Zanussi (1):
Add sysprof, a system-wide performance profiler for Linux.

 .../conf/distro/include/poky-default-revisions.inc |    1 +
 meta/recipes-core/tasks/task-poky-tools.bb         |    1 +
 .../sysprof/files/ppc-macro-fix.patch              |   13 +++++++++++
 meta/recipes-kernel/sysprof/files/rmb-arm.patch    |   18 ++++++++++++++++
 meta/recipes-kernel/sysprof/files/rmb-mips.patch   |   20 ++++++++++++++++++
 meta/recipes-kernel/sysprof/sysprof_git.bb         |   22 ++++++++++++++++++++
 6 files changed, 75 insertions(+), 0 deletions(-)
 create mode 100644 meta/recipes-kernel/sysprof/files/ppc-macro-fix.patch
 create mode 100644 meta/recipes-kernel/sysprof/files/rmb-arm.patch
 create mode 100644 meta/recipes-kernel/sysprof/files/rmb-mips.patch
 create mode 100644 meta/recipes-kernel/sysprof/sysprof_git.bb
#1 lore raw

PATCH 1/1 Add sysprof, a system-wide performance profiler for Linux.

---
 .../conf/distro/include/poky-default-revisions.inc |    1 +
 meta/recipes-core/tasks/task-poky-tools.bb         |    1 +
 .../sysprof/files/ppc-macro-fix.patch              |   13 +++++++++++
 meta/recipes-kernel/sysprof/files/rmb-arm.patch    |   18 ++++++++++++++++
 meta/recipes-kernel/sysprof/files/rmb-mips.patch   |   20 ++++++++++++++++++
 meta/recipes-kernel/sysprof/sysprof_git.bb         |   22 ++++++++++++++++++++
 6 files changed, 75 insertions(+), 0 deletions(-)
 create mode 100644 meta/recipes-kernel/sysprof/files/ppc-macro-fix.patch
 create mode 100644 meta/recipes-kernel/sysprof/files/rmb-arm.patch
 create mode 100644 meta/recipes-kernel/sysprof/files/rmb-mips.patch
 create mode 100644 meta/recipes-kernel/sysprof/sysprof_git.bb
meta/conf/distro/include/poky-default-revisions.inc +1 -0
index 7f3468d..1c7a8de 100644
@@ -179,4 +179,5 @@ SRCDATE_yaffs2-utils ??= "20071107"
 SRCREV_pn-zaurusd ??= "358"
 SRCREV_pn-zypper ??= "9eb0e248e06c8d20ad054be2439149d9ede37531"
 SRCREV_pn-blktrace ??= "1e09f6e9012826fca69fa07222b7bc53c3e629ee"
+SRCREV_pn-sysprof ??= "38a6af1f0a45e528fd2842983da71e0f23c70d6a"
 
meta/recipes-core/tasks/task-poky-tools.bb +1 -0
index 029790c..e507ce4 100644
@@ -49,6 +49,7 @@ RRECOMMENDS_task-poky-tools-profile = "\
     perf \
     trace-cmd \
     kernel-module-oprofile \
+    sysprof \
     "
 
 #    exmap-console
meta/recipes-kernel/sysprof/files/ppc-macro-fix.patch new file +13 -0
new file mode 100644
index 0000000..a2e015a
@@ -0,0 +1,13 @@
+Index: git/collector.c
+===================================================================
+--- git.orig/collector.c	2010-12-09 19:42:12.292040001 -0600
++++ git/collector.c	2010-12-09 19:42:23.352039997 -0600
+@@ -175,7 +175,7 @@
+ #define __NR_perf_counter_open 337
+ #elif defined(__hppa__)
+ #define __NR_perf_counter_open 318
+-#elif defined(__ppc__) || defined(__ppc64__)
++#elif defined(__powerpc__) || defined(__powerpc64__)
+ #define __NR_perf_counter_open 319
+ #elif defined(__s390__)
+ #define __NR_perf_counter_open 331
meta/recipes-kernel/sysprof/files/rmb-arm.patch new file +18 -0
new file mode 100644
index 0000000..60e7f70
@@ -0,0 +1,18 @@
+Index: git/util.h
+===================================================================
+--- git.orig/util.h	2010-12-07 22:41:57.156243001 -0600
++++ git/util.h	2010-12-07 22:43:47.616243002 -0600
+@@ -37,4 +37,13 @@
+ #define cpu_relax()     asm volatile("" ::: "memory");
+ #endif
+ 
++#ifdef __arm__
++/*
++ * Use the __kuser_memory_barrier helper in the CPU helper page. See
++ * arch/arm/kernel/entry-armv.S in the kernel source for details.
++ */
++#define rmb()		((void(*)(void))0xffff0fa0)()
++#define cpu_relax()	asm volatile("":::"memory")
++#endif
++
+ #endif
meta/recipes-kernel/sysprof/files/rmb-mips.patch new file +20 -0
new file mode 100644
index 0000000..84f968e
@@ -0,0 +1,20 @@
+Index: git/util.h
+===================================================================
+--- git.orig/util.h	2010-12-08 01:22:44.486243001 -0600
++++ git/util.h	2010-12-08 01:23:27.836243001 -0600
+@@ -37,4 +37,15 @@
+ #define cpu_relax()     asm volatile("" ::: "memory");
+ #endif
+ 
++#ifdef __mips__
++#define rmb()		asm volatile(					\
++				".set	mips2\n\t"			\
++				"sync\n\t"				\
++				".set	mips0"				\
++				: /* no output */			\
++				: /* no input */			\
++				: "memory")
++#define cpu_relax()	asm volatile("" ::: "memory")
++#endif
++
+ #endif
meta/recipes-kernel/sysprof/sysprof_git.bb new file +22 -0
new file mode 100644
index 0000000..d649c16
@@ -0,0 +1,22 @@
+DESCRIPTION = "sysprof - System-wide Performance Profiler for Linux"
+LICENSE = "GPLv2"
+LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"
+
+DEPENDS = "gtk+ libglade"
+
+PR = r0
+PV = "1.1.6+git${SRCPV}"
+
+SRC_URI = "git://git.gnome.org/sysprof;protocol=git \
+           "
+
+SRC_URI_append_arm  = " file://rmb-arm.patch"
+SRC_URI_append_mips = " file://rmb-mips.patch"
+SRC_URI_append_powerpc = " file://ppc-macro-fix.patch"
+
+SRC_URI[md5sum]    = "80902a7b3d6f7cb83eb6b47e87538747"
+SRC_URI[sha256sum] = "1c6403278fa4f3b37a1fb9f0784e496dce1703fe84ac03b2650bf469133a0cb3"
+
+S = "${WORKDIR}/git"
+
+inherit autotools
Signature · 1 line
1.7.0.4