Skip to contentSkip to conversation

Add blktrace package

PATCH In review Tom Zanussi 3 participants 6 messages Nov 22, 2010 – Nov 23, 2010

lore
Share & tools
lore
#0 lore raw

cover Add blktrace package

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 <[email protected]>
---

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
#1 lore raw

PATCH 1/1 blktrace: new package

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

---
 .../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
meta/conf/distro/include/poky-default-revisions.inc +1 -0
index 859e3ca..f55ece2 100644
@@ -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"
 
meta/recipes-core/tasks/task-poky-tools.bb +2 -1
index 0a2533c..90361ba 100644
@@ -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
meta/recipes-kernel/blktrace/blktrace/blktrace-makefile.patch new file +53 -0

53 lines not on this page · raw message

meta/recipes-kernel/blktrace/blktrace_git.bb new file +25 -0
new file mode 100644
index 0000000..85e4a4b
@@ -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
+}
Signature · 1 line
1.7.0.4
#4 lore raw
In reply to Tom Zanussi
Quoted 20 lines

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 <[email protected]>
---

Tom Zanussi (1):
blktrace: new package

Quoted 8 lines
.../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

#2 lore raw

Re: [PATCH 1/1] blktrace: new package

In reply to Tom Zanussi
Quoted 2 lines · Tom Zanussi

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

[snip]

meta/recipes-core/tasks/task-poky-tools.bb RDEPENDS_task-poky-tools-profile = "\ · line 50

Quoted 11 lines
meta/recipes-core/tasks/task-poky-tools.bb +2 -1
index 0a2533c..90361ba 100644
@@ -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.

Signature · 2 lines
Tom Rini
Mentor Graphics Corporation
#5 lore raw
In reply to Tian, Kevin
Quoted 29 lines · Kevin
Quoted 20 lines

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 <[email protected]>
---

Tom Zanussi (1):
blktrace: new package

Quoted 8 lines
.../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

Quoted 2 lines

New recipe should start from "r0" for PR.

OK, thanks for pointing that out.

Tom

Quoted 2 lines

Thanks
Kevin

#3 lore raw

Re: [PATCH 1/1] blktrace: new package

In reply to Tom Rini
Quoted 17 lines · Tom Rini
Quoted 2 lines · Tom Zanussi

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

[snip]

meta/recipes-core/tasks/task-poky-tools.bb RDEPENDS_task-poky-tools-profile = "\ · line 50

Quoted 11 lines
meta/recipes-core/tasks/task-poky-tools.bb +2 -1
index 0a2533c..90361ba 100644
@@ -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:

Quoted 5 lines
     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