[oe-commits] org.oe.dev oprofile: make opcontrol compatible with busybox 'kill'
john_lee commit
oe at amethyst.openembedded.net
Fri May 23 09:22:35 UTC 2008
oprofile: make opcontrol compatible with busybox 'kill'
Author: john_lee at openembedded.org
Branch: org.openembedded.dev
Revision: 069cbce8fd460595fca73e8407674cc8c66ee6ee
ViewMTN: http://monotone.openembedded.org/revision/info/069cbce8fd460595fca73e8407674cc8c66ee6ee
Files:
1
packages/oprofile/oprofile/opcontrol-busybox-compat.patch
packages/oprofile/oprofile_0.9.3.bb
Diffs:
#
# mt diff -r6cc3aaedf8cf414553ad240c92f741b2f004e596 -r069cbce8fd460595fca73e8407674cc8c66ee6ee
#
#
#
# add_file "packages/oprofile/oprofile/opcontrol-busybox-compat.patch"
# content [a28510c61c28ca4ebbff5efaf0175e9767234f19]
#
# patch "packages/oprofile/oprofile_0.9.3.bb"
# from [f756427d410e1704dcdc1e0d1000a9e01fbc4313]
# to [a084caeffd2ac9506fb9d4e8cedf2a8e04a6757d]
#
============================================================
--- packages/oprofile/oprofile/opcontrol-busybox-compat.patch a28510c61c28ca4ebbff5efaf0175e9767234f19
+++ packages/oprofile/oprofile/opcontrol-busybox-compat.patch a28510c61c28ca4ebbff5efaf0175e9767234f19
@@ -0,0 +1,49 @@
+Index: oprofile-0.9.3/utils/opcontrol
+===================================================================
+--- oprofile-0.9.3.orig/utils/opcontrol 2008-05-23 16:54:21.000000000 +0800
++++ oprofile-0.9.3/utils/opcontrol 2008-05-23 00:47:38.000000000 +0800
+@@ -908,7 +908,7 @@
+ return
+ fi
+
+- kill -s 0 `cat $LOCK_FILE` 2>/dev/null
++ kill -0 `cat $LOCK_FILE` 2>/dev/null
+ if test "$?" -ne 0; then
+ echo "Detected stale lock file. Removing." >&2
+ rm -f "$LOCK_FILE"
+@@ -919,7 +919,7 @@
+ echo "Stopping profiling."
+ echo 0 >/dev/oprofile/enable
+ fi
+- kill -s USR2 `cat $LOCK_FILE` 2>/dev/null
++ kill -usr2 `cat $LOCK_FILE` 2>/dev/null
+ }
+
+
+@@ -932,7 +932,7 @@
+ return
+ fi
+
+- kill -s 0 `cat $LOCK_FILE` 2>/dev/null
++ kill -0 `cat $LOCK_FILE` 2>/dev/null
+ if test "$?" -ne 0; then
+ echo "Detected stale lock file. Removing." >&2
+ rm -f "$LOCK_FILE"
+@@ -1274,7 +1274,7 @@
+ {
+
+ if test -f "$LOCK_FILE"; then
+- kill -s 0 `cat $LOCK_FILE` 2>/dev/null
++ kill -0 `cat $LOCK_FILE` 2>/dev/null
+ if test "$?" -eq 0; then
+ return;
+ else
+@@ -1341,7 +1341,7 @@
+ if test "$KERNEL_SUPPORT" = "yes"; then
+ echo 1 >$MOUNT/enable
+ fi
+- kill -s USR1 `cat $LOCK_FILE` 2>/dev/null
++ kill -USR1 `cat $LOCK_FILE` 2>/dev/null
+ echo "Profiler running."
+ }
+
============================================================
--- packages/oprofile/oprofile_0.9.3.bb f756427d410e1704dcdc1e0d1000a9e01fbc4313
+++ packages/oprofile/oprofile_0.9.3.bb a084caeffd2ac9506fb9d4e8cedf2a8e04a6757d
@@ -1,11 +1,15 @@
-SECTION = "devel"
DESCRIPTION = "OProfile is a system-wide profiler for Linux systems, capable \
of profiling all running code at low overhead."
+SECTION = "devel"
LICENSE = "GPL"
DEPENDS = "popt binutils"
+PR = "r1"
SRC_URI = "${SOURCEFORGE_MIRROR}/oprofile/oprofile-${PV}.tar.gz \
- file://acinclude.m4"
+ file://acinclude.m4 \
+ file://opcontrol-busybox-compat.patch;patch=1 \
+ "
+
S = "${WORKDIR}/oprofile-${PV}"
inherit autotools
@@ -14,12 +18,12 @@ EXTRA_OECONF = "--with-kernel-support \
# Should add the oprofile kernel modules, for those with 2.4
# kernels, as a seperate .oe file.
EXTRA_OECONF = "--with-kernel-support \
- --without-x \
- --disable-werror "
+ --without-x \
+ --disable-werror "
do_configure () {
- cp ${WORKDIR}/acinclude.m4 ${S}/
- autotools_do_configure
+ cp ${WORKDIR}/acinclude.m4 ${S}/
+ autotools_do_configure
}
# Available config options
# --enable-abi enable abi portability code (default is disabled)
More information about the Openembedded-commits
mailing list