/usr/share/systemtap/tapset/udp.stp is in systemtap-common 1.7-1+deb7u1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 | // UDP tapset
// Copyright (C) 2006 Intel Corporation.
//
// This file is part of systemtap, and is free software. You can
// redistribute it and/or modify it under the terms of the GNU General
// Public License (GPL); either version 2, or (at your option) any
// later version.
// <tapsetdescription>
// This family of probe points is used to probe events that occur in the UDP layer.
// </tapsetdescription>
/**
* probe udp.sendmsg - Fires whenever a process sends a UDP message
* @name: The name of this probe
* @sock: Network socket used by the process
* @size: Number of bytes sent by the process
*
* Context:
* The process which sent a UDP message
*/
probe udp.sendmsg = kernel.function("udp_sendmsg") {
name = "udp.sendmsg"
sock = $sk
size = $len
}
/**
* probe udp.sendmsg.return - Fires whenever an attempt to send a UDP message is completed
* @name: The name of this probe
* @size: Number of bytes sent by the process
*
* Context:
* The process which sent a UDP message
*/
probe udp.sendmsg.return = kernel.function("udp_sendmsg").return {
name = "udp.sendmsg"
size = $return
}
/**
* probe udp.recvmsg - Fires whenever a UDP message is received
* @name: The name of this probe
* @sock: Network socket used by the process
* @size: Number of bytes received by the process
*
* Context:
* The process which received a UDP message
*/
probe udp.recvmsg = kernel.function("udp_recvmsg") {
name = "udp.recvmsg"
sock = $sk
size = $len
}
/**
* probe udp.recvmsg.return - Fires whenever an attempt to receive a UDP message received is completed
* @name: The name of this probe
* @size: Number of bytes received by the process
*
* Context:
* The process which received a UDP message
*/
probe udp.recvmsg.return = kernel.function("udp_recvmsg").return {
name = "udp.recvmsg"
size = $return
}
/**
* probe udp.disconnect - Fires when a process requests for a UDP disconnection
* @name: The name of this probe
* @sock: Network socket used by the process
* @flags: Flags (e.g. FIN, etc)
*
* Context:
* The process which requests a UDP disconnection
*/
probe udp.disconnect = kernel.function("udp_disconnect") {
name = "udp.disconnect"
sock = $sk
flags = $flags
}
/**
* probe udp.disconnect.return - UDP has been disconnected successfully
* @name: The name of this probe
* @ret: Error code (0: no error)
*
* Context:
* The process which requested a UDP disconnection
*/
probe udp.disconnect.return = kernel.function("udp_disconnect").return {
name = "udp.disconnect"
ret = $return
}
|