Skip to content

Commit

Permalink
Remote nodejs uretprobes (#1305)
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelroquetto authored Oct 31, 2024
1 parent eb0a8c4 commit b23d4ca
Show file tree
Hide file tree
Showing 19 changed files with 17 additions and 57 deletions.
14 changes: 0 additions & 14 deletions bpf/nodejs.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,20 +52,6 @@ int async_reset(struct pt_regs *ctx) {
return 0;
}

SEC("uretprobe/node:AsyncReset")
int async_reset_ret(struct pt_regs *ctx) {
u64 id = bpf_get_current_pid_tgid();

if (!valid_pid(id)) {
return 0;
}

bpf_dbg_printk("=== uprobe AsyncReset returns id=%d ===", id);
bpf_map_delete_elem(&async_reset_args, &id);

return 0;
}

SEC("uprobe/node:EmitAsyncInit")
int emit_async_init(struct pt_regs *ctx) {
u64 id = bpf_get_current_pid_tgid();
Expand Down
3 changes: 0 additions & 3 deletions pkg/internal/ebpf/generictracer/bpf_arm64_bpfel.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions pkg/internal/ebpf/generictracer/bpf_arm64_bpfel.o
Git LFS file not shown
3 changes: 0 additions & 3 deletions pkg/internal/ebpf/generictracer/bpf_debug_arm64_bpfel.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions pkg/internal/ebpf/generictracer/bpf_debug_arm64_bpfel.o
Git LFS file not shown
3 changes: 0 additions & 3 deletions pkg/internal/ebpf/generictracer/bpf_debug_x86_bpfel.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions pkg/internal/ebpf/generictracer/bpf_debug_x86_bpfel.o
Git LFS file not shown
3 changes: 0 additions & 3 deletions pkg/internal/ebpf/generictracer/bpf_tp_arm64_bpfel.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions pkg/internal/ebpf/generictracer/bpf_tp_arm64_bpfel.o
Git LFS file not shown
3 changes: 0 additions & 3 deletions pkg/internal/ebpf/generictracer/bpf_tp_debug_arm64_bpfel.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions pkg/internal/ebpf/generictracer/bpf_tp_debug_arm64_bpfel.o
Git LFS file not shown
3 changes: 0 additions & 3 deletions pkg/internal/ebpf/generictracer/bpf_tp_debug_x86_bpfel.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions pkg/internal/ebpf/generictracer/bpf_tp_debug_x86_bpfel.o
Git LFS file not shown
3 changes: 0 additions & 3 deletions pkg/internal/ebpf/generictracer/bpf_tp_x86_bpfel.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions pkg/internal/ebpf/generictracer/bpf_tp_x86_bpfel.o
Git LFS file not shown
3 changes: 0 additions & 3 deletions pkg/internal/ebpf/generictracer/bpf_x86_bpfel.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions pkg/internal/ebpf/generictracer/bpf_x86_bpfel.o
Git LFS file not shown
2 changes: 0 additions & 2 deletions pkg/internal/ebpf/generictracer/generictracer.go
Original file line number Diff line number Diff line change
Expand Up @@ -340,12 +340,10 @@ func (p *Tracer) UProbes() map[string]map[string]ebpfcommon.FunctionPrograms {
"_ZN4node9AsyncWrap10AsyncResetEN2v85LocalINS1_6ObjectEEEdb": {
Required: false,
Start: p.bpfObjects.AsyncReset,
End: p.bpfObjects.AsyncResetRet,
},
"_ZN4node9AsyncWrap10AsyncResetERKN2v820FunctionCallbackInfoINS1_5ValueEEE": {
Required: false,
Start: p.bpfObjects.AsyncReset,
End: p.bpfObjects.AsyncResetRet,
},
},
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/internal/netolly/ebpf/net_arm64_bpfel.o
Git LFS file not shown

0 comments on commit b23d4ca

Please sign in to comment.