summaryrefslogtreecommitdiffstats
path: root/gnu/llvm/clang/unittests/Driver/ModuleCacheTest.cpp
diff options
context:
space:
mode:
authordlg <dlg@openbsd.org>2020-08-03 03:40:02 +0000
committerdlg <dlg@openbsd.org>2020-08-03 03:40:02 +0000
commit2cba36b56b1c3fd3bbf6a036e01b16253c887425 (patch)
treef29d550703c947b27a698d3a6cacfbee45bada18 /gnu/llvm/clang/unittests/Driver/ModuleCacheTest.cpp
parentadd aliases for arm eabi long long shift functions (diff)
downloadwireguard-openbsd-2cba36b56b1c3fd3bbf6a036e01b16253c887425.tar.xz
wireguard-openbsd-2cba36b56b1c3fd3bbf6a036e01b16253c887425.zip
add "sample NUM" so you can ask to capture 1/NUM packets from a filter.
the use of the sample keyword matches similar config in other products. NUM can be a number between 2 and 1048576, and is used to divide 0x100000000 into a threshold that is then compared against a randomly generated number produced by a load of BPF_RND. having sampling as part of the grammar means you can write things like "icmp or sample 128". this lets you capture all icmp traffic and a sample of the rest of the traffic. ok jmatthew@ kn@ tb@
Diffstat (limited to 'gnu/llvm/clang/unittests/Driver/ModuleCacheTest.cpp')
0 files changed, 0 insertions, 0 deletions