* [Buildroot] [PATCH v4] New Package: latencytop
@ 2012-04-18 11:06 Qais Yousef
2012-04-24 21:27 ` Peter Korsgaard
0 siblings, 1 reply; 3+ messages in thread
From: Qais Yousef @ 2012-04-18 11:06 UTC (permalink / raw)
To: buildroot
Signed-off-by: Qais Yousef <qais.yousef@imgtec.com>
---
package/Config.in | 1 +
package/latencytop/Config.in | 23 +++++++++++++++++++++
package/latencytop/latencytop-makefile.patch | 28 ++++++++++++++++++++++++++
package/latencytop/latencytop.mk | 21 +++++++++++++++++++
4 files changed, 73 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
diff --git a/package/Config.in b/package/Config.in
index e1629c8..24e43f6 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -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"
diff --git a/package/latencytop/Config.in b/package/latencytop/Config.in
new file mode 100644
index 0000000..12176c0
--- /dev/null
+++ b/package/latencytop/Config.in
@@ -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
diff --git a/package/latencytop/latencytop-makefile.patch b/package/latencytop/latencytop-makefile.patch
new file mode 100644
index 0000000..fa8c51c
--- /dev/null
+++ b/package/latencytop/latencytop-makefile.patch
@@ -0,0 +1,28 @@
+Usee $(CC) to enable cross compiling and link to the right ncurses library.
+
+Signed-off-by: Qais Yousef <qais.yousef@imgtec.com>
+
+--- latencytop-0.5/Makefile.old 2012-04-18 11:59:39.748084334 +0100
++++ latencytop-0.5/Makefile 2012-04-18 12:00:08.659112340 +0100
+@@ -4,7 +4,7 @@
+ 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
+
+@@ -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
diff --git a/package/latencytop/latencytop.mk b/package/latencytop/latencytop.mk
new file mode 100644
index 0000000..73d5ba2
--- /dev/null
+++ b/package/latencytop/latencytop.mk
@@ -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=
+endef
+
+define LATENCYTOP_INSTALL_TARGET_CMDS
+ $(MAKE) install -C $(@D) DESTDIR=$(TARGET_DIR) HAS_GTK_GUI=
+endef
+
+$(eval $(call GENTARGETS))
--
1.7.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH v4] New Package: latencytop
2012-04-18 11:06 [Buildroot] [PATCH v4] New Package: latencytop Qais Yousef
@ 2012-04-24 21:27 ` Peter Korsgaard
2012-04-25 9:30 ` Qais Yousef
0 siblings, 1 reply; 3+ messages in thread
From: Peter Korsgaard @ 2012-04-24 21:27 UTC (permalink / raw)
To: buildroot
>>>>> "Qais" == Qais Yousef <qais.yousef@imgtec.com> writes:
Qais> Signed-off-by: Qais Yousef <qais.yousef@imgtec.com>
Committed, thanks.
Qais> @@ -37,6 +37,7 @@ source "package/strace/Config.in"
Qais> source "package/whetstone/Config.in"
Qais> source "package/valgrind/Config.in"
Qais> source "package/pv/Config.in"
Qais> +source "package/latencytop/Config.in"
This should be in alphabetical order, but I've fixed that.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH v4] New Package: latencytop
2012-04-24 21:27 ` Peter Korsgaard
@ 2012-04-25 9:30 ` Qais Yousef
0 siblings, 0 replies; 3+ messages in thread
From: Qais Yousef @ 2012-04-25 9:30 UTC (permalink / raw)
To: buildroot
> Qais> @@ -37,6 +37,7 @@ source "package/strace/Config.in"
> Qais> source "package/whetstone/Config.in"
> Qais> source "package/valgrind/Config.in"
> Qais> source "package/pv/Config.in"
> Qais> +source "package/latencytop/Config.in"
>
> This should be in alphabetical order, but I've fixed that.
Noted for the future :-) Thanks for fixing it.
Qais
>
> --
> Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-04-25 9:30 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-18 11:06 [Buildroot] [PATCH v4] New Package: latencytop Qais Yousef
2012-04-24 21:27 ` Peter Korsgaard
2012-04-25 9:30 ` Qais Yousef
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.