Searched hist:"239420 cb9e0394e92a281f5830e4219ba92e01dd" (Results 1 – 1 of 1) sorted by relevance
| /optee_os/core/kernel/ |
| H A D | thread.c | 239420cb9e0394e92a281f5830e4219ba92e01dd Thu Apr 13 13:29:19 UTC 2023 Jerome Forissier <jerome.forissier@linaro.org> core: ftrace: mark thread_get_id_may_fail() as __noprof
With CFG_FTRACE_SUPPORT=y CFG_ULIBS_MCOUNT=y CFG_SYSCALL_FTRACE=y (tested on QEMUv8), OP-TEE boot hangs due to infinite recursion:
ftrace_enter() get_fbuf() thread_get_id_may_fail() _mcount() [or __gnu_mcount_nc()] ftrace_enter() ...
Break the cycle by tagging thread_get_id_may_fail() with __noprof so that it doesn't call _mcount()/__gnu_mcount_nc().
Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org> Acked-by: Jens Wiklander <jens.wiklander@linaro.org> Reviewed-by: Sumit Garg <sumit.garg@linaro.org>
|