Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion support/ebpf/bpfdefs.h
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ static long (*bpf_probe_read_kernel)(void *dst, int size, const void *unsafe_ptr

#define printt(fmt, ...) \
({ \
const char ____fmt[] = fmt; \
static const char ____fmt[] = fmt; \
bpf_trace_printk(____fmt, sizeof(____fmt), ##__VA_ARGS__); \
})

Expand Down
Binary file modified support/ebpf/tracer.ebpf.amd64
Binary file not shown.
Binary file modified support/ebpf/tracer.ebpf.arm64
Binary file not shown.
3 changes: 3 additions & 0 deletions tracer/systemconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,9 @@ func prepareAnalysis(orig *cebpf.CollectionSpec) (*cebpf.CollectionSpec, map[str
}
new.Maps["system_analysis"] = orig.Maps["system_analysis"].Copy()
new.Maps[".rodata.var"] = orig.Maps[".rodata.var"].Copy()
if rodata, ok := orig.Maps[".rodata"]; ok {
new.Maps[".rodata"] = rodata.Copy()
}

new.Programs["read_kernel_memory"] = orig.Programs["read_kernel_memory"].Copy()
new.Programs["read_task_struct"] = orig.Programs["read_task_struct"].Copy()
Expand Down