[PATCH 6.0 284/314] perf: Improve missing SIGTRAP checking