]> git.proxmox.com Git - mirror_ubuntu-eoan-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)
committerKhalid Elmously <khalid.elmously@canonical.com>
Fri, 14 Feb 2020 06:00:53 +0000 (01:00 -0500)
commit557ca839b8b0ebe58c7799b628c38587b34771a8
tree76a0a694428a2ce23ce99c2758f79bd731c14d32
parent44249632aa5dfcf0279c740f19f60b4ea56029fc
samples: bpf: Replace symbol compare of trace_event

BugLink: https://bugs.launchpad.net/bugs/1861929
[ Upstream commit bba1b2a890253528c45aa66cf856f289a215bfbc ]

Previously, when this sample is added, commit 1c47910ef8013
("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: 1c47910ef8013 ("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
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
samples/bpf/trace_event_user.c