Commit 1b10c068 authored by 4ast's avatar 4ast Committed by GitHub

Merge pull request #845 from affansyed/master

Fix for issue 829 I reported 
parents 3ce6d839 ce1ce3f8
......@@ -23,7 +23,7 @@ bpf_text = """
#include <uapi/linux/ptrace.h>
int do_trace(struct pt_regs *ctx) {
uint64_t addr;
char path[128];
char path[128]={0};
bpf_usdt_readarg(6, ctx, &addr);
bpf_probe_read(&path, sizeof(path), (void *)addr);
bpf_trace_printk("path:%s\\n", path);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment