vendor: bump tcptracer-bpf

This includes:

* an eBPF object built with a newer kernel (4.14)
* an increased threshold for guessing offsets, which is necessary for
the eBPF tracer to work on Google's Container-Optimized OS (used by
GKE)
This commit is contained in:
Iago López Galeiras
2018-01-26 14:02:38 +01:00
parent 848b1264ff
commit 9f3e7d3ddc
4 changed files with 6 additions and 4 deletions

View File

@@ -28,7 +28,7 @@ type tcpTracerStatus C.struct_tcptracer_status_t
const (
// When reading kernel structs at different offsets, don't go over that
// limit. This is an arbitrary choice to avoid infinite loops.
threshold = 200
threshold = 400
// The source port is much further away in the inet sock.
thresholdInetSock = 2000

File diff suppressed because one or more lines are too long

View File

@@ -2,6 +2,7 @@
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wgnu-variable-sized-type-not-at-end"
#pragma clang diagnostic ignored "-Waddress-of-packed-member"
#include <linux/ptrace.h>
#pragma clang diagnostic pop
#include <linux/version.h>
@@ -12,6 +13,7 @@
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wtautological-compare"
#pragma clang diagnostic ignored "-Wgnu-variable-sized-type-not-at-end"
#pragma clang diagnostic ignored "-Wenum-conversion"
#include <net/sock.h>
#pragma clang diagnostic pop
#include <net/inet_sock.h>

2
vendor/manifest vendored
View File

@@ -1029,7 +1029,7 @@
"importpath": "github.com/weaveworks/tcptracer-bpf",
"repository": "https://github.com/weaveworks/tcptracer-bpf",
"vcs": "git",
"revision": "e080bd747dc6b62d4ed3ed2b7f0be4801bef8faf",
"revision": "39eba460cc5d02d8f461b5d746ce2e06708b5430",
"branch": "master",
"notests": true
},