How can I search the memory state of an process in Linux? Specifically I wish to identify certain regions of interest, and peek at them at regular intervals, possibly occasionally poking new values.

I suspect an answer may involve calls to [ptrace()](http://www.kernel.org/doc/man-pages/online/pages/man2/ptrace.2.html), and reading [/proc/[pid]/mem](http://www.kernel.org/doc/man-pages/online/pages/man5/proc.5.html), but need more to go on.