[PATCH 5.4 105/122] tracing: Simplify & fix saved_tgids logic