trace: fix deadlock of current code when tracer is enabled

Mark functions that are needed by logger as notrace.

Signed-off-by: Liu Yuan <tailai.ly@taobao.com>
Signed-off-by: MORITA Kazutaka <morita.kazutaka@lab.ntt.co.jp>