[PATCH 5.1 013/405] tracing: Add a check_val() check before updating cond_snapshot() track_val