diff options
author | Josh Stone <joshua.i.stone@intel.com> | 2008-06-13 19:32:59 -0700 |
---|---|---|
committer | Josh Stone <joshua.i.stone@intel.com> | 2008-06-13 19:38:35 -0700 |
commit | e8402528a3e3f77fa804904e875453039ed4abee (patch) | |
tree | ca57302fdf673e85191ccc1d78c31e9581df86c9 /tapset/x86_64 | |
parent | 9d0808b420815955053cd503e9fc2ab1180f70b6 (diff) | |
download | systemtap-steved-e8402528a3e3f77fa804904e875453039ed4abee.tar.gz systemtap-steved-e8402528a3e3f77fa804904e875453039ed4abee.tar.xz systemtap-steved-e8402528a3e3f77fa804904e875453039ed4abee.zip |
Add 'pure' to embedded-C functions that deserve it
Diffstat (limited to 'tapset/x86_64')
-rw-r--r-- | tapset/x86_64/registers.stp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tapset/x86_64/registers.stp b/tapset/x86_64/registers.stp index 35c8ce49..99c39e18 100644 --- a/tapset/x86_64/registers.stp +++ b/tapset/x86_64/registers.stp @@ -38,7 +38,7 @@ function _stp_register_regs() { _stp_regs_registered = 1 } -function _stp_get_register_by_offset:long (offset:long) %{ +function _stp_get_register_by_offset:long (offset:long) %{ /* pure */ long value; memcpy(&value, ((char *)CONTEXT->regs) + THIS->offset, sizeof(value)); THIS->__retvalue = value; @@ -48,7 +48,7 @@ function _stp_get_register_by_offset:long (offset:long) %{ * _stp_sign_extend32() is callable from a script function. * __stp_sign_extend32() (in regs.c) is callable from a C function. */ -function _stp_sign_extend32:long (value:long) %{ +function _stp_sign_extend32:long (value:long) %{ /* pure */ THIS->__retvalue = __stp_sign_extend32(THIS->value); %} @@ -98,7 +98,7 @@ function u_register:long (name:string) { * If sign_extend=1 and (truncate=1 or the probepoint we've hit is in a * 32-bit app), sign-extend the 32-bit value. */ -function _stp_arg:long (argnum:long, sign_extend:long, truncate:long) %{ +function _stp_arg:long (argnum:long, sign_extend:long, truncate:long) %{ /* pure */ long val; int result, n, nr_regargs; size_t argsz = sizeof(long); @@ -170,7 +170,7 @@ deref_fault: /* branched to from deref() */ } %} -function probing_32bit_app() %{ +function probing_32bit_app() %{ /* pure */ THIS->__retvalue = _stp_probing_32bit_app(CONTEXT->regs); %} |