]> sourceware.org Git - systemtap.git/commit
Remove arch specific _stp_probing_32bit_app() and _stp_get_regparm().
authorMark Wielaard <mjw@redhat.com>
Mon, 19 Sep 2011 13:42:19 +0000 (15:42 +0200)
committerMark Wielaard <mjw@redhat.com>
Mon, 19 Sep 2011 13:52:40 +0000 (15:52 +0200)
commit967ec1f55256eb2d601ce0be5916bb46085f36db
treef1a3d28c5094535ce342af92d97c52a43988a6c9
parent52dd8bd8b27650431f3362312411891fde7b3c58
Remove arch specific _stp_probing_32bit_app() and _stp_get_regparm().

Both functions were doing more than necessary and didn't actually need
access to the current regs. _STP_PROBE_STATE_USER_MODE tells us whether
the current probe triggered in user mode. _stp_is_compat_task() tells
us whether the current task is a 32-on-64 process.

* runtime/compatdefs.h (_stp_is_compat_task): Defined also when CONFIG_COMPAT
  is undefined (to always return false).
* runtime/loc2c-runtime.h: u_fetch_register() and u_store_register() are
  only called from user space dwarf context. Only needs _stp_is_compat_task()
  test.
* runtime/regs.c: Remove arch specific _stp_probing_32bit_app() and
  _stp_get_regparm() functions.
* tapset/i386/registers.stp (_stp_arg): Check regparm directly.
* tapset/powerpc/registers.stp (probing_32bit_app): Use _stp_is_compat_task()
  test.
* tapset/s390/registers.stp (probing_32bit_app): Likewise.
* tapset/x86_64/registers.stp (_stp_arg): Check regparm directly.
  (probing_32bit_app): Use _stp_is_compat_task() test.
  (regparm): Likewise.
runtime/compatdefs.h
runtime/loc2c-runtime.h
runtime/regs.c
tapset/i386/registers.stp
tapset/powerpc/registers.stp
tapset/s390/registers.stp
tapset/x86_64/registers.stp
This page took 0.029635 seconds and 5 git commands to generate.