Skip to content

Commit

Permalink
fix go_grpc.h
Browse files Browse the repository at this point in the history
  • Loading branch information
marctc committed Sep 30, 2024
1 parent 831f788 commit 2e97c49
Show file tree
Hide file tree
Showing 9 changed files with 20 additions and 18 deletions.
6 changes: 4 additions & 2 deletions bpf/go_grpc.h
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,10 @@ int uprobe_netFdReadGRPC(struct pt_regs *ctx) {
void *tr = bpf_map_lookup_elem(&ongoing_grpc_operate_headers, &g_key);
bpf_dbg_printk("tr %llx", tr);
if (tr) {
go_addr_key_t tr_key = {};
go_addr_key_from_id(&tr_key, (u64 *)tr);
go_addr_key_t tr_key = {
.addr = (u64)tr,
.pid = g_key.pid,
};
grpc_transports_t *t = bpf_map_lookup_elem(&ongoing_grpc_transports, &tr_key);
bpf_dbg_printk("t %llx", t);
if (t) {
Expand Down
4 changes: 2 additions & 2 deletions pkg/internal/ebpf/gotracer/bpf_arm64_bpfel.o
Git LFS file not shown
4 changes: 2 additions & 2 deletions pkg/internal/ebpf/gotracer/bpf_debug_arm64_bpfel.o
Git LFS file not shown
4 changes: 2 additions & 2 deletions pkg/internal/ebpf/gotracer/bpf_debug_x86_bpfel.o
Git LFS file not shown
4 changes: 2 additions & 2 deletions pkg/internal/ebpf/gotracer/bpf_tp_arm64_bpfel.o
Git LFS file not shown
4 changes: 2 additions & 2 deletions pkg/internal/ebpf/gotracer/bpf_tp_debug_arm64_bpfel.o
Git LFS file not shown
4 changes: 2 additions & 2 deletions pkg/internal/ebpf/gotracer/bpf_tp_debug_x86_bpfel.o
Git LFS file not shown
4 changes: 2 additions & 2 deletions pkg/internal/ebpf/gotracer/bpf_tp_x86_bpfel.o
Git LFS file not shown
4 changes: 2 additions & 2 deletions pkg/internal/ebpf/gotracer/bpf_x86_bpfel.o
Git LFS file not shown

0 comments on commit 2e97c49

Please sign in to comment.