]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
samples/bpf: fix trace_output example
authorAlexei Starovoitov <ast@fb.com>
Thu, 28 Apr 2016 01:56:22 +0000 (18:56 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 May 2016 01:35:04 +0000 (18:35 -0700)
commit59d0a01cc7af0c8556c64812a3429dc1e96cd006
tree45ae5c52c5a16d91108a0f41a4021a3af49f9245
parent0ae7bad57030e0f1cb22d34ceecd4a3d1bd3b4b0
samples/bpf: fix trace_output example

[ Upstream commit 569cc39d39385a74b23145496bca2df5ac8b2fb8 ]

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: 39111695b1b8 ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
samples/bpf/trace_output_kern.c