Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
tcp_probe.c File Reference
#include <linux/kernel.h>
#include <linux/kprobes.h>
#include <linux/socket.h>
#include <linux/tcp.h>
#include <linux/slab.h>
#include <linux/proc_fs.h>
#include <linux/module.h>
#include <linux/ktime.h>
#include <linux/time.h>
#include <net/net_namespace.h>
#include <net/tcp.h>

Go to the source code of this file.

Data Structures

struct  tcp_log
 

Macros

#define pr_fmt(fmt)   KBUILD_MODNAME ": " fmt
 

Functions

 MODULE_AUTHOR ("Stephen Hemminger <[email protected]>")
 
 MODULE_DESCRIPTION ("TCP cwnd snooper")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_VERSION ("1.1")
 
 MODULE_PARM_DESC (port,"Port to match (0=all)")
 
 module_param (port, int, 0)
 
 MODULE_PARM_DESC (bufsize,"Log buffer size in packets (4096)")
 
 module_param (bufsize, uint, 0)
 
 MODULE_PARM_DESC (full,"Full log (1=every ack packet received, 0=only cwnd changes)")
 
 module_param (full, int, 0)
 
 module_init (tcpprobe_init)
 
 module_exit (tcpprobe_exit)
 

Macro Definition Documentation

#define pr_fmt (   fmt)    KBUILD_MODNAME ": " fmt

Definition at line 21 of file tcp_probe.c.

Function Documentation

MODULE_AUTHOR ( "Stephen Hemminger <[email protected]>"  )
MODULE_DESCRIPTION ( "TCP cwnd snooper"  )
module_exit ( tcpprobe_exit  )
module_init ( tcpprobe_init  )
MODULE_LICENSE ( "GPL"  )
module_param ( port  ,
int  ,
 
)
module_param ( bufsize  ,
uint  ,
 
)
module_param ( full  ,
int  ,
 
)
MODULE_PARM_DESC ( port  ,
"Port to match (0=all)"   
)
MODULE_PARM_DESC ( bufsize  ,
"Log buffer size in packets (4096)"   
)
MODULE_PARM_DESC ( full  ,
"Full log (1=every ack packet received, 0=only cwnd changes)"   
)
MODULE_VERSION ( "1.1"  )

Variable Documentation

unsigned long head

Definition at line 74 of file tcp_probe.c.

u32 lastcwnd

Definition at line 72 of file tcp_probe.c.

spinlock_t lock

Definition at line 69 of file tcp_probe.c.

Definition at line 75 of file tcp_probe.c.

ktime_t start

Definition at line 71 of file tcp_probe.c.

unsigned long tail

Definition at line 74 of file tcp_probe.c.

Definition at line 70 of file tcp_probe.c.