On Jan 7, 2008 7:56 PM, Binyamin Dissen <[EMAIL PROTECTED]> wrote:
> I would like an assembler (or offset map) of task_struct. It is defined in
> sched.h with quite a few subdefinitions.
>
> How can I request this of GCC (or AS)?
Have a look at the Kerntypes file in /boot (with objdump -g )
Not as nice as proper control block layout, but I found it helpful in
reading a dump.
struct task_struct { /* size 1472 id 17 */
long int state; /* bitsize 64, bitpos 0 */
struct thread_info /* id 50 */ *thread_info; /* bitsize 64, bitpos 64 */
struct %anon24 usage; /* bitsize 32, bitpos 128 */
long unsigned int flags; /* bitsize 64, bitpos 192 */
long unsigned int ptrace; /* bitsize 64, bitpos 256 */
int lock_depth; /* bitsize 32, bitpos 320 */
int prio; /* bitsize 32, bitpos 352 */
int static_prio; /* bitsize 32, bitpos 384 */
struct list_head /* id 14 */ run_list; /* bitsize 128, bitpos 448 */
prio_array_t *array; /* bitsize 64, bitpos 576 */
----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390