Whamcloud - gitweb
LU-969 debug: reduce stack usage
authorHongchao Zhang <hongchao.zhang@whamcloud.com>
Mon, 12 Mar 2012 08:11:47 +0000 (16:11 +0800)
committerOleg Drokin <green@whamcloud.com>
Wed, 14 Mar 2012 17:00:55 +0000 (13:00 -0400)
commit7de9e8dd313557997fb28f3926516b5c26d31c9a
tree1720135ca5f6bfd60a21a095b41d985638f26184
parenta562648d49aca59a8f9af5c77a149a9fe69353e4
LU-969 debug: reduce stack usage

1, libcfs_debug_vmsg2 to accept libcfs_debug_msg_data struture
   to replace SUBSYSTEM, __FILE__, __FUNCTION__, __LINE__ and
   cdls on the stack

2, CDEBUG, DEBUG_CAPA use static libcfs_debug_msg_data

3, remove the local variable in RETURN/GOTO/__CHECK_STACK

4, reduce stack in recovery thread by moving lu_env,
   ptlrpc_thread to heap.

Signed-off-by: Alex Zhuravlev <bzzz@whamcloud.com>
Signed-off-by: Hongchao Zhang <hongchao.zhang@whamcloud.com>
Change-Id: I4a66d18d956ea4526ac85794d17305bde67f5634
Reviewed-on: http://review.whamcloud.com/2162
Tested-by: Hudson
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
29 files changed:
libcfs/include/libcfs/darwin/libcfs.h
libcfs/include/libcfs/libcfs_debug.h
libcfs/include/libcfs/libcfs_private.h
libcfs/include/libcfs/linux/libcfs.h
libcfs/include/libcfs/posix/libcfs.h
libcfs/include/libcfs/winnt/libcfs.h
libcfs/libcfs/darwin/darwin-debug.c
libcfs/libcfs/debug.c
libcfs/libcfs/linux/linux-debug.c
libcfs/libcfs/linux/linux-tracefile.c
libcfs/libcfs/module.c
libcfs/libcfs/posix/posix-debug.c
libcfs/libcfs/tracefile.c
libcfs/libcfs/tracefile.h
libcfs/libcfs/user-prim.c
libcfs/libcfs/winnt/winnt-debug.c
lustre/include/cl_object.h
lustre/include/lu_object.h
lustre/include/lustre_capa.h
lustre/include/lustre_dlm.h
lustre/include/lustre_net.h
lustre/ldlm/ldlm_lib.c
lustre/ldlm/ldlm_lock.c
lustre/ldlm/ldlm_lockd.c
lustre/lmv/lmv_obd.c
lustre/obdclass/capa.c
lustre/obdclass/lu_object.c
lustre/ptlrpc/llog_server.c
lustre/ptlrpc/pack_generic.c