From 0166f61e34a34ef1138e1de7a7068bf602741a0c Mon Sep 17 00:00:00 2001 From: William Cohen Date: Tue, 25 Nov 2008 11:03:28 -0500 Subject: Add context, timestamp, memory, and networking tapsets. --- tapset/networking.stp | 76 ++++++++++----------------------------------------- 1 file changed, 15 insertions(+), 61 deletions(-) (limited to 'tapset/networking.stp') diff --git a/tapset/networking.stp b/tapset/networking.stp index decd62a7..d6e90259 100644 --- a/tapset/networking.stp +++ b/tapset/networking.stp @@ -6,36 +6,17 @@ // 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 -/// -/// -/// +/** + * probe netdev.receive - Data recieved from network device. + * @dev_name: The name of the device. e.g: eth0, ath1. + * @length: The length of the receiving buffer. + * @protocol: Protocol of recieved packet. + * + */ /// protocol /// The possible values of protocol could be: /// Protocol Values @@ -82,39 +63,14 @@ 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. -/// -/// -/// -/// -/// +/** + * probe netdev.transmit - Network device transmitting buffer + * @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") @@ -124,5 +80,3 @@ probe netdev.transmit protocol = $skb->protocol truesize = $skb->truesize } - -/// -- cgit