Add blktrace package
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
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
@@ -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
@@ -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
@@ -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
Re: [PATCH 1/1] blktrace: new package
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@@ -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
Re: [PATCH 1/1] blktrace: new package
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@@ -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
Quoted 20 lines
From: Tom Zanussi
Sent: Tuesday, November 23, 2010 7:11 AMAdd 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/traceprofThanks,
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.patchcreate mode 100644 meta/recipes-kernel/blktrace/blktrace_git.bb
New recipe should start from "r0" for PR.
Thanks
Kevin
Quoted 29 lines · Kevin
Quoted 20 lines
From: Tom Zanussi
Sent: Tuesday, November 23, 2010 7:11 AMAdd 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/traceprofThanks,
Tom Zanussi <[email protected]>
---Tom Zanussi (1):
blktrace: new packageQuoted 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.patchcreate 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