fix compile problem for trace_tree

Signed-off-by: xiehuc <xiehuc@gmail.com>