summaryrefslogtreecommitdiffstats
path: root/tapset/inet_sock.stp
diff options
context:
space:
mode:
authorfche <fche>2007-09-24 18:16:16 +0000
committerfche <fche>2007-09-24 18:16:16 +0000
commitda64b256d828a33ff5c3bd78b11aad3705056019 (patch)
tree9c50226dbe4c63b29ee1395327d4f07a05ca16ba /tapset/inet_sock.stp
parentb8037bcbc882bad9bf1749c1272a8d927c6972a1 (diff)
downloadsystemtap-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.stp4
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);