diff options
author | mmason <mmason> | 2007-01-25 18:42:37 +0000 |
---|---|---|
committer | mmason <mmason> | 2007-01-25 18:42:37 +0000 |
commit | 7feb0cb1bd5b283142d1a0bf5f412dbf880f2861 (patch) | |
tree | 3eaf2d5f7d7405c1862b9907f2edef8b36fa8620 | |
parent | aff465d5e5fa00c7f77d4719ed288d15ff2acb8c (diff) | |
download | systemtap-steved-7feb0cb1bd5b283142d1a0bf5f412dbf880f2861.tar.gz systemtap-steved-7feb0cb1bd5b283142d1a0bf5f412dbf880f2861.tar.xz systemtap-steved-7feb0cb1bd5b283142d1a0bf5f412dbf880f2861.zip |
Fix for missing SOCK_PASSSEC in kernels earlier than 2.6.18.
-rw-r--r-- | tapset/ChangeLog | 5 | ||||
-rw-r--r-- | tapset/socket.stp | 5 |
2 files changed, 9 insertions, 1 deletions
diff --git a/tapset/ChangeLog b/tapset/ChangeLog index ee15e0e7..f7e43fe5 100644 --- a/tapset/ChangeLog +++ b/tapset/ChangeLog @@ -1,3 +1,8 @@ +2007-01-25 Mike Mason <mmlnx@us.ibm.com> + + * socket.stp: Fix for missing SOCK_PASSSEC in kernels earlier + than 2.6.18. + 2007-01-25 Martin Hunt <hunt@localhost.localdomain> * syscalls2.stp: Add sys32_ustat probe. diff --git a/tapset/socket.stp b/tapset/socket.stp index 49eca217..451dd36e 100644 --- a/tapset/socket.stp +++ b/tapset/socket.stp @@ -509,6 +509,9 @@ function sock_type_str2num:long (type:string) function sock_flags_num2str:string (flags:long) %{ +#ifndef SOCK_PASSSEC +#define SOCK_PASSSEC 4 /* introduced in 2.6.18 */ +#endif char str[60]; str[0] = '\0'; @@ -1078,4 +1081,4 @@ deref_fault: CONTEXT->last_error = "pointer dereference fault"; } end: ; -%}
\ No newline at end of file +%} |