Stepping through entry.S

From: Sridhar N (srin@symonds.net)
Date: Tue Apr 02 2002 - 21:25:31 EST


Hello,
        I was trying to trace the handling of the system calls, and to step through
the entry.S on i386 machine. I basically used this:

        srin_entryS_debug_mesg: #My addition
                .asciz "some relevant message\n"
                ALIGN
        tracesys: #haven't changed anything here..
                .
                .
                .
                jae tracesys_exit
                pushl $srin_entryS_debug_mesg #just this
                call SYMBOL_NAME(printk) # and this
                call *SYMBOL_NAME(sys_call_table)(,%eax,4)
                movl %eax,EAX(%esp) # save the return value
        tracesys_exit:

Shouldn't this call printk everytime a system call is made or atleast crash
the kernel if something is dead wrong ? ( It isn't .. everything seems normal
as though the printk isn't there ) Also, how can i know the values in the
specific registers in that file ? Specifically, whenever a system call is
made, what registers store what values ? I'm using kernel 2.4.7 on a K6-2.

Sridhar

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sun Apr 07 2002 - 22:00:10 EST