Hi there,

I tried to use funtions in the file "threadinfo.hh" to get PID and
ProcessName, but it got nothing but warning "Kernel not compiled with
task_struct info". I used the BBench files to do all the stuff. Could
anybody tell me how to recompile the kernel to contain "task_struct info"?

In gem5's website, I found the guide below to build linux kernel step by
step:

*Now, to build the 2.6.35 kernel.*

   1. Get the kernel source: git clone
   git://linux-arm.org/linux-2.6-armdroid.git -b 2.6.35-armdroid
   2. Get the 2.6.35 config file packaged with the linux kernel above.
   3. Copy it to the kernel source directory as .config.
   4. Build the kernel source: make ARCH=arm
   CROSS_COMPILE=arm-none-linux-gnueabi- -jn vmlinux
   EXTRA_CFLAGS=-mno-unaligned-access


Could anybody tell me in detail how to modify those steps to get a kernel
which has "task_struct info" in it?

Thanks very much.

Best regards,
_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to