You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
samples/bpf: fix trace_output example
llvm cannot always recognize memset as builtin function and optimize
it away, so just delete it. It was a leftover from testing
of bpf_perf_event_output() with large data structures.
Fixes: 39111695b1 ("samples: bpf: add bpf_perf_event_output example")
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
6aff67c85c
commit
569cc39d39
@@ -18,7 +18,6 @@ int bpf_prog1(struct pt_regs *ctx)
|
|||||||
u64 cookie;
|
u64 cookie;
|
||||||
} data;
|
} data;
|
||||||
|
|
||||||
memset(&data, 0, sizeof(data));
|
|
||||||
data.pid = bpf_get_current_pid_tgid();
|
data.pid = bpf_get_current_pid_tgid();
|
||||||
data.cookie = 0x12345678;
|
data.cookie = 0x12345678;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user