New Package: latencytop
PATCH v3 1/1 New Package: latencytop
--- package/Config.in | 1 + package/latencytop/Config.in | 23 ++++++++++++++++++++ package/latencytop/latencytop-makefile.patch | 29 ++++++++++++++++++++++++++ package/latencytop/latencytop.mk | 21 ++++++++++++++++++ 4 files changed, 74 insertions(+), 0 deletions(-) create mode 100644 package/latencytop/Config.in create mode 100644 package/latencytop/latencytop-makefile.patch create mode 100644 package/latencytop/latencytop.mk
package/Config.in +1 -0
@@ -37,6 +37,7 @@ source "package/strace/Config.in" source "package/whetstone/Config.in" source "package/valgrind/Config.in" source "package/pv/Config.in" +source "package/latencytop/Config.in" endmenu menu "Development tools"
package/latencytop/Config.in new file +23 -0
@@ -0,0 +1,23 @@ +config BR2_PACKAGE_LATENCYTOP + bool "latencytop" + depends on BR2_USE_WCHAR + select BR2_PACKAGE_NCURSES + select BR2_PACKAGE_LIBGLIB2 + help + There are many types and causes of latency. LatencyTOP + focuses on the type of latency that causes skips in audio, + stutters in your desktop experience or that overloads your + server (while you have plenty of CPU power left). + + LatencyTOP focuses on the cases where the applications want + to run and execute useful code, but there's some resource + that's not currently available (and the kernel then blocks + the process). This is done both on a system level and on a + per process level, so that you can see what's happening to + the system, and which process is suffering and/or causing + the delays. + + http://www.latencytop.org + +comment "latencytop requires a toolchain with WCHAR support" + depends on !BR2_USE_WCHAR
package/latencytop/latencytop-makefile.patch new file +29 -0
@@ -0,0 +1,29 @@ +--- latencytop-0.5/Makefile.old 2012-04-17 16:22:25.896083743 +0100 ++++ latencytop-0.5/Makefile 2012-04-17 16:23:01.318057605 +0100 +@@ -4,11 +4,11 @@ + DESTDIR = + SBINDIR = /usr/sbin + XCFLAGS = -W -g `pkg-config --cflags glib-2.0` -D_FORTIFY_SOURCE=2 -Wno-sign-compare +-LDF = -Wl,--as-needed `pkg-config --libs glib-2.0` -lncursesw ++LDF = -Wl,--as-needed `pkg-config --libs glib-2.0` -lncurses + + OBJS= latencytop.o text_display.o translate.o fsync.o + +-ifdef HAS_GTK_GUI ++ifneq ($(HAS_GTK_GUI),0) + XCFLAGS += `pkg-config --cflags gtk+-2.0` -DHAS_GTK_GUI + LDF += `pkg-config --libs gtk+-2.0` + OBJS += gtk_display.o +@@ -26,10 +26,10 @@ + + # We write explicity this "implicit rule" + %.o : %.c +- gcc -c $(CFLAGS) $(XCFLAGS) $< -o $@ ++ $(CC) -c $(CFLAGS) $(XCFLAGS) $< -o $@ + + latencytop: $(OBJS) latencytop.h Makefile +- gcc $(CFLAGS) $(OBJS) $(LDF) -o latencytop ++ $(CC) $(CFLAGS) $(OBJS) $(LDF) -o latencytop + + clean: + rm -f *~ latencytop DEADJOE *.o
package/latencytop/latencytop.mk new file +21 -0
@@ -0,0 +1,21 @@ +############################################################# +# +# latencytop +# +############################################################# + +LATENCYTOP_VERSION = 0.5 +LATENCYTOP_SITE = http://www.latencytop.org/download/ +LATENCYTOP_DEPENDENCIES = libglib2 ncurses + +# NOTE: GTK is heavy weight, we intentionally build the text (ncurses) +# version only +define LATENCYTOP_BUILD_CMDS + $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) HAS_GTK_GUI=0 +endef + +define LATENCYTOP_INSTALL_TARGET_CMDS + $(MAKE) install -C $(@D) DESTDIR=$(TARGET_DIR) HAS_GTK_GUI=0 +endef + +$(eval $(call GENTARGETS))
Signature · 1 line
1.7.1
PATCH v3 1/1 New Package: latencytop
Quoted 6 lines · On Tuesday 17 April 2012 18:28:55 Qais Yousef wrote:
+--- latencytop-0.5/Makefile.old 2012-04-17 16:22:25.896083743 +0100 ++++ latencytop-0.5/Makefile 2012-04-17 16:23:01.318057605 +0100+@@ -4,11 +4,11 @@
+ DESTDIR =
+ SBINDIR =/usr/sbin
+ XCFLAGS = -W -gpkg-config --cflags glib-2.0-D_FORTIFY_SOURCE=2 -Wno-sign-compare
Quoted 7 lines
+-LDF = -Wl,--as-needed `pkg-config --libs glib-2.0` -lncursesw ++LDF = -Wl,--as-needed `pkg-config --libs glib-2.0` -lncurses+
+ OBJS= latencytop.o text_display.o translate.o fsync.o +
+-ifdefHAS_GTK_GUI
++ifneq ($(HAS_GTK_GUI),0)
I think this one is unneeded as well if you use HAS_GTK_GUI= (without
the 0). So:
Quoted 1 line
+ $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) HAS_GTK_GUI=0
would become
$(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) HAS_GTK_GUI=
Regards,
Arnout
Signature · 6 lines
Arnout Vandecappelle arnout at mind be Senior Embedded Software Architect +32-16-286540 Essensium/Mind http://www.mind.be G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle GPG fingerprint: 7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F
PATCH v3 1/1 New Package: latencytop
Quoted 2 lines · On Tuesday 17 April 2012 18:28:55 Qais Yousef wrote:
Quoted 1 line
+--- latencytop-0.5/Makefile.old 2012-04-17
16:22:25.896083743 +0100
Quoted 5 lines
Quoted 5 lines
++++ latencytop-0.5/Makefile 2012-04-17 16:23:01.318057605 +0100
+@@ -4,11 +4,11 @@
+ DESTDIR =
+ SBINDIR =/usr/sbin
+ XCFLAGS = -W -gpkg-config --cflags glib-2.0
-D_FORTIFY_SOURCE=2 -
Quoted 10 lines
Wno-sign-compare
package/latencytop/latencytop-makefile.patch line 13
Quoted 7 lines
+-LDF = -Wl,--as-needed `pkg-config --libs glib-2.0` -lncursesw ++LDF = -Wl,--as-needed `pkg-config --libs glib-2.0` -lncursespackage/latencytop/latencytop-makefile.patch new file +5
-0+ + OBJS= latencytop.o text_display.o translate.o fsync.o + +-ifdef HAS_GTK_GUI ++ifneq ($(HAS_GTK_GUI),0)I think this one is unneeded as well if you use HAS_GTK_GUI= (without
the
Quoted 10 lines
0). So:
Quoted 1 line
+ $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) HAS_GTK_GUI=0
would become
$(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) HAS_GTK_GUI=Regards,
Arnout
Thanks, just sent an updated version. I realised that the patch wasn't signed off so fixed that too :)
Cheers,
Qais