mirror of
https://github.com/torvalds/linux.git
synced 2026-10-10 20:38:02 +02:00
perf/x86/intel: Update arw_latency_data() mem-op direction handling
Align arw_latency_data() with other *_latency_data() helpers by explicitly decoding LOAD/STORE event flags when setting the sampled memory operation direction. This keeps the latency data path behavior consistent across platforms and avoids relying on implicit direction inference. Signed-off-by: Dapeng Mi <dapeng1.mi@linux.intel.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Signed-off-by: Ingo Molnar <mingo@kernel.org> Link: https://patch.msgid.link/20260917015234.981153-5-dapeng1.mi@linux.intel.com
This commit is contained in:
parent
8302c5f475
commit
335b064281
|
|
@ -538,7 +538,11 @@ static u64 arw_latency_data(struct perf_event *event, u64 status)
|
|||
val |= P(BLK, NA);
|
||||
|
||||
src.val = val;
|
||||
if (event->hw.flags & PERF_X86_EVENT_PEBS_ST_HSW)
|
||||
if (event->hw.flags &
|
||||
(PERF_X86_EVENT_PEBS_LDLAT | PERF_X86_EVENT_PEBS_LD_HSW))
|
||||
src.mem_op = P(OP, LOAD);
|
||||
if (event->hw.flags &
|
||||
(PERF_X86_EVENT_PEBS_STLAT | PERF_X86_EVENT_PEBS_ST_HSW))
|
||||
src.mem_op = P(OP, STORE);
|
||||
|
||||
return src.val;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user