From 1b53756e50cb9ad5422292d7f4e1e6fe23357222 Mon Sep 17 00:00:00 2001 From: Krishnan Parthasarathi Date: Wed, 3 Sep 2014 11:03:06 +0530 Subject: glusterd: Add last successful glusterd lock backtrace Also, moved the backtrace fetching logic to a separate function. Modified the backtrace fetching logic able to work under memory pressure conditions. Change-Id: Ie38bea425a085770f41831314aeda95595177ece BUG: 1138503 Signed-off-by: Krishnan Parthasarathi Reviewed-on: http://review.gluster.org/8584 Tested-by: Gluster Build System Reviewed-by: Jeff Darcy Reviewed-by: Atin Mukherjee --- libglusterfs/src/common-utils.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'libglusterfs/src/common-utils.h') diff --git a/libglusterfs/src/common-utils.h b/libglusterfs/src/common-utils.h index 4eec5170c60..a669e741e9a 100644 --- a/libglusterfs/src/common-utils.h +++ b/libglusterfs/src/common-utils.h @@ -644,4 +644,10 @@ gf_check_logger (const char *value); gf_boolean_t gf_compare_sockaddr (const struct sockaddr *addr1, const struct sockaddr *addr2); + +char * +gf_backtrace_save (char *buf); + +void +gf_backtrace_done (char *buf); #endif /* _COMMON_UTILS_H */ -- cgit