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/inet.stp | |
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/inet.stp')
-rw-r--r-- | tapset/inet.stp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tapset/inet.stp b/tapset/inet.stp index 0fdd4bab..8681fa2c 100644 --- a/tapset/inet.stp +++ b/tapset/inet.stp @@ -1,8 +1,8 @@ /* Some functions from libc <arpa/inet.h> */ -function htonll:long (x:long) %{ THIS->__retvalue = (int64_t) cpu_to_be64 ((u64) THIS->x); %} -function htonl:long (x:long) %{ THIS->__retvalue = (int64_t) cpu_to_be32 ((u32) THIS->x); %} -function htons:long (x:long) %{ THIS->__retvalue = (int64_t) cpu_to_be16 ((u16) THIS->x); %} -function ntohll:long (x:long) %{ THIS->__retvalue = (int64_t) be64_to_cpu ((u64) THIS->x); %} -function ntohl:long (x:long) %{ THIS->__retvalue = (int64_t) be32_to_cpu ((u32) THIS->x); %} -function ntohs:long (x:long) %{ THIS->__retvalue = (int64_t) be16_to_cpu ((u16) THIS->x); %} +function htonll:long (x:long) %{ /* pure */ THIS->__retvalue = (int64_t) cpu_to_be64 ((u64) THIS->x); %} +function htonl:long (x:long) %{ /* pure */ THIS->__retvalue = (int64_t) cpu_to_be32 ((u32) THIS->x); %} +function htons:long (x:long) %{ /* pure */ THIS->__retvalue = (int64_t) cpu_to_be16 ((u16) THIS->x); %} +function ntohll:long (x:long) %{ /* pure */ THIS->__retvalue = (int64_t) be64_to_cpu ((u64) THIS->x); %} +function ntohl:long (x:long) %{ /* pure */ THIS->__retvalue = (int64_t) be32_to_cpu ((u32) THIS->x); %} +function ntohs:long (x:long) %{ /* pure */ THIS->__retvalue = (int64_t) be16_to_cpu ((u16) THIS->x); %} |