From patchwork Thu Jan 3 07:51:44 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [3/3] Add perf tools support: this is the kernel patch to be applied to the kernel for kernel compile to go through; it basically adds a typedef. Date: Wed, 02 Jan 2013 21:51:44 -0000 From: Kaiwan Billimoria X-Patchwork-Id: 209192 Message-Id: To: buildroot@busybox.net Add perf tools support: this is the kernel patch to be applied to the kernel for 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 +