[PATCH v5 8/9] perf thread: Add helper to get top return address