Re: [PATCH 2/2] samples/bpf: add NULL check for ksym_search

2019-03-25 Thread Daniel Borkmann
On 03/15/2019 07:42 AM, Daniel T. Lee wrote: > Since, ksym_search added with verification logic for symbols existence, > it could return NULL when the kernel symbols are not loaded. > > This commit will add NULL check logic after ksym_search. > > Signed-off-by: Daniel T. Lee > --- > samples/bpf

[PATCH 2/2] samples/bpf: add NULL check for ksym_search

2019-03-14 Thread Daniel T. Lee
Since, ksym_search added with verification logic for symbols existence, it could return NULL when the kernel symbols are not loaded. This commit will add NULL check logic after ksym_search. Signed-off-by: Daniel T. Lee --- samples/bpf/offwaketime_user.c | 5 + samples/bpf/sampleip_user.c