Re: [PATCH] perf: fix kernel panic when parsing user space CS saved in pt_regs

From: Zhang, Yanmin
Date: Thu Jun 05 2014 - 09:15:45 EST


On 2014/6/5 17:15, Peter Zijlstra wrote:
On Thu, Jun 05, 2014 at 04:00:24PM +0800, Zhang, Yanmin wrote:
On 2014/6/5 15:55, Peter Zijlstra wrote:
Why does pstore cause corruption? I thought that stuff was supposed to
be 'good' ?
pstore is good if the board is reset by WarmReset as memory content is kept
across rebooting.
If it's a ColdReset, memory might lose some or all contents. My board uses
Coldreset, which is a very
fast ColdReset. Most memory content can be kept. But sometimes, some data
has little change.
Oh, I thought pstore was persistent across cold resets or even power
outages. My bad then.

Sorry for misleading you. It depends on backend. Pstore can use RAM or
other storage, for example, EFI-provided backend. If using EFI backend,
pstore can keep persistent across cold reset or even power outrages.

If using RAM, usually pstore can keep persistent at WarmReset. Since RAM
access (even at non-cache mode) is fast and more flexible, in fact, we often use
RAM as backend of pstore.

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/