Skip to contentSkip to conversation

gfs2-utils: Add the glocktop utility

PATCH New Andrew Price 1 participant 1 message Jan 28, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gfs2-utils: Add the glocktop utility

This adds Bob Peterson's glocktop program and glocktop(8) man page. This tool can be used for debugging glock-related issues and to analyze locking related performance issues. Changes from the original imported glocktop.c are:

- Linked against libgfs2 and de-duplicated functions provided by libgfs2
- Fixed build warnings (mainly -Wformat stuff)
- Fixed issues spotted by coverity

---
 .gitignore                |    1 +
 configure.ac              |    1 +
 gfs2/Makefile.am          |    1 +
 gfs2/glocktop/Makefile.am |   23 +
 gfs2/glocktop/glocktop.c  | 1874 +++++++++++++++++++++++++++++++++++++++++++++
 gfs2/man/Makefile.am      |    3 +-
 gfs2/man/glocktop.8       |  281 +++++++
 7 files changed, 2183 insertions(+), 1 deletion(-)
 create mode 100644 gfs2/glocktop/Makefile.am
 create mode 100644 gfs2/glocktop/glocktop.c
 create mode 100644 gfs2/man/glocktop.8
.gitignore +1 -0
index 60ea971..bc8236e 100644
@@ -39,6 +39,7 @@ gfs2/libgfs2/parser.h
 gfs2/libgfs2/lexer.c
 gfs2/libgfs2/lexer.h
 gfs2/fsck/fsck.gfs2
+gfs2/glocktop/glocktop
 gfs2/mkfs/mkfs.gfs2
 gfs2/mkfs/gfs2_grow
 gfs2/mkfs/gfs2_jadd
configure.ac +1 -0
index a5418aa..130cb01 100644
@@ -204,6 +204,7 @@ AC_CONFIG_FILES([Makefile
 		 gfs2/tune/Makefile
 		 gfs2/man/Makefile
 		 gfs2/scripts/Makefile
+		 gfs2/glocktop/Makefile
 		 doc/Makefile
 		 tests/Makefile
 		 tests/atlocal
gfs2/Makefile.am +1 -0
index 028e840..5a2eefd 100644
@@ -9,4 +9,5 @@ SUBDIRS = \
 	mkfs \
 	man \
 	tune \
+	glocktop \
 	scripts
gfs2/glocktop/Makefile.am new file +23 -0
new file mode 100644
index 0000000..a43c519
@@ -0,0 +1,23 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+sbin_PROGRAMS = \
+	glocktop
+
+glocktop_SOURCES = \
+	glocktop.c
+
+glocktop_CFLAGS = \
+	$(ncurses_CFLAGS)
+
+glocktop_LDFLAGS = \
+	$(ncurses_LIBS)
+
+glocktop_CPPFLAGS = \
+	-D_FILE_OFFSET_BITS=64 \
+	-D_LARGEFILE64_SOURCE \
+	-D_GNU_SOURCE \
+	-I$(top_srcdir)/gfs2/include \
+	-I$(top_srcdir)/gfs2/libgfs2
+
+glocktop_LDADD = \
+	$(top_builddir)/gfs2/libgfs2/libgfs2.la
gfs2/glocktop/glocktop.c new file +1874 -0

1,874 lines not on this page · raw message

gfs2/man/Makefile.am +2 -1
index d73f1ed..b6cc120 100644
@@ -10,4 +10,5 @@ dist_man_MANS = \
 	mkfs.gfs2.8 \
 	tunegfs2.8 \
 	gfs2_lockcapture.8 \
-	gfs2_trace.8
+	gfs2_trace.8 \
+	glocktop.8
gfs2/man/glocktop.8 new file +281 -0

281 lines not on this page · raw message

Signature · 1 line
2.4.3