From patchwork Thu Jan 3 10:10:38 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kaiwan N Billimoria X-Patchwork-Id: 209205 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from silver.osuosl.org (silver.osuosl.org [140.211.166.136]) by ozlabs.org (Postfix) with ESMTP id 6C8852C0084 for ; Thu, 3 Jan 2013 21:11:04 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id F2DA12E2DA; Thu, 3 Jan 2013 10:11:02 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 6twhL9K3VXU1; Thu, 3 Jan 2013 10:11:02 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id BCDAB201FD; Thu, 3 Jan 2013 10:11:01 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 145E68F74B for ; Thu, 3 Jan 2013 10:11:06 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 0FC338AA85 for ; Thu, 3 Jan 2013 10:11:00 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9Px9EKJ2GsgA for ; Thu, 3 Jan 2013 10:10:59 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-ie0-f182.google.com (mail-ie0-f182.google.com [209.85.223.182]) by whitealder.osuosl.org (Postfix) with ESMTPS id 2EF51816D1 for ; Thu, 3 Jan 2013 10:10:59 +0000 (UTC) Received: by mail-ie0-f182.google.com with SMTP id s9so17843008iec.41 for ; Thu, 03 Jan 2013 02:10:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=fl4NJunkYzfRTispz+ERQ32fE3I0vT8qRtiGHJpP6w8=; b=YwcLBNYOXrNVhm7ni+mEGbIVgutqbVOJLuQGXVOwSMl33M3D43gwzbKWI5g6M91qbD P0M2/jfMeRMsfcxbx0eD5QjVFQSd8czIcq6WJJFIyjE/275ZqeQ4yIdRclxyd8DCWaqx uFKDKGvokbksNzWcl/XgpyKWY6LnCBagRAIAHFKyjc2rn43x7f8e6hfRPOhqXV76foOP E4+dSpGiRqRJSmc3EIVH9JFN0kfcNn3+yinQNmj6DQDSfZvR0xrPmqMQ5lDD179RhHKj mBJ9HZbk8fq2JuLjr6dIk55Yh3S3Yd/JjQn5+o6+aygJCJuvbMTY+cy9JHzcyQPC1oKQ j/tg== Received: by 10.50.7.234 with SMTP id m10mr42208130iga.43.1357207858565; Thu, 03 Jan 2013 02:10:58 -0800 (PST) MIME-Version: 1.0 Received: by 10.64.138.33 with HTTP; Thu, 3 Jan 2013 02:10:38 -0800 (PST) From: Kaiwan Billimoria Date: Thu, 3 Jan 2013 15:40:38 +0530 Message-ID: To: buildroot@busybox.net Subject: [Buildroot] [PATCH 3/3] Add perf tools support: kernel patch X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net Add perf tools support: this is the kernel patch. This is the kernel patch to be applied to the kernel in order for the kernel compile to go through; it basically adds a typedef. Signed-off-by: Kaiwan Billimoria --- linux/perf.patch | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 linux/perf.patch + #ifdef HAVE_CPLUS_DEMANGLE + diff --git a/linux/perf.patch b/linux/perf.patch new file mode 100644 index 0000000..0fba468 --- /dev/null +++ b/linux/perf.patch @@ -0,0 +1,26 @@ +--- linux-3.2.21.orig//tools/perf/util/gelf.h 2013-01-01 16:01:11.736902336 +0530 ++++ linux-3.2.21/tools/perf/util/gelf.h 2013-01-01 16:03:58.076895032 +0530 +@@ -0,0 +1,10 @@ ++#ifndef __GELF_NHDR__ ++#include ++#include ++ ++#if __LIBELF64 ++typedef Elf64_Nhdr GElf_Nhdr; ++#else ++typedef Elf32_Nhdr GElf_Nhdr; ++#endif ++#endif +Index: linux-3.2.21/tools/perf/util/symbol.h +====================================================== +--- linux-3.2.21.orig//tools/perf/util/symbol.h 2013-01-01 16:01:11.836902336 +0530 ++++ linux-3.2.21/tools/perf/util/symbol.h 2013-01-01 16:03:58.176895032 +0530 +@@ -7,6 +7,7 @@ + #include "map.h" + #include + #include ++#include "gelf.h" + #include +