]> git.baikalelectronics.ru Git - kernel.git/commit
samples: bpf: Replace symbol compare of trace_event
authorDaniel T. Lee <danieltimlee@gmail.com>
Thu, 5 Dec 2019 08:01:13 +0000 (17:01 +0900)
committerAlexei Starovoitov <ast@kernel.org>
Wed, 11 Dec 2019 23:27:28 +0000 (15:27 -0800)
commit5fb8c27293a7fcad898e59fefffbde3045aab55e
tree9904527553fc4a39078b9602f0d99ab1905e1e04
parent70acdd7749299b4af932653952be66e255566d40
samples: bpf: Replace symbol compare of trace_event

Previously, when this sample is added, commit 7936b5e32c70e
("samples/bpf: add perf_event+bpf example"), a symbol 'sys_read' and
'sys_write' has been used without no prefixes. But currently there are
no exact symbols with these under kallsyms and this leads to failure.

This commit changes exact compare to substring compare to keep compatible
with exact symbol or prefixed symbol.

Fixes: 7936b5e32c70e ("samples/bpf: add perf_event+bpf example")
Signed-off-by: Daniel T. Lee <danieltimlee@gmail.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20191205080114.19766-2-danieltimlee@gmail.com
samples/bpf/trace_event_user.c