All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] Fix blktrace Makefile problem and re-enable blktrace recipe
@ 2010-12-29 20:34 Tom Zanussi
  2010-12-29 20:35 ` [PATCH 1/2] blktrace: Fix parallel make issue Tom Zanussi
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Tom Zanussi @ 2010-12-29 20:34 UTC (permalink / raw)
  To: poky

This patchset fixes the build problem seen recently with blktrace;
with that fixed, the blktrace recipe can then be re-enabled, which
this patchset also does.

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

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


Tom Zanussi (2):
  blktrace: Fix parallel make issue
  task-poky-tools.bb: re-enable blktrace

 meta/recipes-core/tasks/task-poky-tools.bb         |    1 +
 .../blktrace/blktrace/blktrace-makefile.patch      |    4 ++--
 meta/recipes-kernel/blktrace/blktrace_git.bb       |    2 +-
 3 files changed, 4 insertions(+), 3 deletions(-)



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

* [PATCH 1/2] blktrace: Fix parallel make issue
  2010-12-29 20:34 [PATCH 0/2] Fix blktrace Makefile problem and re-enable blktrace recipe Tom Zanussi
@ 2010-12-29 20:35 ` Tom Zanussi
  2010-12-29 20:35 ` [PATCH 2/2] task-poky-tools.bb: re-enable blktrace Tom Zanussi
  2010-12-30  9:38 ` [PATCH 0/2] Fix blktrace Makefile problem and re-enable blktrace recipe Richard Purdie
  2 siblings, 0 replies; 4+ messages in thread
From: Tom Zanussi @ 2010-12-29 20:35 UTC (permalink / raw)
  To: poky

