All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/1] blktrace: new package
  2010-11-22 23:10 [PATCH 0/1] Add blktrace package Tom Zanussi
@ 2010-11-22 23:07 ` Tom Zanussi
  2010-11-23  1:09   ` Tom Rini
  2010-11-23  0:19 ` [PATCH 0/1] Add blktrace package Tian, Kevin
  1 sibling, 1 reply; 8+ messages in thread
From: Tom Zanussi @ 2010-11-22 23:07 UTC (permalink / raw)
  To: poky

Add blktrace, a tool for generating traces of the I/O traffic on block
devices.

Signed-off-by: Tom Zanussi <tom.zanussi@intel.com>
---
 .../conf/distro/include/poky-default-revisions.inc |    1 +
 meta/recipes-core/tasks/task-poky-tools.bb         |    3 +-
 .../blktrace/blktrace/blktrace-makefile.patch      |   53 ++++++++++++++++++++
 meta/recipes-kernel/blktrace/blktrace_git.bb       |   25 +++++++++
 4 files changed, 81 insertions(+), 1 deletions(-)
 create mode 100644 meta/recipes-kernel/blktrace/blktrace/blktrace-makefile.patch
 create mode 100644 meta/recipes-kernel/blktrace/blktrace_git.bb

diff --git a/meta/conf/distro/include/poky-default-revisions.inc b/meta/conf/distro/include/poky-default-revisions.inc
index 859e3ca..f55ece2 100644
--- a/meta/conf/distro/include/poky-default-revisions.inc
+++ b/meta/conf/distro/include/poky-default-revisions.inc
@@ -177,4 +177,5 @@ SRCDATE_yaffs2-utils-native ??= "20071107"
 SRCDATE_yaffs2-utils ??= "20071107"
 SRCREV_pn-zaurusd ??= "358"
 SRCREV_pn-zypper ??= "9eb0e248e06c8d20ad054be2439149d9ede37531"
+SRCREV_pn-blktrace ??= "1e09f6e9012826fca69fa07222b7bc53c3e629ee"
 
diff --git a/meta/recipes-core/tasks/task-poky-tools.bb b/meta/recipes-core/tasks/task-poky-tools.bb
index 0a2533c..90361ba 100644
--- a/meta/recipes-core/tasks/task-poky-tools.bb
+++ b/meta/recipes-core/tasks/task-poky-tools.bb
@@ -46,7 +46,8 @@ RDEPENDS_task-poky-tools-profile = "\
 RRECOMMENDS_task-poky-tools-profile = "\
     perf \
     trace-cmd \
-    kernel-module-oprofile"
+    kernel-module-oprofile \
+    blktrace"
 
 #    exmap-console
 #    exmap-server
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 0000000..87ee24e
--- /dev/null
+++ b/meta/recipes-kernel/blktrace/blktrace/blktrace-makefile.patch
@@ -0,0 +1,53 @@
+Index: git/Makefile
+===================================================================
+--- git.orig/Makefile	2010-11-22 11:20:14.303472770 -0600
++++ git/Makefile	2010-11-22 14:11:19.152635423 -0600
+@@ -1,5 +1,3 @@
+-CC	= gcc
+-CFLAGS	= -Wall -O2 -g -W
+ ALL_CFLAGS = $(CFLAGS) -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
+ PROGS	= blkparse blktrace verify_blkparse blkrawverify blkiomon
+ LIBS	= -lpthread
+@@ -11,13 +9,13 @@
+ all: $(ALL)
+ 
+ btt/btt:
+-	$(MAKE) -C btt
++	CC="${CC}" CFLAGS="${CFLAGS}" $(MAKE) -C btt CC="${CC}" CFLAGS="${CFLAGS}"
+ 
+ btreplay/btrecord:
+-	$(MAKE) -C btreplay
++	CC="${CC}" CFLAGS="${CFLAGS}" $(MAKE) -C btreplay CC="${CC}" CFLAGS="${CFLAGS}"
+ 
+ btreplay/btreplay:
+-	$(MAKE) -C btreplay
++	CC="${CC}" CFLAGS="${CFLAGS}" $(MAKE) -C btreplay CC="${CC}" CFLAGS="${CFLAGS}"
+ 
+ %.o: %.c
+ 	$(CC) -o $*.o -c $(ALL_CFLAGS) $<
+Index: git/btreplay/Makefile
+===================================================================
+--- git.orig/btreplay/Makefile	2010-11-22 11:21:12.972679035 -0600
++++ git/btreplay/Makefile	2010-11-22 14:07:01.492839945 -0600
+@@ -5,8 +5,6 @@
+ # 	NDEBUG		- Defined: no asserts, Undefined: asserts
+ #
+ 
+-CC	= gcc
+-CFLAGS	= -Wall -W -O2 -g
+ INCS	= -I. -I.. -I../btt
+ OCFLAGS	= -UCOUNT_IOS -UDEBUG -DNDEBUG
+ XCFLAGS	= -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
+Index: git/btt/Makefile
+===================================================================
+--- git.orig/btt/Makefile	2010-11-22 11:21:01.833758370 -0600
++++ git/btt/Makefile	2010-11-22 14:07:15.783258253 -0600
+@@ -5,8 +5,6 @@
+ # 	NDEBUG		- Defined: no asserts, Undefined: asserts
+ #
+ 
+-CC	= gcc
+-CFLAGS	= -Wall -W -O2 -g
+ INCS	= -I. -I..
+ XCFLAGS	= -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
+ 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 0000000..85e4a4b
--- /dev/null
+++ b/meta/recipes-kernel/blktrace/blktrace_git.bb
@@ -0,0 +1,25 @@
+DESCRIPTION = "blktrace - generate traces of the I/O traffic on block devices"
+LICENSE = "GPLv2"
+LIC_FILES_CHKSUM = "file://COPYING;md5=393a5ca445f6965873eca0259a17f833"
+
+DEPENDS = "libaio"
+
+PR = r1
+PV = "1.0.1+git${SRCPV}"
+
+SRC_URI = "git://git.kernel.dk/blktrace.git;protocol=git \
+           file://blktrace-makefile.patch"
+
+SRC_URI[md5sum] = "588aa9ab8a14d1766ab3f061d728ed89"
+SRC_URI[sha256sum] = "f3cb6a3df1b3dc67369c7c4da3444a7897aa8a18e55937b368e0a6aa2f64b3aa"
+
+S = "${WORKDIR}/git"
+
+do_compile() { 
+	oe_runmake ARCH="${ARCH}" CC="${CC}" LD="${LD}" prefix=${prefix}
+}
+
+do_install() {
+	oe_runmake ARCH="${ARCH}" CC="${CC}" LD="${LD}" \
+                   prefix=${prefix} DESTDIR=${D} install
+}
-- 
1.7.0.4



^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [PATCH 0/1] Add blktrace package
@ 2010-11-22 23:10 Tom Zanussi
  2010-11-22 23:07 ` [PATCH 1/1] blktrace: new package Tom Zanussi
  2010-11-23  0:19 ` [PATCH 0/1] Add blktrace package Tian, Kevin
  0 siblings, 2 replies; 8+ messages in thread
From: Tom Zanussi @ 2010-11-22 23:10 UTC (permalink / raw)
  To: poky

Add blktrace, 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

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

Thanks,
    Tom Zanussi <tom.zanussi@intel.com>
---


Tom Zanussi (1):
  blktrace: new package

 .../conf/distro/include/poky-default-revisions.inc |    1 +
 meta/recipes-core/tasks/task-poky-tools.bb         |    3 +-
 .../blktrace/blktrace/blktrace-makefile.patch      |   53 ++++++++++++++++++++
 meta/recipes-kernel/blktrace/blktrace_git.bb       |   25 +++++++++
 4 files changed, 81 insertions(+), 1 deletions(-)
 create mode 100644 meta/recipes-kernel/blktrace/blktrace/blktrace-makefile.patch
 create mode 100644 meta/recipes-kernel/blktrace/blktrace_git.bb



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH 0/1] Add blktrace package
  2010-11-22 23:10 [PATCH 0/1] Add blktrace package Tom Zanussi
  2010-11-22 23:07 ` [PATCH 1/1] blktrace: new package Tom Zanussi
