[PATCH 4.14 220/315] tracing: Simplify & fix saved_tgids logic