ltt for 2.6.10 : net/ events
Subsystems (2)
PATCH 7/8 ltt for 2.6.10 : net/ events
Signed-off-by Karim Yaghmour ([email protected])
net/core/dev.c +5 -0
@@ -107,6 +107,7 @@#include <linux/module.h> #include <linux/kallsyms.h> #include <linux/netpoll.h> +#include <linux/ltt-events.h> #include <linux/rcupdate.h> #ifdef CONFIG_NET_RADIO #include <linux/wireless.h> /* Note : will define WIRELESS_EXT */
@@ -1245,6 +1246,8 @@ int dev_queue_xmit(struct sk_buff *skb)if (skb_checksum_help (skb,0 )) goto out_kfree_skb; +ltt_ev_network (LTT_EV_NETWORK_PACKET_OUT , skb->protocol); +/* Disable soft irqs for various locks below. Also * stops preemption for RCU. */
@@ -1642,6 +1645,8 @@ int netif_receive_skb(struct sk_buff *sk__get_cpu_var (netdev_rx_stat).total++; +ltt_ev_network (LTT_EV_NETWORK_PACKET_IN , skb->protocol); + skb->h.raw = skb->nh.raw = skb->data; skb->mac_len = skb->nh.raw - skb->mac.raw;
net/socket.c +9 -0
@@ -81,6 +81,7 @@#include <linux/syscalls.h> #include <linux/compat.h> #include <linux/kmod.h> +#include <linux/ltt-events.h> #ifdef CONFIG_NET_RADIO #include <linux/wireless.h> /* Note : will define WIRELESS_EXT */
@@ -551,6 +552,8 @@ int sock_sendmsg(struct socket *sock, ststruct sock_iocb siocb;int ret; +ltt_ev_socket (LTT_EV_SOCKET_SEND , sock->type, size); +init_sync_kiocb (&iocb,NULL ); iocb.private = &siocb; ret =__sock_sendmsg (&iocb, sock, msg, size);
@@ -603,6 +606,8 @@ int sock_recvmsg(struct socket *sock, ststruct sock_iocb siocb;int ret; +ltt_ev_socket (LTT_EV_SOCKET_RECEIVE , sock->type, size); +init_sync_kiocb (&iocb,NULL ); iocb.private = &siocb; ret =__sock_recvmsg (&iocb, sock, msg, size, flags);
@@ -1197,6 +1202,8 @@ asmlinkage long sys_socket(int family, iif (retval <0 ) goto out_release; +ltt_ev_socket (LTT_EV_SOCKET_CREATE , retval, type); + out:/* It may be already another descriptor 8) Not kernel problem. */ return retval;
@@ -1916,6 +1923,8 @@ asmlinkage long sys_socketcall(int call, a0=a[0 ]; a1=a[1 ]; + +ltt_ev_socket (LTT_EV_SOCKET_CALL , call, a0);switch (call) {