@ 2010-11-23  0:19 ` Tian, Kevin
  2010-11-23  5:40   ` Tom Zanussi
  1 sibling, 1 reply; 8+ messages in thread
From: Tian, Kevin @ 2010-11-23  0:19 UTC (permalink / raw)
  To: Zanussi, Tom, poky

>From: Tom Zanussi
>Sent: Tuesday, November 23, 2010 7:11 AM
>
>Add blktrace, 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
>
>Pull URL: git://git.pokylinux.org/poky-contrib.git
>  Branch: tzanussi/traceprof
>  Browse: http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=tzanussi/traceprof
>
>Thanks,
>    Tom Zanussi <tom.zanussi@intel.com>
>---
>
>
>Tom Zanussi (1):
>  blktrace: new package
>
> .../conf/distro/include/poky-default-revisions.inc |    1 +
> meta/recipes-core/tasks/task-poky-tools.bb         |    3 +-
> .../blktrace/blktrace/blktrace-makefile.patch      |   53
>++++++++++++++++++++
> meta/recipes-kernel/blktrace/blktrace_git.bb       |   25 +++++++++
> 4 files changed, 81 insertions(+), 1 deletions(-)
> create mode 100644 meta/recipes-kernel/blktrace/blktrace/blktrace-makefile.patch
> create mode 100644 meta/recipes-kernel/blktrace/blktrace_git.bb

