提交 bc284e5d 编写于 作者: A Anton Blanchard 提交者: Paul Mackerras

powerpc: perf_event: Log invalid data addresses as all 1s

When we take an exception and the SDAR isn't synchronised we currently
log 0 as the address.  Unfortunately this is a pretty common value, so
use ~0UL instead.
Signed-off-by: NAnton Blanchard <anton@samba.org>
Signed-off-by: NPaul Mackerras <paulus@samba.org>
上级 a3ccf63e
...@@ -1162,7 +1162,7 @@ static void record_and_restart(struct perf_event *event, unsigned long val, ...@@ -1162,7 +1162,7 @@ static void record_and_restart(struct perf_event *event, unsigned long val,
*/ */
if (record) { if (record) {
struct perf_sample_data data = { struct perf_sample_data data = {
.addr = 0, .addr = ~0ULL,
.period = event->hw.last_period, .period = event->hw.last_period,
}; };
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册