aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-kernel/linux/files/features/perf/perf-annotate-replace-expand-with-equivalent-sed-exp.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-kernel/linux/files/features/perf/perf-annotate-replace-expand-with-equivalent-sed-exp.patch')
-rw-r--r--recipes-kernel/linux/files/features/perf/perf-annotate-replace-expand-with-equivalent-sed-exp.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/recipes-kernel/linux/files/features/perf/perf-annotate-replace-expand-with-equivalent-sed-exp.patch b/recipes-kernel/linux/files/features/perf/perf-annotate-replace-expand-with-equivalent-sed-exp.patch
new file mode 100644
index 0000000..dd807c0
--- /dev/null
+++ b/recipes-kernel/linux/files/features/perf/perf-annotate-replace-expand-with-equivalent-sed-exp.patch
@@ -0,0 +1,23 @@
+From 449f7f520350700858f21a5554b81cc8ad23267d Mon Sep 17 00:00:00 2001
+From: Tom Zanussi <tom.zanussi@intel.com>
+Date: Fri, 5 Oct 2012 11:35:26 -0500
+Subject: [PATCH 2/2] perf annotate: replace 'expand' with equivalent sed
+ expression
+
+We don't have 'expand' in our userspace so we need to accomplish the
+same thing using 'sed', which we do have.
+
+Signed-off-by: Tom Zanussi <tom.zanussi@intel.com>
+diff --git a/tools/perf/util/annotate.c b/tools/perf/util/annotate.c
+index f0a9103..6b7bef1 100644
+--- a/tools/perf/util/annotate.c
++++ b/tools/perf/util/annotate.c
+@@ -823,7 +823,7 @@ fallback:
+ snprintf(command, sizeof(command),
+ "%s %s%s --start-address=0x%016" PRIx64
+ " --stop-address=0x%016" PRIx64
+- " -d %s %s -C %s|grep -v %s|expand",
++ " -d %s %s -C %s|grep -v %s|sed 's/\t/ /g'",
+ objdump_path ? objdump_path : "objdump",
+ disassembler_style ? "-M " : "",
+ disassembler_style ? disassembler_style : "",