New recipe should start from "r0" for PR.

Thanks
Kevin


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH 1/1] blktrace: new package
  2010-11-22 23:07 ` [PATCH 1/1] blktrace: new package Tom Zanussi
@ 2010-11-23  1:09   ` Tom Rini
  2010-11-23  5:41     ` Tom Zanussi
  0 siblings, 1 reply; 8+ messages in thread
From: Tom Rini @ 2010-11-23  1:09 UTC (permalink / raw)
  To: poky

On 11/22/2010 04:07 PM, Tom Zanussi wrote:
> Add blktrace, a tool for generating traces of the I/O traffic on block
> devices.
[snip]
> diff --git a/meta/recipes-core/tasks/task-poky-tools.bb b/meta/recipes-core/tasks/task-poky-tools.bb
> index 0a2533c..90361ba 100644
> --- a/meta/recipes-core/tasks/task-poky-tools.bb
> +++ b/meta/recipes-core/tasks/task-poky-tools.bb
> @@ -46,7 +46,8 @@ RDEPENDS_task-poky-tools-profile = "\
>   RRECOMMENDS_task-poky-tools-profile = "\
>       perf \
>       trace-cmd \
> -    kernel-module-oprofile"
> +    kernel-module-oprofile \
> +    blktrace"

Can I suggest making this:
     blktrace \
"
?  That's usually how frequently added-to variables are treated, or 
should be imho.

-- 
Tom Rini
Mentor Graphics Corporation


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH 0/1] Add blktrace package
  2010-11-23  0:19 ` [PATCH 0/1] Add blktrace package Tian, Kevin
@ 2010-11-23  5:40   ` Tom Zanussi
  0 siblings, 0 replies; 8+ messages in thread
From: Tom Zanussi @ 2010-11-23  5:40 UTC (permalink / raw)
  To: Tian, Kevin; +Cc: poky

On Mon, 2010-11-22 at 16:19 -0800, Tian, Kevin wrote:
> >From: Tom Zanussi
> >Sent: Tuesday, November 23, 2010 7:11 AM
> >
> >Add blktrace, 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
> >
> >Pull URL: git://git.pokylinux.org/poky-contrib.git
> >  Branch: tzanussi/traceprof
> >  Browse: http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=tzanussi/traceprof
> >
> >Thanks,
> >    Tom Zanussi <tom.zanussi@intel.com>
> >---
> >
> >
> >Tom Zanussi (1):
> >  blktrace: new package
> >
> > .../conf/distro/include/poky-default-revisions.inc |    1 +
> > meta/recipes-core/tasks/task-poky-tools.bb         |    3 +-
> > .../blktrace/blktrace/blktrace-makefile.patch      |   53
> >++++++++++++++++++++
> > meta/recipes-kernel/blktrace/blktrace_git.bb       |   25 +++++++++
> > 4 files changed, 81 insertions(+), 1 deletions(-)
> > create mode 100644 meta/recipes-kernel/blktrace/blktrace/blktrace-makefile.patch
> > create mode 100644 meta/recipes-kernel/blktrace/blktrace_git.bb
> 
> New recipe should start from "r0" for PR.
> 

OK, thanks for pointing that out.

Tom

> Thanks
> Kevin




^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH 1/1] blktrace: new package
  2010-11-23  1:09   ` Tom Rini