Fixes [BUGID #581]

When PARALLEL_MAKE is used with the current blktrace Makefile, the
btreplay and btrecord object files can end up being built multiple
times in parallel, which occasionally causes the linker to pick up the
object files in intermediate and seemingly corrupt states, and causes
the spurious link errors in the bug report.

This fix restricts the recursive btreplay invocations to building only
btreplay or btrecord as appropriate, not both.

Signed-off-by: Tom Zanussi <tom.zanussi@intel.com>
---
 .../blktrace/blktrace/blktrace-makefile.patch      |    4 ++--
 meta/recipes-kernel/blktrace/blktrace_git.bb       |    2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/meta/recipes-kernel/blktrace/blktrace/blktrace-makefile.patch b/meta/recipes-kernel/blktrace/blktrace/blktrace-makefile.patch
index 87ee24e..c6a06ed 100644
--- a/meta/recipes-kernel/blktrace/blktrace/blktrace-makefile.patch
+++ b/meta/recipes-kernel/blktrace/blktrace/blktrace-makefile.patch
@@ -17,11 +17,11 @@ Index: git/Makefile
  
  btreplay/btrecord:
 -	$(MAKE) -C btreplay
-+	CC="${CC}" CFLAGS="${CFLAGS}" $(MAKE) -C btreplay CC="${CC}" CFLAGS="${CFLAGS}"
++	CC="${CC}" CFLAGS="${CFLAGS}" $(MAKE) -C btreplay CC="${CC}" CFLAGS="${CFLAGS}" btrecord
  
  btreplay/btreplay:
 -	$(MAKE) -C btreplay
-+	CC="${CC}" CFLAGS="${CFLAGS}" $(MAKE) -C btreplay CC="${CC}" CFLAGS="${CFLAGS}"
++	CC="${CC}" CFLAGS="${CFLAGS}" $(MAKE) -C btreplay CC="${CC}" CFLAGS="${CFLAGS}" btreplay
  
  %.o: %.c
  	$(CC) -o $*.o -c $(ALL_CFLAGS) $<
diff --git a/meta/recipes-kernel/blktrace/blktrace_git.bb b/meta/recipes-kernel/blktrace/blktrace_git.bb
index 5690f14..85e4a4b 100644
--- a/meta/recipes-kernel/blktrace/blktrace_git.bb
+++ b/meta/recipes-kernel/blktrace/blktrace_git.bb
@@ -4,7 +4,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=393a5ca445f6965873eca0259a17f833"
 
 DEPENDS = "libaio"
 
-PR = r0
+PR = r1
 PV = "1.0.1+git${SRCPV}"
 
 SRC_URI = "git://git.kernel.dk/blktrace.git;protocol=git \
-- 
1.7.0.4



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

* [PATCH 2/2] task-poky-tools.bb: re-enable blktrace
  2010-12-29 20:34 [PATCH 0/2] Fix blktrace Makefile problem and re-enable blktrace recipe Tom Zanussi
  2010-12-29 20:35 ` [PATCH 1/2] blktrace: Fix parallel make issue Tom Zanussi
@ 2010-12-29 20:35 ` Tom Zanussi
  2010-12-30  9:38 ` [PATCH 0/2] Fix blktrace Makefile problem and re-enable blktrace recipe Richard Purdie
  2 siblings, 0 replies; 4+ messages in thread
From: Tom Zanussi @ 2010-12-29 20:35 UTC (permalink / raw)
  To: poky

The commit for BUGID #581 fixes the blktrace build errors - it should
now be safe to re-enable the blktrace recipe.

Signed-off-by: Tom Zanussi <tom.zanussi@intel.com>
---
 meta/recipes-core/tasks/task-poky-tools.bb |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/meta/recipes-core/tasks/task-poky-tools.bb b/meta/recipes-core/tasks/task-poky-tools.bb
index e507ce4..60a95f9 100644
--- a/meta/recipes-core/tasks/task-poky-tools.bb
+++ b/meta/recipes-core/tasks/task-poky-tools.bb
@@ -49,6 +49,7 @@ RRECOMMENDS_task-poky-tools-profile = "\
     perf \
     trace-cmd \
     kernel-module-oprofile \
+    blktrace \
     sysprof \
     "
 
-- 
1.7.0.4



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

* Re: [PATCH 0/2] Fix blktrace Makefile problem and re-enable blktrace recipe
  2010-12-29 20:34 [PATCH 0/2] Fix blktrace Makefile problem and re-enable blktrace recipe Tom Zanussi
  2010-12-29 20:35 ` [PATCH 1/2] blktrace: Fix parallel make issue Tom Zanussi
  2010-12-29 20:35 ` [PATCH 2/2] task-poky-tools.bb: re-enable blktrace Tom Zanussi
@ 2010-12-30  9:38 ` Richard Purdie
  2 siblings, 0 replies; 4+ messages in thread
From: Richard Purdie @ 2010-12-30  9:38 UTC (permalink / raw)
  To: Tom Zanussi; +Cc: poky

On Wed, 2010-12-29 at 14:34 -0600, Tom Zanussi wrote:
> This patchset fixes the build problem seen recently with blktrace;
> with that fixed, the blktrace recipe can then be re-enabled, which
> this patchset also does.
> 
> Pull URL: git://git.pokylinux.org/poky-contrib.git
>   Branch: tzanussi/blktrace-build-fixes
>   Browse: http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=tzanussi/blktrace-build-fixes
> 
> Thanks,
>     Tom Zanussi <tom.zanussi@intel.com>
> ---

Merged into master, thanks.

Richard



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

end of thread, other threads:[~2010-12-30  9:38 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-29 20:34 [PATCH 0/2] Fix blktrace Makefile problem and re-enable blktrace recipe Tom Zanussi
2010-12-29 20:35 ` [PATCH 1/2] blktrace: Fix parallel make issue Tom Zanussi
2010-12-29 20:35 ` [PATCH 2/2] task-poky-tools.bb: re-enable blktrace Tom Zanussi
2010-12-30  9:38 ` [PATCH 0/2] Fix blktrace Makefile problem and re-enable blktrace recipe Richard Purdie

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.