Re: [PATCH v3 1/2] selftests/bpf: ksym_search won't check symbols exists

2019-04-04 Thread Daniel Borkmann
On 04/04/2019 12:17 AM, Daniel T. Lee wrote: > Currently, ksym_search located at trace_helpers won't check symbols are > existing or not. > > In ksym_search, when symbol is not found, it will return &syms[0](_stext). > But when the kernel symbols are not loaded, it will return NULL, which is > not

[PATCH v3 1/2] selftests/bpf: ksym_search won't check symbols exists

2019-04-03 Thread Daniel T. Lee
Currently, ksym_search located at trace_helpers won't check symbols are existing or not. In ksym_search, when symbol is not found, it will return &syms[0](_stext). But when the kernel symbols are not loaded, it will return NULL, which is not a desired action. This commit will add verification log