Hello,
I'm studying how to get kernel symbol address. In my understanding, I
think I must provide an existing symbol name and call
'ThreadInfo::get_data' method to get the address. But In the
'ThreadInfo::curTaskPID' method, it call 'get_data("task_struct_pid",
offset)' to get the address of 'task_struct_pid' symbol. When I use
'nm' to check kernel image, I cannot find the 'task_struct_pid'
symbol. Similarly, when I check the 'thread_info_task',
'task_struct_tgid' and other symbols mentioned in 'ThreadInfo' class,
I cannot find them either. So I have been confused. Is there any
special compilation and linkage method through which I can make the
kernel image preserve these symbols?Thanks, Meng Wang _______________________________________________ gem5-dev mailing list [email protected] http://m5sim.org/mailman/listinfo/gem5-dev
