OSDN Git Service

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 00:06:38 +0000 (17:06 -0700)
commit85256f78bff1c4a24ad8edac63726e8ca5ccedc1
treed2c4bc8ddcd9a1d93078fc63def0a789f842c2d7
parentbb10156f572f06f3b6cadd378e5a0ab3ed8da991
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