Skip to content

Commit df96fad

Browse files
committed
Add bpf_ringbuf_output impl for coredump test
1 parent fd0a42f commit df96fad

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tools/coredump/ebpfcode.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,13 @@ int bpf_perf_event_output(
7474
return 0;
7575
}
7676

77+
int bpf_ringbuf_output(UNUSED void *ringbuf, void *data, UNUSED u64 size, UNUSED u64 flags)
78+
{
79+
void __bpf_copy_frame(u64, void *);
80+
__bpf_copy_frame(__cgo_ctx->id, data);
81+
return 0;
82+
}
83+
7784
int bpf_tail_call(void *ctx, UNUSED void *map, int index)
7885
{
7986
int rc = 0;

0 commit comments

Comments
 (0)