QEMU+Aarch64: in_asm log skips instructions of loop-programs
-------- Перенаправленное сообщение --------
Тема: Re: [Qemu-devel] QEMU+Aarch64: in_asm log skips instructions of loop-programs
Дата: Thu, 03 Sep 2015 18:22:16 +0300
От: Sergey Smolov <[email protected]>
Кому: Richard Henderson <[email protected]>
Richard Henderson писал 2015-09-03 17:28:
Quoted 9 lines · Peter Maydell
Quoted 2 lines
You might find the 'exec' logging helpful for tracking which translated blocks get executed.
Even then you will of course only log the head of unlinked chains of blocks.
r~
Do you think it is possible to implement another QEMU logger which will make a record for every executed block, and these records will be in the form of input assembler (in my case, Aarch64)?
Thanks,
Sergey Smolov
Quoted 2 lines · Sergey Smolov
Do you think it is possible to implement another QEMU logger which will make a record for every executed block,
Yes (this would just need to disable the TB linking optimisation, which we've discussed providing a debug toggle for in another thread).
Quoted 2 lines
and these records will be in the
form of input assembler (in my case, Aarch64)?
No. At execution time we don't have the input assembler. You need to match up the TB addresses in the execution logs with the translation logs to find the input asm.
thanks
-- PMM
03.09.2015 19:35, Peter Maydell пишет:
Quoted 6 lines · Sergey Smolov
Quoted 2 lines
Do you think it is possible to implement another QEMU logger which will make a record for every executed block,
Yes (this would just need to disable the TB linking optimisation, which we've discussed providing a debug toggle for in another thread).
Sorry, are you talking about this patch: https://lists.gnu.org/archive/html/qemu-devel/2014-03/msg05603.html?
Will this be added to QEMU master in the nearest future?
Thanks,
Sergey Smolov
Quoted 9 lines
03.09.2015 19:35, Peter Maydell пишет:
Quoted 6 lines · Sergey Smolov
Quoted 2 lines
Do you think it is possible to implement another QEMU logger which will make a record for every executed block,
Yes (this would just need to disable the TB linking optimisation, which we've discussed providing a debug toggle for in another thread).
Ok, I've implemented a mapping between disassembled forms of instructions and executed TBs. Now my logger does "loop unrolling" successfully.
Thank you very much for your help!
Sergey Smolov
Hi Sergey,
Quoted 6 lines · Sergey Smolov
Quoted 6 lines
03.09.2015 19:35, Peter Maydell пишет:
Quoted 3 lines · Sergey Smolov
Quoted 2 lines
Do you think it is possible to implement another QEMU logger which will make a record for every executed block,
Quoted 7 lines
Quoted 3 lines
Quoted 3 lines
Yes (this would just need to disable the TB linking optimisation, which we've discussed providing a debug toggle for in another thread).
Ok, I've implemented a mapping between disassembled forms of instructions and executed TBs.
Now my logger does "loop unrolling" successfully.
This sounds like it solves the same issue as -d nochain but in what's probably a more time efficient manner. Are you able to share your implementation?
Thanks,
Christopher Covington
Signature · 3 lines
Qualcomm Innovation Center, Inc. The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project
Hi Christopher,
18.09.2015 02:02, Christopher Covington пишет:
Quoted 10 lines
Hi Sergey,
Quoted 7 lines · Sergey Smolov
Quoted 7 lines
03.09.2015 19:35, Peter Maydell пишет:
Quoted 6 lines · Sergey Smolov
Quoted 2 lines
Do you think it is possible to implement another QEMU logger which will make a record for every executed block,
Yes (this would just need to disable the TB linking optimisation, which we've discussed providing a debug toggle for in another thread).
Quoted 9 lines
Quoted 3 lines
Ok, I've implemented a mapping between disassembled forms of instructions and executed TBs.
Now my logger does "loop unrolling" successfully.This sounds like it solves the same issue as -d nochain but in what's probably a more time efficient manner. Are you able to share your implementation?
Thanks,
Christopher Covington
In which way should I share it? Am I need to create a patch and send it to mailing list?
Sergey Smolov
Quoted 13 lines · Sergey Smolov
Hi Christopher,
18.09.2015 02:02, Christopher Covington пишет:
Quoted 10 lines
Hi Sergey,
Quoted 7 lines · Sergey Smolov
Quoted 7 lines
03.09.2015 19:35, Peter Maydell пишет:
Quoted 6 lines · Sergey Smolov
Quoted 2 lines
Do you think it is possible to implement another QEMU logger which will make a record for every executed block,
Yes (this would just need to disable the TB linking optimisation, which we've discussed providing a debug toggle for in another thread).
Quoted 8 lines
Quoted 5 lines
Quoted 3 lines
Ok, I've implemented a mapping between disassembled forms of instructions and executed TBs.
Now my logger does "loop unrolling" successfully.This sounds like it solves the same issue as -d nochain but in what's probably a more time efficient manner. Are you able to share your implementation?
In which way should I share it? Am I need to create a patch and send it to mailing list?
That would be ideal. If you're not familiar with the process, just let me know and I'd be happy to help.
Thanks,
Christopher Covington
Signature · 3 lines
Qualcomm Innovation Center, Inc. The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project
Hi Christopher,
I've send my patch to the mailing list. Sorry for the great delay in answers.
18.09.2015 18:26, Christopher Covington пишет:
Quoted 27 lines · Sergey Smolov
Quoted 13 lines
Hi Christopher,
18.09.2015 02:02, Christopher Covington пишет:
Quoted 10 lines
Hi Sergey,
Quoted 7 lines · Sergey Smolov
Quoted 7 lines
03.09.2015 19:35, Peter Maydell пишет:
Quoted 6 lines · Sergey Smolov
Quoted 2 lines
Do you think it is possible to implement another QEMU logger which will make a record for every executed block,
Yes (this would just need to disable the TB linking optimisation, which we've discussed providing a debug toggle for in another thread).
Quoted 7 lines
Quoted 5 lines
Quoted 3 lines
Ok, I've implemented a mapping between disassembled forms of instructions and executed TBs.
Now my logger does "loop unrolling" successfully.This sounds like it solves the same issue as -d nochain but in what's probably a more time efficient manner. Are you able to share your implementation?
In which way should I share it? Am I need to create a patch and send it to mailing list?
That would be ideal. If you're not familiar with the process, just let me know and I'd be happy to help.
Thanks,
Christopher Covington