@ 2010-11-23  5:41     ` Tom Zanussi
  0 siblings, 0 replies; 8+ messages in thread
From: Tom Zanussi @ 2010-11-23  5:41 UTC (permalink / raw)
  To: Tom Rini; +Cc: poky

On Mon, 2010-11-22 at 17:09 -0800, Tom Rini wrote:
> On 11/22/2010 04:07 PM, Tom Zanussi wrote:
> > Add blktrace, a tool for generating traces of the I/O traffic on block
> > devices.
> [snip]
> > diff --git a/meta/recipes-core/tasks/task-poky-tools.bb b/meta/recipes-core/tasks/task-poky-tools.bb
> > index 0a2533c..90361ba 100644
> > --- a/meta/recipes-core/tasks/task-poky-tools.bb
> > +++ b/meta/recipes-core/tasks/task-poky-tools.bb
> > @@ -46,7 +46,8 @@ RDEPENDS_task-poky-tools-profile = "\
> >   RRECOMMENDS_task-poky-tools-profile = "\
> >       perf \
> >       trace-cmd \
> > -    kernel-module-oprofile"
> > +    kernel-module-oprofile \
> > +    blktrace"
> 
> Can I suggest making this:
>      blktrace \
> "
> ?  That's usually how frequently added-to variables are treated, or 
> should be imho.
> 

Makes sense, thanks for suggesting it - will put it in version 3...

Tom



^ permalink raw reply	[flat|nested] 8+ messages in thread

* [PATCH 1/1] blktrace: new package
  2010-11-23  6:03 Tom Zanussi
@ 2010-11-23  6:01 ` Tom Zanussi
  0 siblings, 0 replies; 8+ messages in thread
From: Tom Zanussi @ 2010-11-23  6:01 UTC (permalink / raw)
  To: poky

Add blktrace, a tool for generating traces of the I/O traffic on block
devices.

Signed-off-by: Tom Zanussi <tom.zanussi@intel.com>
---
 .../conf/distro/include/poky-default-revisions.inc |    1 +
 meta/recipes-core/tasks/task-poky-tools.bb         |    4 +-
 .../blktrace/blktrace/blktrace-makefile.patch      |   53 ++++++++++++++++++++
 meta/recipes-kernel/blktrace/blktrace_git.bb       |   25 +++++++++
 4 files changed, 82 insertions(+), 1 deletions(-)
 create mode 100644 meta/recipes-kernel/blktrace/blktrace/blktrace-makefile.patch
 create mode 100644 meta/recipes-kernel/blktrace/blktrace_git.bb

diff --git a/meta/conf/distro/include/poky-default-revisions.inc b/meta/conf/distro/include/poky-default-revisions.inc
index 859e3ca..f55ece2 100644
--- a/meta/conf/distro/include/poky-default-revisions.inc
+++ b/meta/conf/distro/include/poky-default-revisions.inc
@@ -177,4 +177,5 @@ SRCDATE_yaffs2-utils-native ??= "20071107"
 SRCDATE_yaffs2-utils ??= "20071107"
 SRCREV_pn-zaurusd ??= "358"
 SRCREV_pn-zypper ??= "9eb0e248e06c8d20ad054be2439149d9ede37531"
