projects
/
linux
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b1f0562
)
perf intel-pt: Fix async branch flags
author
Adrian Hunter
<adrian.hunter@intel.com>
Thu, 28 Sep 2023 07:29:53 +0000
(10:29 +0300)
committer
Namhyung Kim
<namhyung@kernel.org>
Sat, 30 Sep 2023 06:59:08 +0000
(23:59 -0700)
Ensure PERF_IP_FLAG_ASYNC is set always for asynchronous branches (i.e.
interrupts etc).
Fixes:
90e457f7be08
("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>
tools/perf/util/intel-pt.c
patch
|
blob
|
history
diff --git
a/tools/perf/util/intel-pt.c
b/tools/perf/util/intel-pt.c
index dbf0bc71a63bee5220180d9e5701b92dd15e696d..f38893e0b036921cd3f576a2905b38cfde74003f 100644
(file)
--- a/
tools/perf/util/intel-pt.c
+++ b/
tools/perf/util/intel-pt.c
@@
-1512,9
+1512,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 |