qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] Translation block identification.
@ 2018-05-01  9:28 Rafael Kioji
  2018-05-01 10:04 ` Alex Bennée
  0 siblings, 1 reply; 6+ messages in thread
From: Rafael Kioji @ 2018-05-01  9:28 UTC (permalink / raw)
  To: qemu-devel

Dear all,

During translation how can I identify what is the basic block of the 
guest code? I wanted to know whether the block being translated is the 
beginning of a function and get its name.

My current approach involves looking up the symbol associated with the 
first PC of the translation block. But no symbol is ever found. What I 
did was to add the following code in the function "translator_loop" at 
"accel/tcg/translator.c":

     printf("sym: %lu %s\n", tb->pc, lookup_symbol(tb->pc));

The function lookup_symbol is defined in the file "./disas.c". I am 
compiling my application with symbols (-g). My target arch is ARM.

Thanks!


Kind regards,
Rafael

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2018-05-01 10:47 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-05-01  9:28 [Qemu-devel] Translation block identification Rafael Kioji
2018-05-01 10:04 ` Alex Bennée
2018-05-01 10:20   ` Rafael Kioji
2018-05-01 10:28     ` Peter Maydell
2018-05-01 10:47       ` Rafael Kioji
2018-05-01 10:43     ` Alex Bennée

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).