提交 9639640b 编写于 作者: T Tan Xiaojun 提交者: Xie XiuQi

arm_spe: Fix the bug in arm_spe_flush

hulk inclusion
category: feature
bugzilla: 18657
CVE: NA

-------------------------------------------

The parsing of spe-c2c requires the processing of spe data, so the
logic here needs to be modified.
Signed-off-by: NTan Xiaojun <tanxiaojun@huawei.com>
Signed-off-by: NWei Li <liwei391@huawei.com>
Reviewed-by: NXuefeng Wang <wxf.wang@hisilicon.com>
Reviewed-by: NTan Xiaojun <tanxiaojun@huawei.com>
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
上级 71e3343b
......@@ -1051,10 +1051,12 @@ static int arm_spe_flush(struct perf_session *session __maybe_unused,
return arm_spe_process_timeless_queues(spe, -1,
MAX_TIMESTAMP - 1);
ret = arm_spe_process_queues(spe, MAX_TIMESTAMP);
if (ret < 0)
return ret;
if (spe->sample_c2c_mode)
ret = arm_spe_c2c_process(spe);
else
ret = arm_spe_process_queues(spe, MAX_TIMESTAMP);
return ret;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册