[linux-yocto] [PATCH 1/2] perf annotate: replace 'expand' with equivalent sed expression
tom.zanussi at intel.com
tom.zanussi at intel.com
Fri Oct 5 09:35:26 PDT 2012
From: Tom Zanussi <tom.zanussi at intel.com>
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 at intel.com>
---
tools/perf/util/annotate.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/perf/util/annotate.c b/tools/perf/util/annotate.c
index 08c6d13..5594936 100644
--- a/tools/perf/util/annotate.c
+++ b/tools/perf/util/annotate.c
@@ -330,7 +330,7 @@ fallback:
snprintf(command, sizeof(command),
"objdump %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'",
disassembler_style ? "-M " : "",
disassembler_style ? disassembler_style : "",
map__rip_2objdump(map, sym->start),
--
1.7.11.4
More information about the linux-yocto
mailing list