summaryrefslogtreecommitdiffstats
path: root/meta/recipes-kernel/blktrace
diff options
context:
space:
mode:
authorTom Zanussi <tom.zanussi@intel.com>2010-11-23 00:01:10 -0600
committerSaul Wold <Saul.Wold@intel.com>2010-11-22 22:34:39 -0800
commit998ceaeaf1ec9b71eb630cc6e3dd3ba612316e8c (patch)
tree8d999dafea23c9688265c3dcfe8f94dc5fb28817 /meta/recipes-kernel/blktrace
parent34660ef99020b9e3386df7b388f866fc7aa47d5c (diff)
downloadpoky-998ceaeaf1ec9b71eb630cc6e3dd3ba612316e8c.tar.gz
blktrace: new package
Add blktrace, a tool for generating traces of the I/O traffic on block devices. Signed-off-by: Tom Zanussi <tom.zanussi@intel.com>
Diffstat (limited to 'meta/recipes-kernel/blktrace')
-rw-r--r--meta/recipes-kernel/blktrace/blktrace/blktrace-makefile.patch53
-rw-r--r--meta/recipes-kernel/blktrace/blktrace_git.bb25
2 files changed, 78 insertions, 0 deletions
diff --git a/meta/recipes-kernel/blktrace/blktrace/blktrace-makefile.patch b/meta/recipes-kernel/blktrace/blktrace/blktrace-makefile.patch
new file mode 100644
index 0000000000..87ee24ea35
--- /dev/null
+++ b/meta/recipes-kernel/blktrace/blktrace/blktrace-makefile.patch
@@ -0,0 +1,53 @@
1Index: git/Makefile
2===================================================================
3--- git.orig/Makefile 2010-11-22 11:20:14.303472770 -0600
4+++ git/Makefile 2010-11-22 14:11:19.152635423 -0600
5@@ -1,5 +1,3 @@
6-CC = gcc
7-CFLAGS = -Wall -O2 -g -W
8 ALL_CFLAGS = $(CFLAGS) -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
9 PROGS = blkparse blktrace verify_blkparse blkrawverify blkiomon
10 LIBS = -lpthread
11@@ -11,13 +9,13 @@
12 all: $(ALL)
13
14 btt/btt:
15- $(MAKE) -C btt
16+ CC="${CC}" CFLAGS="${CFLAGS}" $(MAKE) -C btt CC="${CC}" CFLAGS="${CFLAGS}"
17
18 btreplay/btrecord:
19- $(MAKE) -C btreplay
20+ CC="${CC}" CFLAGS="${CFLAGS}" $(MAKE) -C btreplay CC="${CC}" CFLAGS="${CFLAGS}"
21
22 btreplay/btreplay:
23- $(MAKE) -C btreplay
24+ CC="${CC}" CFLAGS="${CFLAGS}" $(MAKE) -C btreplay CC="${CC}" CFLAGS="${CFLAGS}"
25
26 %.o: %.c
27 $(CC) -o $*.o -c $(ALL_CFLAGS) $<
28Index: git/btreplay/Makefile
29===================================================================
30--- git.orig/btreplay/Makefile 2010-11-22 11:21:12.972679035 -0600
31+++ git/btreplay/Makefile 2010-11-22 14:07:01.492839945 -0600
32@@ -5,8 +5,6 @@
33 # NDEBUG - Defined: no asserts, Undefined: asserts
34 #
35
36-CC = gcc
37-CFLAGS = -Wall -W -O2 -g
38 INCS = -I. -I.. -I../btt
39 OCFLAGS = -UCOUNT_IOS -UDEBUG -DNDEBUG
40 XCFLAGS = -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
41Index: git/btt/Makefile
42===================================================================
43--- git.orig/btt/Makefile 2010-11-22 11:21:01.833758370 -0600
44+++ git/btt/Makefile 2010-11-22 14:07:15.783258253 -0600
45@@ -5,8 +5,6 @@
46 # NDEBUG - Defined: no asserts, Undefined: asserts
47 #
48
49-CC = gcc
50-CFLAGS = -Wall -W -O2 -g
51 INCS = -I. -I..
52 XCFLAGS = -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
53 override CFLAGS += $(INCS) $(XCFLAGS)
diff --git a/meta/recipes-kernel/blktrace/blktrace_git.bb b/meta/recipes-kernel/blktrace/blktrace_git.bb
new file mode 100644
index 0000000000..5690f1463b
--- /dev/null
+++ b/meta/recipes-kernel/blktrace/blktrace_git.bb
@@ -0,0 +1,25 @@
1DESCRIPTION = "blktrace - generate traces of the I/O traffic on block devices"
2LICENSE = "GPLv2"
3LIC_FILES_CHKSUM = "file://COPYING;md5=393a5ca445f6965873eca0259a17f833"
4
5DEPENDS = "libaio"
6
7PR = r0
8PV = "1.0.1+git${SRCPV}"
9
10SRC_URI = "git://git.kernel.dk/blktrace.git;protocol=git \
11 file://blktrace-makefile.patch"
12
13SRC_URI[md5sum] = "588aa9ab8a14d1766ab3f061d728ed89"
14SRC_URI[sha256sum] = "f3cb6a3df1b3dc67369c7c4da3444a7897aa8a18e55937b368e0a6aa2f64b3aa"
15
16S = "${WORKDIR}/git"
17
18do_compile() {
19 oe_runmake ARCH="${ARCH}" CC="${CC}" LD="${LD}" prefix=${prefix}
20}
21
22do_install() {
23 oe_runmake ARCH="${ARCH}" CC="${CC}" LD="${LD}" \
24 prefix=${prefix} DESTDIR=${D} install
25}