]> sourceware.org Git - systemtap.git/commit
(PR14488 partial fix) Make memory reading more robust.
authorDavid Smith <dsmith@redhat.com>
Fri, 7 Sep 2012 19:57:18 +0000 (14:57 -0500)
committerDavid Smith <dsmith@redhat.com>
Fri, 7 Sep 2012 19:57:18 +0000 (14:57 -0500)
commitfa696039448ed6a6f72c6ecac8e7e664820cbf6e
treed410468e9e7299826a8df911b34e6097d4360b82
parent54bc339259541f65766d2c1aacf2f23e5b8d06f6
(PR14488 partial fix) Make memory reading more robust.

* runtime/dyninst/runtime.h (assert_is_myproc): New dummy macro.
  (stp_dummy_init): Opens the /proc/self/mem file.
  (stp_dummy_exit): Close the file.
* runtime/dyninst/linux_defs.h (user_mode): New dummy macro.
  (__copy_from_user): Rewrote to read memory from /proc/self/mem, to be
  able to catch errors.
* runtime/stp_string.h (__stp_get_user): Always use __get_user(), no
  matter what arch we're on in dyninst mode.
* tapset/uconversions.stp: Moved from tapset/linux/uconversions.stp, since
  the dyninst runtime can use the functions also.
runtime/dyninst/linux_defs.h
runtime/dyninst/runtime.h
runtime/stp_string.h
tapset/uconversions.stp [moved from tapset/linux/uconversions.stp with 100% similarity]
This page took 0.024837 seconds and 5 git commands to generate.