diff options
author | fche <fche> | 2007-09-24 18:16:16 +0000 |
---|---|---|
committer | fche <fche> | 2007-09-24 18:16:16 +0000 |
commit | da64b256d828a33ff5c3bd78b11aad3705056019 (patch) | |
tree | 9c50226dbe4c63b29ee1395327d4f07a05ca16ba /tapset/inet_sock.stp | |
parent | b8037bcbc882bad9bf1749c1272a8d927c6972a1 (diff) | |
download | systemtap-steved-da64b256d828a33ff5c3bd78b11aad3705056019.tar.gz systemtap-steved-da64b256d828a33ff5c3bd78b11aad3705056019.tar.xz systemtap-steved-da64b256d828a33ff5c3bd78b11aad3705056019.zip |
Add /* pure */ to embedded-C functions.
Diffstat (limited to 'tapset/inet_sock.stp')
-rw-r--r-- | tapset/inet_sock.stp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tapset/inet_sock.stp b/tapset/inet_sock.stp index b3daeb68..59ce7fea 100644 --- a/tapset/inet_sock.stp +++ b/tapset/inet_sock.stp @@ -24,7 +24,7 @@ // Get local port number function inet_get_local_port:long(sock:long) -%{ +%{ /* pure */ struct inet_sock *inet = (struct inet_sock *) (long) THIS->sock; THIS->__retvalue = kread(&(LPORT)); CATCH_DEREF_FAULT(); @@ -32,7 +32,7 @@ function inet_get_local_port:long(sock:long) // Get IP source address string function inet_get_ip_source:string(sock:long) -%{ +%{ /* pure */ struct inet_sock *inet = (struct inet_sock *) (long) THIS->sock; union { __u32 d; unsigned char addr[4]; } u; u.d = kread(DADDR); |