mirror of
https://git.yoctoproject.org/poky
synced 2026-01-29 21:08:42 +01:00
latencytop: remove recipe
Last commit and release were in 2009; website is down; it's a dead project. (From OE-Core rev: 36aae56e7f86a4d5ce93e4528e7dcc42f60c705e) Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
a51236a244
commit
bcbc7bbc4f
@@ -159,7 +159,6 @@ DISTRO_PN_ALIAS_pn-kern-tools-native = "Windriver"
|
||||
DISTRO_PN_ALIAS_pn-keymaps = "OE-Core"
|
||||
DISTRO_PN_ALIAS_pn-kf = "OSPDT"
|
||||
DISTRO_PN_ALIAS_pn-lame = "Debian=lame Ubuntu=lame"
|
||||
DISTRO_PN_ALIAS_pn-latencytop = "Meego=latencytop Fedora=latencytop Debian=latencytop OpenSuSE=latencytop"
|
||||
DISTRO_PN_ALIAS_pn-ldconfig-native = "Ubuntu=libc-bin Fedora=glibc"
|
||||
DISTRO_PN_ALIAS_pn-liba52 = "Mandriva=a52dec Debian=a52dec"
|
||||
DISTRO_PN_ALIAS_pn-libacpi = "Ubuntu=libacpi Mandriva=libacpi"
|
||||
|
||||
@@ -304,7 +304,6 @@ RECIPE_MAINTAINER_pn-kmod-native = "Chen Qi <Qi.Chen@windriver.com>"
|
||||
RECIPE_MAINTAINER_pn-kmscube = "Carlos Rafael Giani <dv@pseudoterminal.org>"
|
||||
RECIPE_MAINTAINER_pn-l3afpad = "Maxin B. John <maxin.john@intel.com>"
|
||||
RECIPE_MAINTAINER_pn-lame = "Tanu Kaskinen <tanuk@iki.fi>"
|
||||
RECIPE_MAINTAINER_pn-latencytop = "Alexander Kanavin <alexander.kanavin@intel.com>"
|
||||
RECIPE_MAINTAINER_pn-ldconfig-native = "Khem Raj <raj.khem@gmail.com>"
|
||||
RECIPE_MAINTAINER_pn-less = "Yi Zhao <yi.zhao@windriver.com>"
|
||||
RECIPE_MAINTAINER_pn-liba52 = "Tanu Kaskinen <tanuk@iki.fi>"
|
||||
|
||||
@@ -26,7 +26,6 @@ RRECOMMENDS_${PN} = "\
|
||||
|
||||
PROFILETOOLS = "\
|
||||
powertop \
|
||||
latencytop \
|
||||
"
|
||||
PERF = "perf"
|
||||
PERF_libc-musl = ""
|
||||
|
||||
@@ -1,64 +0,0 @@
|
||||
From db112739dc4f608a968b8104b382955dc3d96ca3 Mon Sep 17 00:00:00 2001
|
||||
From: Khem Raj <raj.khem@gmail.com>
|
||||
Date: Mon, 7 Sep 2015 07:40:10 +0000
|
||||
Subject: [PATCH] Rectify the function signatures to fix prototype mismatches
|
||||
|
||||
clang is less forgiving when it comes to coding standards, correct the
|
||||
function signatures to reflect the function logic
|
||||
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
---
|
||||
Upstream-Status: Pending
|
||||
|
||||
fsync.c | 7 ++++---
|
||||
latencytop.h | 2 +-
|
||||
2 files changed, 5 insertions(+), 4 deletions(-)
|
||||
|
||||
diff --git a/fsync.c b/fsync.c
|
||||
index 82dff0e..5cefba9 100644
|
||||
--- a/fsync.c
|
||||
+++ b/fsync.c
|
||||
@@ -51,7 +51,7 @@ struct fsync_files {
|
||||
static GList *fsync_data;
|
||||
|
||||
|
||||
-static chain_file(struct fsync_process *proc, char *filename)
|
||||
+static void chain_file(struct fsync_process *proc, char *filename)
|
||||
{
|
||||
struct fsync_files *file;
|
||||
GList *item;
|
||||
@@ -75,7 +75,7 @@ static chain_file(struct fsync_process *proc, char *filename)
|
||||
proc->files = g_list_append(proc->files, file);
|
||||
}
|
||||
|
||||
-static report_file(char *process, char *file)
|
||||
+static void report_file(char *process, char *file)
|
||||
{
|
||||
struct fsync_process *proc;
|
||||
GList *item;
|
||||
@@ -157,9 +157,10 @@ int enable_fsync_tracer(void)
|
||||
write_to_file("/sys/kernel/debug/tracing/current_tracer", "fsync");
|
||||
write_to_file("/sys/kernel/debug/tracing/iter_ctrl", "ftrace_printk");
|
||||
write_to_file("/sys/kernel/debug/tracing/tracing_on", "1");
|
||||
+ return ret;
|
||||
}
|
||||
|
||||
-int disable_fsync_tracer(void)
|
||||
+void disable_fsync_tracer(void)
|
||||
{
|
||||
write_to_file("/sys/kernel/debug/tracing/tracing_on", "0");
|
||||
}
|
||||
diff --git a/latencytop.h b/latencytop.h
|
||||
index 5394d73..9d107a8 100644
|
||||
--- a/latencytop.h
|
||||
+++ b/latencytop.h
|
||||
@@ -54,5 +54,5 @@ extern char *translate(char *line);
|
||||
extern void init_translations(char *filename);
|
||||
extern int fsync_display(int duration);
|
||||
extern int enable_fsync_tracer(void);
|
||||
-extern int disable_fsync_tracer(void);
|
||||
+extern void disable_fsync_tracer(void);
|
||||
extern void update_list(void);
|
||||
--
|
||||
2.5.1
|
||||
|
||||
@@ -1,49 +0,0 @@
|
||||
linux: sysfs: use tracing_on as tracing_enabled is deprecated
|
||||
|
||||
tracing_enabled use in the kernel is being deprecated as per commit
|
||||
6752ab4a9c30 [tracing: Deprecate tracing_enabled for tracing_on] in
|
||||
the linux mainline kernel. tracing_enabled use will generate a warning
|
||||
and may no longer function as expected, therefore move to use tracing_on.
|
||||
|
||||
Upstream-Status: Pending
|
||||
|
||||
Signed-off-by: Dennis Hall <dennis.hall@windriver.com>
|
||||
|
||||
Index: latencytop-0.5/fsync.c
|
||||
===================================================================
|
||||
--- latencytop-0.5.orig/fsync.c 2012-08-03 10:45:49.000000000 -0400
|
||||
+++ latencytop-0.5/fsync.c 2012-08-03 10:48:39.000000000 -0400
|
||||
@@ -149,19 +149,19 @@
|
||||
* cd /sys/kernel/debug/tracing
|
||||
* echo fsync > current_tracer
|
||||
* echo ftrace_printk > iter_ctrl
|
||||
- * echo 1 > tracing_enabled
|
||||
+ * echo 1 > tracing_on
|
||||
*/
|
||||
ret = system("/bin/mount -t debugfs none /sys/kernel/debug/");
|
||||
if (!ret)
|
||||
return -1;
|
||||
write_to_file("/sys/kernel/debug/tracing/current_tracer", "fsync");
|
||||
write_to_file("/sys/kernel/debug/tracing/iter_ctrl", "ftrace_printk");
|
||||
- write_to_file("/sys/kernel/debug/tracing/tracing_enabled", "1");
|
||||
+ write_to_file("/sys/kernel/debug/tracing/tracing_on", "1");
|
||||
}
|
||||
|
||||
int disable_fsync_tracer(void)
|
||||
{
|
||||
- write_to_file("/sys/kernel/debug/tracing/tracing_enabled", "0");
|
||||
+ write_to_file("/sys/kernel/debug/tracing/tracing_on", "0");
|
||||
}
|
||||
|
||||
|
||||
@@ -339,8 +339,8 @@
|
||||
if (curduration > 5)
|
||||
curduration = 5;
|
||||
/* clear the ftrace buffer */
|
||||
- write_to_file("/sys/kernel/debug/tracing/tracing_enabled", "0");
|
||||
- write_to_file("/sys/kernel/debug/tracing/tracing_enabled", "1");
|
||||
+ write_to_file("/sys/kernel/debug/tracing/tracing_on", "0");
|
||||
+ write_to_file("/sys/kernel/debug/tracing/tracing_on", "1");
|
||||
key = select(1, &rfds, NULL, NULL, &end);
|
||||
parse_ftrace();
|
||||
print_global_list();
|
||||
@@ -1,43 +0,0 @@
|
||||
|
||||
Signed-off-by: Jack Mitchell <jack.mitchell@dbbroadcast.co.uk>
|
||||
Upstream-Status: Pending
|
||||
|
||||
diff --git a/Makefile.orig b/Makefile
|
||||
index 16a2369..fa797a2 100644
|
||||
--- a/Makefile.orig
|
||||
+++ b/Makefile
|
||||
@@ -1,10 +1,11 @@
|
||||
-# FIXME: Use autoconf ?
|
||||
-HAS_GTK_GUI = 1
|
||||
+#
|
||||
+#
|
||||
|
||||
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 $(LDFLAGS)
|
||||
+CC ?= gcc
|
||||
|
||||
OBJS= latencytop.o text_display.o translate.o fsync.o
|
||||
|
||||
@@ -26,16 +27,17 @@ endif
|
||||
|
||||
# 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
|
||||
|
||||
install: latencytop
|
||||
mkdir -p $(DESTDIR)/usr/share/latencytop
|
||||
+ mkdir -p $(DESTDIR)/$(SBINDIR)
|
||||
install -m 0644 latencytop.trans $(DESTDIR)/usr/share/latencytop/latencytop.trans
|
||||
install -m 0644 *.png $(DESTDIR)/usr/share/latencytop/
|
||||
install -m 0755 latencytop $(DESTDIR)$(SBINDIR)/
|
||||
@@ -1,32 +0,0 @@
|
||||
SUMMARY = "Linux tool for measuring and fixing latency"
|
||||
HOMEPAGE = "http://www.latencytop.org/"
|
||||
|
||||
LICENSE = "GPLv2"
|
||||
LIC_FILES_CHKSUM = "file://latencytop.c;endline=23;md5=ee9ea9b1415356e5734adad4a87dc7fa"
|
||||
|
||||
inherit pkgconfig
|
||||
|
||||
DEPENDS = "virtual/libintl ncurses glib-2.0"
|
||||
|
||||
PR = "r3"
|
||||
|
||||
SRC_URI = "http://pkgs.fedoraproject.org/repo/pkgs/${BPN}/${BP}.tar.gz/73bb3371c6ee0b0e68e25289027e865c/${BP}.tar.gz \
|
||||
file://latencytop-makefile.patch \
|
||||
file://latencytop-fsync.patch \
|
||||
file://0001-Rectify-the-function-signatures-to-fix-prototype-mis.patch \
|
||||
"
|
||||
|
||||
SRC_URI[md5sum] = "73bb3371c6ee0b0e68e25289027e865c"
|
||||
SRC_URI[sha256sum] = "9e7f72fbea7bd918e71212a1eabaad8488d2c602205d2e3c95d62cd57e9203ef"
|
||||
|
||||
PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'x11', d)}"
|
||||
|
||||
PACKAGECONFIG[x11] = ",,gtk+"
|
||||
|
||||
EXTRA_OEMAKE_X = "${@bb.utils.contains('PACKAGECONFIG', 'x11', 'HAS_GTK_GUI=1', '', d)}"
|
||||
|
||||
#CFLAGS += "${LDFLAGS}"
|
||||
|
||||
do_install() {
|
||||
oe_runmake install DESTDIR=${D} ${EXTRA_OEMAKE_X}
|
||||
}
|
||||
Reference in New Issue
Block a user