Re: Process Debugging questions




On Tue, 21 Nov 2006, Alexander Leidinger wrote:

Quoting Robert Watson <rwatson@xxxxxxxxxxx> (from Tue, 21 Nov 2006 11:55:37 +0000 (GMT)):

Anyone who wants to start looking at a new API should make sure they look at ptrace() and procfs across a range of platforms, and also look at Mach task ports and what they offer. One of the things we really can't do well with ptrace() today is inspect kernel state for a running process -- things like the VM layout, etc. We should make sure any next generation system allows this, because that feature alone is the reason why I sometimes mount procfs. :-)

Can you please elaborate what features you have in mind which DTrace isn't able to deliver?

/proc/curproc/map

Robert N M Watson
Computer Laboratory
University of Cambridge
_______________________________________________
freebsd-hackers@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: Process Debugging questions
    ... at Mach task ports and what they offer. ... can't do well with ptrace() today is inspect kernel state for a running ... because that feature alone is the ... reason why I sometimes mount procfs. ...
    (freebsd-hackers)
  • Re: Process Debugging questions
    ... One of the things we really can't do well with ptrace() today is inspect kernel state for a running process -- things like the VM layout, ... We should make sure any next generation system allows this, because that feature alone is the reason why I sometimes mount procfs. ... Can you please elaborate what features you have in mind which DTrace isn't able to deliver? ...
    (freebsd-hackers)
  • Re: [Review] Remove procfs dependency of truss
    ... it's unfortunate that these aren't documented and ptrace seems to ... I ran across this while starting to work on switching gcore from procfs ... first thread in the process. ...
    (freebsd-current)
  • Re: reading process memory
    ... the parent, you will have to "attach" to the process. ... probably through a system call to ptrace or writing to the procfs ctl directory. ...
    (freebsd-questions)
  • Re: Process Debugging questions
    ... The functionality provided by the /proc filesystem is the same as that provided by ptrace; if differs only in its interface. ... procfs has been a major source of security vulnerabilities for all major UNIX platforms that have used it. ...
    (freebsd-hackers)