diff options
author | Frank Ch. Eigler <fche@elastic.org> | 2007-10-04 22:26:58 -0400 |
---|---|---|
committer | Frank Ch. Eigler <fche@elastic.org> | 2007-10-04 22:26:58 -0400 |
commit | 08463d8a6961228d37fef8f7be998a6d51e03072 (patch) | |
tree | b6e0cc03a0483c1ed4de4957dfb998eeb1de8a85 /tapset/inet.stp | |
parent | 548fb400e1942d1df53ded19fa98d1b2000479d1 (diff) | |
parent | bfb724429e55072f53e82f3d4037f2b7e80f1203 (diff) | |
download | systemtap-steved-08463d8a6961228d37fef8f7be998a6d51e03072.tar.gz systemtap-steved-08463d8a6961228d37fef8f7be998a6d51e03072.tar.xz systemtap-steved-08463d8a6961228d37fef8f7be998a6d51e03072.zip |
Merge branch 'master' of git://sources.redhat.com/git/systemtap
Diffstat (limited to 'tapset/inet.stp')
-rw-r--r-- | tapset/inet.stp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tapset/inet.stp b/tapset/inet.stp new file mode 100644 index 00000000..0fdd4bab --- /dev/null +++ b/tapset/inet.stp @@ -0,0 +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); %} |