Re:Re: QEMU function trace

2022-12-14 Thread wanghw364
Thanks very much. According to your reply, I reviewd qemu loader and plugins source code again, I think I've got what you mentioned. In qemu linux-user(user mode) case, the guest images are all ELF format, and inside the ELF loader qemu will call load_symbols function, so in this case, the s

Re: QEMU function trace

2022-12-14 Thread Alex Bennée
Claudio Fontana writes: > On 12/14/22 12:00, Alex Bennée wrote: >> >> Alex Bennée writes: >> >>> wanghw364 writes: >>> Thanks. I have several questions as below, please help, thanks. 1.What do you mean by "only have debug symbols available for linux-user so"? What does

Re: QEMU function trace

2022-12-14 Thread Claudio Fontana
On 12/14/22 12:00, Alex Bennée wrote: > > Alex Bennée writes: > >> wanghw364 writes: >> >>> Thanks. I have several questions as below, please help, thanks. >>> >>> 1.What do you mean by "only have debug symbols available for linux-user >>> so"? What does the linux-user so >>> refer to? >>> q

Re: QEMU function trace

2022-12-14 Thread Alex Bennée
Alex Bennée writes: > wanghw364 writes: > >> Thanks. I have several questions as below, please help, thanks. >> >> 1.What do you mean by "only have debug symbols available for linux-user so"? >> What does the linux-user so >> refer to? >> qemu_plugin_insn_symbol() can only see symbols from

Re: QEMU function trace

2022-12-14 Thread Alex Bennée
wanghw364 writes: > Thanks. I have several questions as below, please help, thanks. > > 1.What do you mean by "only have debug symbols available for linux-user so"? > What does the linux-user so > refer to? > qemu_plugin_insn_symbol() can only see symbols from linux-user so? The linux-user

Re:Re: QEMU function trace

2022-12-14 Thread wanghw364
Thanks. I have several questions as below, please help, thanks. 1.What do you mean by "only have debug symbols available for linux-user so"? What does the linux-user so refer to? qemu_plugin_insn_symbol() can only see symbols from linux-user so? 2.The purpose of teaching the linux kernel load

Re: QEMU function trace

2022-12-13 Thread Alex Bennée
wanghw364 writes: > Hi all, > > Does qemu-system-riscv64 have any plugin or tools that can support target > program function trace feature? > > It seems there is no such feature under > link:https://gitlab.com/qemu-project/qemu/-/blob/master/docs/devel/tcg-plugins.rst > > > For example, we c

QEMU function trace

2022-12-13 Thread wanghw364
Hi all, Does qemu-system-riscv64 have any plugin or tools that can support target program function trace feature? It seems there is no such feature under link:https://gitlab.com/qemu-project/qemu/-/blob/master/docs/devel/tcg-plugins.rst For example, we can use libexeclog.so plugin to tra