[9610] wlbt: Add support for DRAM sbl dump and mmap
authorAlbert Cano <a.canocamps@samsung.com>
Fri, 3 Aug 2018 10:46:56 +0000 (11:46 +0100)
committerhskang <hs1218.kang@samsung.com>
Fri, 17 Aug 2018 00:33:01 +0000 (20:33 -0400)
commit1b8e4f768e0368233287bb658d42e1a69705209a
treefdb4e4aa66eea6c26c917796f629244ce04752d3
parent5c81a11b32dc1e77173e94cf16b531445733d450
[9610] wlbt: Add support for DRAM sbl dump and mmap

Since Android P does not allow writting files from the Kernel, the patch
provides a mechanism to buffer the sbl file in DRAM (vmalloc) and allow mmap ops
so the wlbt could dump the file from Userland

Change-Id: I46348bf45b65a851e9878e8c65678ded0f420611
SCSC-Bug-Id: SSB-42521
Signed-off-by: Albert Cano <a.canocamps@samsung.com>
(cherry picked from commit e29a986dac1a22849026aeb0e88b89ba07f3270e)
drivers/misc/samsung/scsc/Makefile
drivers/misc/samsung/scsc/scsc_log_collector.c
drivers/misc/samsung/scsc/scsc_log_collector_mmap.c [new file with mode: 0644]
drivers/misc/samsung/scsc/scsc_log_collector_mmap.h [new file with mode: 0644]
include/scsc/scsc_log_collector.h