Hi Tianyun, There isn't a particularly easy way because it's difficult to know what application is running (it can be done though) and then when you know that you need to get symbols which are only on the disk image. If you have a particular app you should be able to hack gem5 a bit and read in the symbols of that particular binary and monitor when the kernel switches processes and if the name of the process is equal to the one you're interested in use the symbol file that you loaded, but it will take a bit of work.
Ali On Apr 6, 2013, at 5:39 PM, Tianyun Zhang <[email protected]> wrote: > Hi All, > > I am trying to print the symbol address so that I can get the function > name of my benchmarks such as @_libc_start_main, @getenv and @main etc. > > I changed the code so that even the system is in User Mode, the symbol > address can still be printed out. I managed to do so in SE mode and got all > the function names I need. But in full system mode, the symbol address are > all "@phys_startup_64". > > I am wondering if there's some way I can print the function names in full > system mode as I did in SE mode? > > Thank you so much! > > -Best > _______________________________________________ > gem5-users mailing list > [email protected] > http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
_______________________________________________ gem5-users mailing list [email protected] http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
