summaryrefslogtreecommitdiffstats
path: root/tools/perf/ui/browsers/res_sample.c
diff options
context:
space:
mode:
authorChangbin Du <changbin.du@huawei.com>2024-02-17 15:40:46 +0800
committerNamhyung Kim <namhyung@kernel.org>2024-02-20 18:07:34 -0800
commit659663f0bccce884059985d5e43e066419cda4e2 (patch)
tree261442a08f304cdea7bab77473229f16e20e715c /tools/perf/ui/browsers/res_sample.c
parent6750ba4b6442fa5ea4bf5c0e4b4ff8b0249ef71d (diff)
downloadlinux-stable-659663f0bccce884059985d5e43e066419cda4e2.tar.gz
linux-stable-659663f0bccce884059985d5e43e066419cda4e2.tar.bz2
linux-stable-659663f0bccce884059985d5e43e066419cda4e2.zip
perf: script: prefer capstone to XED
Now perf can show assembly instructions with libcapstone for x86, and the capstone is better in general. Signed-off-by: Changbin Du <changbin.du@huawei.com> Reviewed-by: Adrian Hunter <adrian.hunter@intel.com> Cc: changbin.du@gmail.com Cc: Thomas Richter <tmricht@linux.ibm.com> Cc: Andi Kleen <ak@linux.intel.com> Signed-off-by: Namhyung Kim <namhyung@kernel.org> Link: https://lore.kernel.org/r/20240217074046.4100789-6-changbin.du@huawei.com
Diffstat (limited to 'tools/perf/ui/browsers/res_sample.c')
-rw-r--r--tools/perf/ui/browsers/res_sample.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/ui/browsers/res_sample.c b/tools/perf/ui/browsers/res_sample.c
index 7cb2d6678039..5f60e515b12e 100644
--- a/tools/perf/ui/browsers/res_sample.c
+++ b/tools/perf/ui/browsers/res_sample.c
@@ -83,7 +83,7 @@ int res_sample_browse(struct res_sample *res_samples, int num_res,
r->tid ? "--tid " : "",
r->tid ? (sprintf(tidbuf, "%d", r->tid), tidbuf) : "",
extra_format,
- rstype == A_ASM ? "-F +insn --xed" :
+ rstype == A_ASM ? "-F +disasm" :
rstype == A_SOURCE ? "-F +srcline,+srccode" : "",
symbol_conf.inline_name ? "--inline" : "",
"--show-lost-events ",