Skip to contentSkip to conversation

QEMU+Aarch64: in_asm log skips instructions of loop-programs

Qemu-devel Sergey Smolov 3 participants 8 messages Sep 3, 2015 – Nov 3, 2015 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

-------- Перенаправленное сообщение --------
Тема: 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

#2 lore raw
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

#3 lore raw

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

#4 lore raw
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

#5 lore raw

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
#6 lore raw

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

#7 lore raw
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
#8 lore raw

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