-
Notifications
You must be signed in to change notification settings - Fork 111
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
Use struct with pid and Go routine addr for Go BPF maps #1201
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1201 +/- ##
=======================================
Coverage 81.95% 81.96%
=======================================
Files 136 136
Lines 11420 11420
=======================================
+ Hits 9359 9360 +1
+ Misses 1534 1533 -1
Partials 527 527
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
2a2abf3
to
96a411c
Compare
test/integration/suites_test.go
Outdated
@@ -498,6 +498,7 @@ func TestSuite_OverrideServiceName(t *testing.T) { | |||
} | |||
|
|||
func TestSuiteNodeClient(t *testing.T) { | |||
t.Skip("seems flaky, we need to look into this") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can reenable them if you merge your branch with main.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Groovy!
bpf/go_grpc.h
Outdated
@@ -150,7 +150,7 @@ int uprobe_netFdReadGRPC(struct pt_regs *ctx) { | |||
bpf_dbg_printk("tr %llx", tr); | |||
if (tr) { | |||
go_addr_key_t tr_key = {}; | |||
go_addr_key_from_id(&tr_key, tr); | |||
go_addr_key_from_id(&tr_key, (u64 *)tr); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks strange, given go_addr_key_from_id
takes a void*
, I'd expect this to have no side-effect.
2e97c49
to
9f41828
Compare
Follow up PR of #1182
Change more BPF maps to use structs with addr + PID.