+SRCREV_pn-blktrace ??= "1e09f6e9012826fca69fa07222b7bc53c3e629ee"
 
diff --git a/meta/recipes-core/tasks/task-poky-tools.bb b/meta/recipes-core/tasks/task-poky-tools.bb
index 0a2533c..6eac214 100644
--- a/meta/recipes-core/tasks/task-poky-tools.bb
+++ b/meta/recipes-core/tasks/task-poky-tools.bb
@@ -46,7 +46,9 @@ RDEPENDS_task-poky-tools-profile = "\
 RRECOMMENDS_task-poky-tools-profile = "\
     perf \
     trace-cmd \
-    kernel-module-oprofile"
+    kernel-module-oprofile \
+    blktrace
+    "
 
 #    exmap-console
 #    exmap-server
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 0000000..87ee24e
--- /dev/null
+++ b/meta/recipes-kernel/blktrace/blktrace/blktrace-makefile.patch
@@ -0,0 +1,53 @@
+Index: git/Makefile
+===================================================================
+--- git.orig/Makefile	2010-11-22 11:20:14.303472770 -0600
++++ git/Makefile	2010-11-22 14:11:19.152635423 -0600
+@@ -1,5 +1,3 @@
+-CC	= gcc
+-CFLAGS	= -Wall -O2 -g -W
+ ALL_CFLAGS = $(CFLAGS) -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
+ PROGS	= blkparse blktrace verify_blkparse blkrawverify blkiomon
+ LIBS	= -lpthread
+@@ -11,13 +9,13 @@
+ all: $(ALL)
+ 
+ btt/btt:
+-	$(MAKE) -C btt
++	CC="${CC}" CFLAGS="${CFLAGS}" $(MAKE) -C btt CC="${CC}" CFLAGS="${CFLAGS}"
+ 
+ btreplay/btrecord:
+-	$(MAKE) -C btreplay
++	CC="${CC}" CFLAGS="${CFLAGS}" $(MAKE) -C btreplay CC="${CC}" CFLAGS="${CFLAGS}"
+ 
+ btreplay/btreplay:
+-	$(MAKE) -C btreplay
++	CC="${CC}" CFLAGS="${CFLAGS}" $(MAKE) -C btreplay CC="${CC}" CFLAGS="${CFLAGS}"
+ 
+ %.o: %.c
+ 	$(CC) -o $*.o -c $(ALL_CFLAGS) $<
+Index: git/btreplay/Makefile
+===================================================================
+--- git.orig/btreplay/Makefile	2010-11-22 11:21:12.972679035 -0600
++++ git/btreplay/Makefile	2010-11-22 14:07:01.492839945 -0600
+@@ -5,8 +5,6 @@
+ # 	NDEBUG		- Defined: no asserts, Undefined: asserts
+ #
+ 
+-CC	= gcc
+-CFLAGS	= -Wall -W -O2 -g
+ INCS	= -I. -I.. -I../btt
+ OCFLAGS	= -UCOUNT_IOS -UDEBUG -DNDEBUG
+ XCFLAGS	= -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
+Index: git/btt/Makefile
+===================================================================
+--- git.orig/btt/Makefile	2010-11-22 11:21:01.833758370 -0600
++++ git/btt/Makefile	2010-11-22 14:07:15.783258253 -0600
+@@ -5,8 +5,6 @@
+ # 	NDEBUG		- Defined: no asserts, Undefined: asserts
+ #
+ 
+-CC	= gcc
+-CFLAGS	= -Wall -W -O2 -g
+ INCS	= -I. -I..
+ XCFLAGS	= -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
+ 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 0000000..5690f14
--- /dev/null
+++ b/meta/recipes-kernel/blktrace/blktrace_git.bb
@@ -0,0 +1,25 @@
+DESCRIPTION = "blktrace - generate traces of the I/O traffic on block devices"
+LICENSE = "GPLv2"
+LIC_FILES_CHKSUM = "file://COPYING;md5=393a5ca445f6965873eca0259a17f833"
+
+DEPENDS = "libaio"
+
+PR = r0
+PV = "1.0.1+git${SRCPV}"
+
+SRC_URI = "git://git.kernel.dk/blktrace.git;protocol=git \
+           file://blktrace-makefile.patch"
+
+SRC_URI[md5sum] = "588aa9ab8a14d1766ab3f061d728ed89"
+SRC_URI[sha256sum] = "f3cb6a3df1b3dc67369c7c4da3444a7897aa8a18e55937b368e0a6aa2f64b3aa"
+
+S = "${WORKDIR}/git"
+
+do_compile() { 
+	oe_runmake ARCH="${ARCH}" CC="${CC}" LD="${LD}" prefix=${prefix}
+}
+
+do_install() {
+	oe_runmake ARCH="${ARCH}" CC="${CC}" LD="${LD}" \
+                   prefix=${prefix} DESTDIR=${D} install
+}
-- 
1.7.0.4



