-
Notifications
You must be signed in to change notification settings - Fork 1.4k
[NPM-3378] Adding eBPF-less network tracer POC #27100
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 67 commits
49bed8e
4464eac
fca1a1e
f75cb82
059cbef
2e56ffe
c2a3d78
3959fe9
39853f1
90637ce
753fe21
6a92446
8d5952e
3851ef0
d881f84
de0b4a1
41d1606
856ac78
7e3ec04
81d931a
42e758f
de3545f
ce374c6
497aff8
361d783
72ad33a
8326634
2cd3aaa
e1258c9
4e502e6
31f27a6
08c06aa
b69ef5a
d985ac6
64fcc03
0e39567
7ff5a97
93fa333
6dc8d7d
1f504c4
61dec8d
c014ee7
bae0798
5a10f17
907b44d
b4efeb5
8c72538
398e8d8
ba54c03
7297f4b
cfa736d
714bf2d
a97b0af
c466fbb
15e587e
4819981
0502fb9
ab537d4
14b6ee9
21e40e3
e002855
0621be0
75bab0b
b0030e8
ac937f7
f6e3146
ef365aa
bce4868
6844568
eae3003
e533dd0
1a216d4
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -16,13 +16,15 @@ var ( | |
| RuntimeCompiled BuildMode | ||
| CORE BuildMode | ||
| Fentry BuildMode | ||
| Ebpfless BuildMode | ||
| ) | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I feel like we should dedicate some time to the build modes. I don't think it's a blocker for this PR considering it's a PoC and the ebpfless mode isn't enabled by default (wdyt @brycekahle?), but we could probably find a way to reconciliate the actual eBPF build modes (prebuild/runtime/CORE) with
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
|
|
||
| func init() { | ||
| Prebuilt = prebuilt{} | ||
| RuntimeCompiled = runtimeCompiled{} | ||
| CORE = core{} | ||
| Fentry = fentry{} | ||
| Ebpfless = ebpfless{} | ||
| } | ||
|
|
||
| // BuildMode is an eBPF build mode | ||
|
|
@@ -95,6 +97,23 @@ func (f fentry) Env() map[string]string { | |
| } | ||
| } | ||
|
|
||
| type ebpfless struct{} | ||
|
|
||
| func (e ebpfless) String() string { | ||
| return "eBPFless" | ||
| } | ||
|
|
||
| func (e ebpfless) Env() map[string]string { | ||
| return map[string]string{ | ||
| "NETWORK_TRACER_FENTRY_TESTS": "false", | ||
| "DD_ENABLE_RUNTIME_COMPILER": "false", | ||
| "DD_ENABLE_CO_RE": "false", | ||
| "DD_ALLOW_RUNTIME_COMPILED_FALLBACK": "false", | ||
| "DD_ALLOW_PRECOMPILED_FALLBACK": "false", | ||
| "DD_NETWORK_CONFIG_ENABLE_EBPFLESS": "true", | ||
| } | ||
| } | ||
|
|
||
| // GetBuildMode returns which build mode the current environment matches, if any | ||
| func GetBuildMode() BuildMode { | ||
| for _, mode := range []BuildMode{Prebuilt, RuntimeCompiled, CORE, Fentry} { | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.