mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-28 05:24:47 +08:00
perf intel-pt: Fix async branch flags
[ Upstream commitf2d87895cb
] Ensure PERF_IP_FLAG_ASYNC is set always for asynchronous branches (i.e. interrupts etc). Fixes:90e457f7be
("perf tools: Add Intel PT support") Cc: stable@vger.kernel.org Signed-off-by: Adrian Hunter <adrian.hunter@intel.com> Acked-by: Namhyung Kim <namhyung@kernel.org> Link: https://lore.kernel.org/r/20230928072953.19369-1-adrian.hunter@intel.com Signed-off-by: Namhyung Kim <namhyung@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
0a6b5321dc
commit
1e9973aea2
@ -1346,9 +1346,11 @@ static void intel_pt_sample_flags(struct intel_pt_queue *ptq)
|
||||
} else if (ptq->state->flags & INTEL_PT_ASYNC) {
|
||||
if (!ptq->state->to_ip)
|
||||
ptq->flags = PERF_IP_FLAG_BRANCH |
|
||||
PERF_IP_FLAG_ASYNC |
|
||||
PERF_IP_FLAG_TRACE_END;
|
||||
else if (ptq->state->from_nr && !ptq->state->to_nr)
|
||||
ptq->flags = PERF_IP_FLAG_BRANCH | PERF_IP_FLAG_CALL |
|
||||
PERF_IP_FLAG_ASYNC |
|
||||
PERF_IP_FLAG_VMEXIT;
|
||||
else
|
||||
ptq->flags = PERF_IP_FLAG_BRANCH | PERF_IP_FLAG_CALL |
|
||||
|
Loading…
Reference in New Issue
Block a user