On Thu, Jul 08, 2004 at 11:36:12 -0300, so usp wrote: > What command if I what to trace system calls? You've been already told by others -- strace. But it's like ltrace -- just tells you what syscalls are called. If you want to know, what happens in kernel, you will need a full-blown kernel debugger. There are two ways. Either use user-mode-linux (http://user-mode-linux.sf.net), which runs linux in a userland process, so you can use gdb on it, or you will have to setup kgdb, but that is quite complicated. > > --- Jan Hudec <bulb@ucw.cz> escreveu: > On Thu, Jul > 08, 2004 at 10:24:09 -0300, so usp > > wrote: > > > I would like to know how do I do to trace down > > some > > > function, such as a system call, in order to know > > > exactly what it is doing. I tried 'ltrace cmd', > > but it > > > doesn't seem to show me what the function is > > doing. > > > Besides, I don't know how to trace down syscalls > > with > > > ltrace. > > > > Short answer: You can't. Ltrace does not do that. > > After all, ltrace is > > not the only tool in the world. > > > > Long answer. It depends on WHAT you want to trace. > > > > > ------------------------------------------------------------------------------- > > Jan 'Bulb' Hudec <bulb@ucw.cz> > > > > > ATTACHMENT part 2 application/pgp-signature > name=signature.asc > > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > ------------------------------------------------------------------------------- Jan 'Bulb' Hudec <bulb@ucw.cz>
Attachment:
signature.asc
Description: Digital signature