title: vmlinux ELF find offsets for members of a given struct
body: <p>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. </p>
  
  <p>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.</p>
  
  <p>Is it possible to get the offsets without the source ?</p>
  
  <p>EDIT: The vmlinux is for ARM, and I may not always be able to run C code on the target device.</p>