All of lore.kernel.org
 help / color / mirror / Atom feed
From: Bruce Ashfield <bruce.ashfield@windriver.com>
To: <richard.purdie@linuxfoundation.org>
Cc: openembedded-core@lists.openembedded.org
Subject: [PATCH 3/7] perf: fix v3.17 powerpc compilation issues
Date: Mon, 8 Sep 2014 15:55:23 -0400	[thread overview]
Message-ID: <4acec69d24f74514f78156cb21ed8e0f57e89532.1410205901.git.bruce.ashfield@windriver.com> (raw)
In-Reply-To: <cover.1410205901.git.bruce.ashfield@windriver.com>

The powerpc perf arch port has two issues in the current 3.17-rc
seriers. Undefined dwarf symbols and undefined pr_debug calls.

commit a60335ba [perf tools powerpc: Adjust callchain based on DWARF debug info]
introduces skip-callchain-idx.c, and breaks the perf build.

Unitl fixes get into the mainline kernel, we temporarily fix the issues by
adding a forced linke to -ldw and modifying skip-callchain-idx.c to include
the proper debug files for pr_debug.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
---
 meta/recipes-kernel/perf/perf.bb | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/meta/recipes-kernel/perf/perf.bb b/meta/recipes-kernel/perf/perf.bb
index ebfedb91d715..5bf7af9d4a7c 100644
--- a/meta/recipes-kernel/perf/perf.bb
+++ b/meta/recipes-kernel/perf/perf.bb
@@ -75,6 +75,7 @@ EXTRA_OEMAKE = '\
     ARCH=${ARCH} \
     CC="${CC}" \
     AR="${AR}" \
+    EXTRA_CFLAGS="-ldw" \
     perfexecdir=${libexecdir} \
     NO_GTK2=1 ${TUI_DEFINES} NO_DWARF=1 NO_LIBUNWIND=1 ${SCRIPTING_DEFINES} \
 '
@@ -140,6 +141,10 @@ do_configure_prepend () {
     if [ -e "${S}/tools/perf/config/feature-checks/Makefile" ]; then
         sed -i 's,CC := $(CROSS_COMPILE)gcc -MD,CC += -MD,' ${S}/tools/perf/config/feature-checks/Makefile
     fi
+    # 3.17-rc1+ has a include issue for powerpc. Temporarily sed in the appropriate include
+    if [ -e "${S}/tools/perf/arch/powerpc/util/skip-callchain-idx.c" ]; then
+        sed -i 's,#include "util/callchain.h",#include "util/callchain.h"\n#include "util/debug.h",' ${S}/tools/perf/arch/powerpc/util/skip-callchain-idx.c
+    fi
 }
 
 python do_package_prepend() {
-- 
1.8.1.2



  parent reply	other threads:[~2014-09-08 19:55 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-08 19:55 [PATCH 0/7] linux-yocto*: consolidated pull request Bruce Ashfield
2014-09-08 19:55 ` [PATCH 1/7] linux-yocto/3.10: baytrail i/o updates Bruce Ashfield
2014-09-08 19:55 ` [PATCH 2/7] lttng-modules: fix compilation for 3.17-rcX Bruce Ashfield
2014-09-09 11:40   ` Burton, Ross
2014-09-09 12:53     ` Bruce Ashfield
2014-09-08 19:55 ` Bruce Ashfield [this message]
2014-09-09 11:41   ` [PATCH 3/7] perf: fix v3.17 powerpc compilation issues Burton, Ross
2014-09-08 19:55 ` [PATCH 4/7] linux-yocto: introduce v3.17 Bruce Ashfield
2014-09-08 19:55 ` [PATCH 5/7] linux-yocto/3.10: update valleyisland-io merge branch Bruce Ashfield
2014-09-08 19:55 ` [PATCH 6/7] linux-yocto/3.14: configuration updates and feature merges Bruce Ashfield
2014-09-08 19:55 ` [PATCH 7/7] linux-yocto-dev: bump to v3.17+ Bruce Ashfield
2014-09-09 11:42 ` [PATCH 0/7] linux-yocto*: consolidated pull request Burton, Ross
2014-09-09 12:55   ` Bruce Ashfield

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4acec69d24f74514f78156cb21ed8e0f57e89532.1410205901.git.bruce.ashfield@windriver.com \
    --to=bruce.ashfield@windriver.com \
    --cc=openembedded-core@lists.openembedded.org \
    --cc=richard.purdie@linuxfoundation.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.