commit | 046cc3dd9a2507b8e111714807ab8bf15ea5bb70 | [log] [tgz] |
---|---|---|
author | Song Liu <songliubraving@fb.com> | Thu Jul 02 19:45:37 2020 -0700 |
committer | Alexei Starovoitov <ast@kernel.org> | Thu Jul 02 20:21:56 2020 -0700 |
tree | fdb000010085a84b92a72deb6919b9b2e1021773 | |
parent | 811d7e375d08312dba23f3b6bf7e58ec14aa5dcb [diff] |
bpf: Fix build without CONFIG_STACKTRACE 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 <lkp@intel.com> Signed-off-by: Song Liu <songliubraving@fb.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org> Link: https://lore.kernel.org/bpf/20200703024537.79971-1-songliubraving@fb.com