tracing/filter: Unify predicate tree walking, change check_pred_tree function to...