Re: [bpf-next] bpf: fix build without CONFIG_STACKTRACE

2020-07-02 Thread Alexei Starovoitov
On Thu, Jul 2, 2020 at 7:45 PM Song Liu wrote: > > Without CONFIG_STACKTRACE stack_trace_save_tsk() is not defined. Let > get_callchain_entry_for_task() to always return NULL in such cases. > > Fixes: fa28dcb82a38 ("bpf: Introduce helper bpf_get_task_stack()") > Reported-by: kernel test robot > S

[bpf-next] bpf: fix build without CONFIG_STACKTRACE

2020-07-02 Thread Song Liu
Without CONFIG_STACKTRACE stack_trace_save_tsk() is not defined. Let get_callchain_entry_for_task() to always return NULL in such cases. Fixes: fa28dcb82a38 ("bpf: Introduce helper bpf_get_task_stack()") Reported-by: kernel test robot Signed-off-by: Song Liu --- kernel/bpf/stackmap.c | 4