From d93a6691538270aefe7703e8f8d7c822f53528e5 Mon Sep 17 00:00:00 2001 From: Niels de Vos Date: Fri, 6 Jan 2017 12:49:32 +0100 Subject: gfapi: add API to trigger events for debugging and troubleshooting Introduce glfs_sysrq() as a generic API for triggering debug and troubleshoot events. This interface will be used by the feature to get statedumps for applications using libgfapi. The current events that can be requested through this API are: - 'h'elp: log a mesage with all supported events - 's'tatedump: trigger a statedump for the passed glfs_t In future, this API can be used by a CLI to trigger statedumps from storage servers. At the moment it is limited to take statedumps, but it is extensible to set the log-level, clear caches, force reconnects and much more. BUG: 1169302 Change-Id: I18858359a3957870cea5139c79efe1365a15a992 Original-author: Poornima G Signed-off-by: Niels de Vos Reviewed-on: http://review.gluster.org/16414 Reviewed-by: Prashanth Pai Smoke: Gluster Build System NetBSD-regression: NetBSD Build System CentOS-regression: Gluster Build System Reviewed-by: Kaleb KEITHLEY --- api/src/gfapi.aliases | 2 ++ 1 file changed, 2 insertions(+) (limited to 'api/src/gfapi.aliases') diff --git a/api/src/gfapi.aliases b/api/src/gfapi.aliases index d2c4ba2f037..5acfebd83d9 100644 --- a/api/src/gfapi.aliases +++ b/api/src/gfapi.aliases @@ -156,4 +156,6 @@ _pub_glfs_upcall_inode_get_oldpobject _glfs_upcall_inode_get_oldpobject$GFAPI_3. _pub_glfs_upcall_inode_get_oldpstat _glfs_upcall_inode_get_oldpstat$GFAPI_3.7.16 _pub_glfs_realpath _glfs_realpath$GFAPI_3.7.17 +_pub_glfs_sysrq _glfs_sysrq$GFAPI_3.10.0 + _pub_glfs_ipc _glfs_ipc$GFAPI_4.0.0 -- cgit