aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-kernel/linux/files/features/perf/perf-annotate-replace-expand-with-equivalent-sed-exp.patch
blob: dd807c0c468445802bc1ec39d8a7613d665387fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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 : "",