^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [PATCH 1/1] blktrace: new package
  2010-11-22 22:01 [PATCH 0/1] Add blktrace package Tom Zanussi
@ 2010-11-22 21:13 ` Tom Zanussi
  0 siblings, 0 replies; 8+ messages in thread
From: Tom Zanussi @ 2010-11-22 21:13 UTC (permalink / raw)
  To: poky

Add blktrace, a tool for generating traces of the I/O traffic on block
devices.

Signed-off-by: Tom Zanussi <tom.zanussi@intel.com>
---
 .../conf/distro/include/poky-default-revisions.inc |    1 +
 meta/recipes-core/tasks/task-poky-tools.bb         |    3 +-
 .../blktrace/blktrace/blktrace-makefile.patch      |   53 ++++++++++++++++++++
 meta/recipes-kernel/blktrace/blktrace_git.bb       |   22 ++++++++
 4 files changed, 78 insertions(+), 1 deletions(-)
 create mode 100644 meta/recipes-kernel/blktrace/blktrace/blktrace-makefile.patch
 create mode 100644 meta/recipes-kernel/blktrace/blktrace_git.bb

diff --git a/meta/conf/distro/include/poky-default-revisions.inc b/meta/conf/distro/include/poky-default-revisions.inc
index 859e3ca..f55ece2 100644
--- a/meta/conf/distro/include/poky-default-revisions.inc
+++ b/meta/conf/distro/include/poky-default-revisions.inc
@@ -177,4 +177,5 @@ SRCDATE_yaffs2-utils-native ??= "20071107"
 SRCDATE_yaffs2-utils ??= "20071107"
 SRCREV_pn-zaurusd ??= "358"
 SRCREV_pn-zypper ??= "9eb0e248e06c8d20ad054be2439149d9ede37531"
+SRCREV_pn-blktrace ??= "1e09f6e9012826fca69fa07222b7bc53c3e629ee"
 
diff --git a/meta/recipes-core/tasks/task-poky-tools.bb b/meta/recipes-core/tasks/task-poky-tools.bb
index 0a2533c..90361ba 100644
--- a/meta/recipes-core/tasks/task-poky-tools.bb
+++ b/meta/recipes-core/tasks/task-poky-tools.bb
@@ -46,7 +46,8 @@ RDEPENDS_task-poky-tools-profile = "\
 RRECOMMENDS_task-poky-tools-profile = "\
     perf \
     trace-cmd \
-    kernel-module-oprofile"
+    kernel-module-oprofile \
+    blktrace"
 
 #    exmap-console
 #    exmap-server
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 0000000..87ee24e
--- /dev/null
+++ b/meta/recipes-kernel/blktrace/blktrace/blktrace-makefile.patch
@@ -0,0 +1,53 @@
+Index: git/Makefile
+===================================================================
+--- git.orig/Makefile	2010-11-22 11:20:14.303472770 -0600
++++ git/Makefile	2010-11-22 14:11:19.152635423 -0600
+@@ -1,5 +1,3 @@
+-CC	= gcc
+-CFLAGS	= -Wall -O2 -g -W
+ ALL_CFLAGS = $(CFLAGS) -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
+ PROGS	= blkparse blktrace verify_blkparse blkrawverify blkiomon
+ LIBS	= -lpthread
+@@ -11,13 +9,13 @@
+ all: $(ALL)
+ 
+ btt/btt:
+-	$(MAKE) -C btt
++	CC="${CC}" CFLAGS="${CFLAGS}" $(MAKE) -C btt CC="${CC}" CFLAGS="${CFLAGS}"
+ 
+ btreplay/btrecord:
+-	$(MAKE) -C btreplay
++	CC="${CC}" CFLAGS="${CFLAGS}" $(MAKE) -C btreplay CC="${CC}" CFLAGS="${CFLAGS}"
+ 
+ btreplay/btreplay:
+-	$(MAKE) -C btreplay
++	CC="${CC}" CFLAGS="${CFLAGS}" $(MAKE) -C btreplay CC="${CC}" CFLAGS="${CFLAGS}"
+ 
+ %.o: %.c
+ 	$(CC) -o $*.o -c $(ALL_CFLAGS) $<
+Index: git/btreplay/Makefile
+===================================================================
+--- git.orig/btreplay/Makefile	2010-11-22 11:21:12.972679035 -0600
++++ git/btreplay/Makefile	2010-11-22 14:07:01.492839945 -0600
+@@ -5,8 +5,6 @@
+ # 	NDEBUG		- Defined: no asserts, Undefined: asserts
+ #
+ 
+-CC	= gcc
+-CFLAGS	= -Wall -W -O2 -g
+ INCS	= -I. -I.. -I../btt
+ OCFLAGS	= -UCOUNT_IOS -UDEBUG -DNDEBUG
+ XCFLAGS	= -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
+Index: git/btt/Makefile
+===================================================================
+--- git.orig/btt/Makefile	2010-11-22 11:21:01.833758370 -0600
++++ git/btt/Makefile	2010-11-22 14:07:15.783258253 -0600
+@@ -5,8 +5,6 @@
+ # 	NDEBUG		- Defined: no asserts, Undefined: asserts
+ #
+ 
+-CC	= gcc
+-CFLAGS	= -Wall -W -O2 -g
+ INCS	= -I. -I..
+ XCFLAGS	= -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
+ 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 0000000..86423ed
--- /dev/null
+++ b/meta/recipes-kernel/blktrace/blktrace_git.bb
@@ -0,0 +1,22 @@
+DESCRIPTION = "blktrace - generate traces of the I/O traffic on block devices"
+LICENSE = "GPL"
+LIC_FILES_CHKSUM = "file://COPYING;md5=393a5ca445f6965873eca0259a17f833"
+
+DEPENDS = "libaio"
+
+PR = r1
+PV = "1.0.1+git${SRCPV}"
+
+SRC_URI = "git://git.kernel.dk/blktrace.git;protocol=git \
+           file://blktrace-makefile.patch"
+
+S = "${WORKDIR}/git"
+
+do_compile() { 
+	oe_runmake ARCH="${ARCH}" CC="${CC}" LD="${LD}" prefix=${prefix}
+}
+
+do_install() {
+	oe_runmake ARCH="${ARCH}" CC="${CC}" LD="${LD}" \
+                   prefix=${prefix} DESTDIR=${D} install
+}
-- 
1.7.0.4



^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2010-11-23  6:09 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-11-22 23:10 [PATCH 0/1] Add blktrace package Tom Zanussi
2010-11-22 23:07 ` [PATCH 1/1] blktrace: new package Tom Zanussi
2010-11-23  1:09   ` Tom Rini
2010-11-23  5:41     ` Tom Zanussi
2010-11-23  0:19 ` [PATCH 0/1] Add blktrace package Tian, Kevin
2010-11-23  5:40   ` Tom Zanussi
  -- strict thread matches above, loose matches on Subject: below --
2010-11-23  6:03 Tom Zanussi
2010-11-23  6:01 ` [PATCH 1/1] blktrace: new package Tom Zanussi
2010-11-22 22:01 [PATCH 0/1] Add blktrace package Tom Zanussi
2010-11-22 21:13 ` [PATCH 1/1] blktrace: new package Tom Zanussi

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.