This is an archive of the discontinued LLVM Phabricator instance.

Fixed relative address in LNT profile control-flow graph.
ClosedPublic

Authored by kpdev42 on Sep 21 2021, 2:50 AM.

Details

Summary

It seems the relative address in AArch64 disassembly is dec, not hex.

Diff Detail

Repository
rLNT LNT

Event Timeline

kpdev42 created this revision.Sep 21 2021, 2:50 AM
kpdev42 requested review of this revision.Sep 21 2021, 2:50 AM
tnfchris requested changes to this revision.Sep 21 2021, 3:14 AM
tnfchris added a subscriber: tnfchris.
tnfchris added inline comments.
lnt/server/ui/static/lnt_profile.js
140–144

Thanks for the patch! How about checking for the 0x to determine whether it's dec or hex. This would be more robust. and do the same for the absolute address part below.

This revision now requires changes to proceed.Sep 21 2021, 3:14 AM
kpdev42 updated this revision to Diff 373852.Sep 21 2021, 4:25 AM

Choose base depending on address string format

Herald added a project: Restricted Project. · View Herald TranscriptSep 21 2021, 4:25 AM
kpdev42 updated this revision to Diff 373858.Sep 21 2021, 4:33 AM
kpdev42 marked an inline comment as done.
kpdev42 added inline comments.Sep 21 2021, 4:36 AM
lnt/server/ui/static/lnt_profile.js
140–144

Thank you for review, please check these changes )

tnfchris accepted this revision.Sep 21 2021, 4:36 AM
tnfchris added a subscriber: thopre.

Thanks! looks good to me but @thopre do you know what's up with the CI?

This revision is now accepted and ready to land.Sep 21 2021, 4:36 AM

Thanks! looks good to me but @thopre do you know what's up with the CI?

I think the base commit is not in the repo that runs the CI. See what happened to me before I run git fetch:

% git show 6a3f7bbaa221aa13acb72947363acbc95a1bf583:lnt/server/ui/static/lnt_profile.js
fatal: Path 'lnt/server/ui/static/lnt_profile.js' exists on disk, but not in '6a3f7bbaa221aa13acb72947363acbc95a1bf583'

Can you rebase the patch @kpdev42 ?

Hm... this patch is on top of 6ba06570364b936c6bfb631e9d2e4f1374446bad ( https://github.com/llvm/llvm-lnt/commit/6ba06570364b936c6bfb631e9d2e4f1374446bad )
And file lnt/server/ui/static/lnt_profile.js is presented there for sure
Maybe I did something wrong when created this revision and now this patch cannot be applied properly

Hmm 6ba06570364b936c6bfb631e9d2e4f1374446bad is a very odd commit... why did that go in without any reviews..

Yep, I think it is better for me to resubmit revision

This is weird, your base commit is on https://reviews.llvm.org/rLNT6a3f7bbaa221aa13acb72947363acbc95a1bf583, but 6ba06570364b936c6bfb631e9d2e4f1374446bad was identical to this original change.

Ah that's probably why it fails. I've reverted 6ba06570364b936c6bfb631e9d2e4f1374446bad. Did you push 6ba06570364b936c6bfb631e9d2e4f1374446bad by mistake @slydiman ? I'll revert it and land this change

kpdev42 added a comment.EditedSep 21 2021, 7:09 AM

I think it is no need to revert 6ba06570364b936c6bfb631e9d2e4f1374446bad - it looks like right solution
I've moved my changes to https://reviews.llvm.org/D110174

This revision was landed with ongoing or failed builds.Sep 21 2021, 7:13 AM
This revision was automatically updated to reflect the committed changes.

I think it is no need to revert 6ba06570364b936c6bfb631e9d2e4f1374446bad - it looks like right solution
I've moved my changes to https://reviews.llvm.org/D110174

Argh sorry too late. Should I revert everything then or are we all good?

I think it is no need to revert 6ba06570364b936c6bfb631e9d2e4f1374446bad - it looks like right solution
I've moved my changes to https://reviews.llvm.org/D110174

Argh sorry too late. Should I revert everything then or are we all good?

No it's fine , we're good now. I don't like 6ba06570364b936c6bfb631e9d2e4f1374446bad because it assumes consistencies between disassemblers which is not the case.