Re: Context of a kernel routine

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Replying to all.

Or you can set a timer which interrupts and checks the stack and prints stack out. But you will get address of the instruction in the function. 

you can see dtrace concept of hacking stack to insert callback functions to trace callee. 

Regards,
Sri.

On Sat, Sep 18, 2010 at 10:42 PM, Mulyadi Santosa <mulyadi.santosa@xxxxxxxxx> wrote:
Hi..

On Sun, Sep 19, 2010 at 08:50, Vimal <j.vimal@xxxxxxxxx> wrote:
> Most of the times, I just end up tracing the code path manually from
> the source code.  I have another question, though:  Is it possible in
> gdb to break on all function calls?  Would be useful. :)


None that I know :) But maybe that is doable inside system emulator
such as Qemu. You need to trap the call of "call", "far jmp" or things
like that. But the problem here is it is done system widely...thus you
need a way to selectively filter which function calls you want to trap
and which ones are not

--
regards,

Mulyadi Santosa
Freelance Linux trainer and consultant

blog: the-hydra.blogspot.com
training: mulyaditraining.blogspot.com

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ




--
Regards,
Sri.


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux