Add user stack into /proc/xxx/stack.
authorxiaobing tu <xiaobing.tu@intel.com>
Fri, 13 Apr 2012 02:37:00 +0000 (10:37 +0800)
committerbuildbot <buildbot@intel.com>
Thu, 26 Apr 2012 23:48:41 +0000 (16:48 -0700)
commit2cc00dd9d550b5c97a9cb65ef9621eea3adbc4db
tree8e89075b95dae8b02ef6bd9ffadd04047e90af1e
parent262c7842b5fca2bcaf86a3c97843d489ebed49c9
Add user stack into /proc/xxx/stack.

BZ 32868

We often need user space stack call-chain information when debugging hard issues.
Here is a prototype and it could work well on X86 architecture.
The idea is to output user space stack call-chain from /proc/xxx/stack, currently,
/proc/xxx/stack only output kernel stack call chain. We extend it to output user
space call chain With hex format.In user space, we implement a backtrace tool, it
read kernel space and user space stack call chain from /proc/xxx/stack, and converts
 the hex format into symbols., we tested it on i386/i686 and x86-64. It works well.

kernel patch for this tool
Signed-off-by: xiaobing tu <xiaobing.tu@intel.com>
Change-Id: I009c46282a7abc7fdf3f7cd34d4849095f79d50d
Reviewed-on: http://android.intel.com:8080/43335
Reviewed-by: Tu, Xiaobing <xiaobing.tu@intel.com>
Reviewed-by: Zhang, Yanmin <yanmin.zhang@intel.com>
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Reviewed-by: Kuppuswamy, Sathyanarayanan <sathyanarayanan.kuppuswamy@intel.com>
Tested-by: Ng, Cheon-woei <cheon-woei.ng@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
arch/x86/kernel/stacktrace.c
fs/proc/base.c
include/linux/stacktrace.h