Skip to content
Commit af2251e9 authored by Daniel T. Lee's avatar Daniel T. Lee Committed by Paul Gortmaker
Browse files

samples: bpf: Replace symbol compare of trace_event



commit bba1b2a8 upstream.

Previously, when this sample is added, commit 1c47910e
("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: 1c47910e ("samples/bpf: add perf_event+bpf example")
Signed-off-by: default avatarDaniel T. Lee <danieltimlee@gmail.com>
Signed-off-by: default avatarAlexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20191205080114.19766-2-danieltimlee@gmail.com


Signed-off-by: default avatarPaul Gortmaker <paul.gortmaker@windriver.com>
parent b13c5930
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment