This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch] Add support for SO_SNDBUFFORCE and SO_RCVBUFFORCE sockopt to tapset


Hi, everyone

This patch is for tapset to add support for new sockopt:
SO_SNDBUFFORCE
SO_RCVBUFFORCE

They are defined in new version of /usr/include/asm/socket.h
(Ex: RHEL5GA, 2.6.18-8.el5):
#define SO_DEBUG        1
#define SO_REUSEADDR    2
...
#define SO_RCVBUF       8
#define SO_SNDBUFFORCE  32
#define SO_RCVBUFFORCE  33
#define SO_KEEPALIVE    9

Signed-off-by: "Zhaolei" zhaolei@cn.fujitsu.com

--- aux_syscalls.stp.old 2007-08-10 09:01:53.000000000 +0900
+++ aux_syscalls.stp 2007-08-10 09:03:09.000000000 +0900
@@ -1331,6 +1331,9 @@ function _sockopt_optname_str(opt) {
    if(opt==19) return "SO_SNDLOWAT"
    if(opt==20) return "SO_RCVTIMEO"
    if(opt==21) return "SO_SNDTIMEO"
+
+   if(opt==32) return "SO_SNDBUFFORCE"
+   if(opt==33) return "SO_RCVBUFFORCE"
    return ""
 }
 
Regards
Zhaolei


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]