Re: ptrace vs /proc

From: Pradeep Padala (ppadala@cise.ufl.edu)
Date: Thu Jun 20 2002 - 16:46:07 EST


> Linux already posesses modular support for a /proc filesystem, every distribution, and I believe the stock kernel config includes support for this under the filesystems section by default.

I should have been clearer. I would like to know about the features ptrace
supports like "system call tracing", "setting breakpoints" etc.
Traditionally they were done through ptrace interface. In solaris and I
guess in other operating systems like IRIX, they are moved to /proc
interface. Applications wanting to trace programs like gdb, would use
ioctl on the /proc/<pid> and trace the programs.

As far as I could investigate, I didn't find any such interface in linux.
Programs like strace do the tracing through ptrace only.

Please let me know if you know more about this.

--pradeep

-
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 Jun 23 2002 - 22:00:23 EST