In the Linux kernel, I need to find the offsets of member variables of a struct that is used. For example, for the init_task which is of type task_struct, I would like the offsets of its pid and tasks.
I only have the vmlinux present for this. I can refer to the open source kernel code, but it may differ from the build I have.
Is it possible to get the offsets without the source ?
EDIT: The vmlinux is for ARM, and I may not always be able to run C code on the target device.