pstore: Merge per-CPU ftrace records into one
authorJoel Fernandes <joelaf@google.com>
Thu, 20 Oct 2016 07:34:06 +0000 (00:34 -0700)
committerKees Cook <keescook@chromium.org>
Wed, 16 Nov 2016 00:34:28 +0000 (16:34 -0800)
commit2fbea82bbb893e07a6f5c23397a60ec9933e54b7
treed178c357fac404a3b1bfd9b4d1f6cfe44fbeaee2
parentfbccdeb8d77d6830556bc4079eeed80298cc97dc
pstore: Merge per-CPU ftrace records into one

Up until this patch, each of the per CPU ftrace buffers appear as a
separate ftrace-ramoops-N file. In this patch we merge all the zones into
one and populate a single ftrace-ramoops-0 file.

Signed-off-by: Joel Fernandes <joelaf@google.com>
[kees: clarified variables names, added -ENOMEM handling]
Signed-off-by: Kees Cook <keescook@chromium.org>
fs/pstore/ram.c