aboutsummaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorJonathan T. Looney <jtl@FreeBSD.org>2018-03-22 09:40:08 +0000
committerJonathan T. Looney <jtl@FreeBSD.org>2018-03-22 09:40:08 +0000
commit2529f56ed32d808dc3911c369c731f1b21664de6 (patch)
tree10fb714a61fcbeeb5416e8b9c9164da2772610d2 /etc
parentbf8e3513bbd411c51e6aa59995b0ef1e45bf55bb (diff)
downloadsrc-2529f56ed32d808dc3911c369c731f1b21664de6.tar.gz
src-2529f56ed32d808dc3911c369c731f1b21664de6.zip
Add the "TCP Blackbox Recorder" which we discussed at the developer
summits at BSDCan and BSDCam in 2017. The TCP Blackbox Recorder allows you to capture events on a TCP connection in a ring buffer. It stores metadata with the event. It optionally stores the TCP header associated with an event (if the event is associated with a packet) and also optionally stores information on the sockets. It supports setting a log ID on a TCP connection and using this to correlate multiple connections that share a common log ID. You can log connections in different modes. If you are doing a coordinated test with a particular connection, you may tell the system to put it in mode 4 (continuous dump). Or, if you just want to monitor for errors, you can put it in mode 1 (ring buffer) and dump all the ring buffers associated with the connection ID when we receive an error signal for that connection ID. You can set a default mode that will be applied to a particular ratio of incoming connections. You can also manually set a mode using a socket option. This commit includes only basic probes. rrs@ has added quite an abundance of probes in his TCP development work. He plans to commit those soon. There are user-space programs which we plan to commit as ports. These read the data from the log device and output pcapng files, and then let you analyze the data (and metadata) in the pcapng files. Reviewed by: gnn (previous version) Obtained from: Netflix, Inc. Relnotes: yes Differential Revision: https://reviews.freebsd.org/D11085
Notes
Notes: svn path=/head/; revision=331347
Diffstat (limited to 'etc')
-rw-r--r--etc/mtree/BSD.include.dist2
1 files changed, 2 insertions, 0 deletions
diff --git a/etc/mtree/BSD.include.dist b/etc/mtree/BSD.include.dist
index 50dd10e78fa4..cf184592fbf0 100644
--- a/etc/mtree/BSD.include.dist
+++ b/etc/mtree/BSD.include.dist
@@ -158,6 +158,8 @@
..
speaker
..
+ tcp_log
+ ..
usb
..
vkbd