Thread (5 messages) 5 messages, 3 authors, 2021-09-13

Re: [PATCH v2 1/2] perf annotate: Fix fused instr logic for assembly functions

From: Arnaldo Carvalho de Melo <acme@kernel.org>
Date: 2021-09-13 19:53:39
Also in: lkml

Em Mon, Sep 13, 2021 at 09:54:00AM +0800, Jin, Yao escreveu:
Hi Arnaldo, Ravi

On 9/12/2021 3:03 AM, Arnaldo Carvalho de Melo wrote:
quoted
Em Sat, Sep 11, 2021 at 10:08:53AM +0530, Ravi Bangoria escreveu:
quoted
Some x86 microarchitectures fuse a subset of cmp/test/ALU instructions
with branch instructions, and thus perf annotate highlight such valid
pairs as fused.
Jin, are you ok with this? Can I have your reviewed-by?

- Arnaldo
Oh, my original patch could only handle the case like:

cmp xxx
je  aaa

But it didn't consider Ravi's case something like:

cmp xxx
cmp yyy
je  aaa
je  bbb

Thanks for Ravi fixing this issue! Backward searching is probably a better solution.

Frankly I can't reproduce Ravi's case, but for my test suite, Ravi's patch works as well.

Reviewed-by: Jin Yao <redacted>
Thanks, applied.

- Arnaldo
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help