From 011987b8162b56b4932bae558364e82b8d76f7a1 Mon Sep 17 00:00:00 2001 From: William Cohen Date: Tue, 11 Nov 2008 17:28:00 -0500 Subject: Add documentation for context.stp and networking.stp. --- tapset/networking.stp | 97 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 97 insertions(+) (limited to 'tapset/networking.stp') diff --git a/tapset/networking.stp b/tapset/networking.stp index f32953fd..9bd742da 100644 --- a/tapset/networking.stp +++ b/tapset/networking.stp @@ -6,10 +6,72 @@ // Public License (GPL); either version 2, or (at your option) any // later version. +/// +/// Networking Tapset +/// +/// This family of probe points is used to probe the activities of +/// network device. +/// + %{ #include %} +/// +/// netdev.receive +/// netdev.receive +/// Fires when data arrives on network device. +/// +/// +/// Arguments: +/// dev_name +/// +/// The name of the device. e.g: eth0, ath1 +/// +/// +/// +/// length +/// +/// The length of the receiving buffer +/// +/// +/// +/// protocol +/// The possible values of protocol could be: +/// Protocol Values +/// +/// +/// +/// +/// ValueProtocol +/// +/// +/// 0800IP +/// 8100802.1Q VLAN +/// 0001802.3 +/// 0002AX.25 +/// 0004802.2 +/// 8035RARP +/// 0005SNAP +/// 0805X.25 +/// 0806ARP +/// 8137IPX +/// 0009Localtalk +/// 86DDIPv6 +/// +/// +///
+///
+///
+/// +/// truesize +/// +/// The size of the received data. +/// +/// +/// +///
+///
/* Main device receive routine, be called when packet arrives on network device */ probe netdev.receive = kernel.function("netif_receive_skb") @@ -20,6 +82,39 @@ probe netdev.receive truesize = $skb->truesize } +/// +/// netdev.transmit +/// netdev.transmit +/// Fires when the network device wants to transmit a buffer. +/// +/// +/// Arguments: +/// dev_name +/// +/// The name of the device. e.g: eth0, ath1 +/// +/// +/// +/// length +/// +/// The length of the transmit buffer +/// +/// +/// +/// protocol +/// +/// The protocol of this packet. +/// +/// +/// +/// truesize +/// +/// The size of the the data to be transmitted. +/// +/// +/// +/// +/// /* Queue a buffer for transmission to a network device */ probe netdev.transmit = kernel.function("dev_queue_xmit") @@ -29,3 +124,5 @@ probe netdev.transmit protocol = $skb->protocol truesize = $skb->truesize } + +///
-- cgit