On Mon, 7 Jan 2008 23:21:28 +0100 Rob van der Heij <[EMAIL PROTECTED]> wrote:
:>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 */
That looks great. I should be able to write a REXX to reformat it into a more
useable form.
I take it that this is output from the original kernel build and matches the
running kernel.
--
Binyamin Dissen <[EMAIL PROTECTED]>
http://www.dissensoftware.com
Director, Dissen Software, Bar & Grill - Israel
Should you use the mailblocks package and expect a response from me,
you should preauthorize the dissensoftware.com domain.
I very rarely bother responding to challenge/response systems,
especially those from irresponsible companies.
----------------------------------------------------------------------
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