panic handle: Stream call trace into emmc
authorZhang Dongxing <dongxing.zhang@intel.com>
Tue, 26 Jul 2011 02:33:41 +0000 (10:33 +0800)
committerbuildbot <buildbot@intel.com>
Fri, 16 Dec 2011 09:39:55 +0000 (01:39 -0800)
commitb580beeea1ac6af42915175d71c675bca2009d62
treea513518a31427d05f65a676602a49ad9fcc87e2a
parent150da96dbe7154abe961ec5026048a621541542b
panic handle: Stream call trace into emmc

BZ: 17214

Once kernel panic happened, we will save all call stack of all
threads into __log_buf and then we will write it to emmc panic
partition. With the increase of thread count, we need more
large__log_buf. It will waste more RAM buffer.

We stream the call trace from __log_buf into emmc panic
partition without allocating more RAM buffer. Once there is
some call trace logged in __log_buf, we will write all into emmc.

Change-Id: I7293c80fdadfee056694a9e1a548e2f17e955e61
Signed-off-by: Zhang Dongxing <dongxing.zhang@intel.com>
Reviewed-on: http://android.intel.com:8080/26996
Reviewed-by: Guerard, Christophe <christophe.guerard@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
drivers/misc/emmc_ipanic.c
include/linux/sched.h
kernel/sched.c