Atop is an ASCII full-screen performance monitor that is capable of
reporting the activity of all processes (even if processes have
finished during the interval), daily logging of system and process
activity for long-term analysis, highlighting overloaded system
resources by using colors, etc. At regular intervals, it shows
system-level activity related to the CPU, memory, swap, disks,
and network layers, and for every active process it shows the
CPU utilization, the memory growth, priority, username, state,
and exit code. (http://www.atcomputing.nl/Tools/atop)

It goes much further than the standard 'top' tools of procps.

Signed-off-by: Remy Bohmer <[EMAIL PROTECTED]>
---
 patches/atop-1.23/generic/fix-cross-compile.patch |   32 +++++
 patches/atop-1.23/generic/series                  |    1 
 rules/Kconfig                                     |    1 
 rules/atop.in                                     |   17 +++
 rules/atop.make                                   |  121 ++++++++++++++++++++++
 5 files changed, 172 insertions(+)

Index: ptxdist-trunk/rules/atop.in
===================================================================
--- /dev/null   1970-01-01 00:00:00.000000000 +0000
+++ ptxdist-trunk/rules/atop.in 2008-08-06 00:15:27.000000000 +0200
@@ -0,0 +1,17 @@
+config ATOP
+       bool "Atop                "
+       select ZLIB
+       select NCURSES
+       help
+         Atop is an ASCII full-screen performance monitor that is capable of
+         reporting the activity of all processes (even if processes have
+         finished during the interval), daily logging of system and process
+         activity for long-term analysis, highlighting overloaded system
+         resources by using colors, etc. At regular intervals, it shows
+         system-level activity related to the CPU, memory, swap, disks,
+         and network layers, and for every active process it shows the
+         CPU utilization, the memory growth, priority, username, state,
+         and exit code.
+
+         http://www.atcomputing.nl/Tools/atop
+
Index: ptxdist-trunk/rules/atop.make
===================================================================
--- /dev/null   1970-01-01 00:00:00.000000000 +0000
+++ ptxdist-trunk/rules/atop.make       2008-08-06 00:15:27.000000000 +0200
@@ -0,0 +1,121 @@
+# -*-makefile-*-
+# $Id: atop.make 6158 2006-10-16 14:26:15Z rsc $
+#
+# Copyright (C) 2008 by Remy Bohmer, Netherlands
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_ATOP) += atop
+
+#
+# Paths and names
+#
+ATOP_VERSION           = 1.23
+ATOP                   = atop-$(ATOP_VERSION)
+ATOP_URL               = 
http://www.atcomputing.nl/Tools/atop/packages/$(ATOP).tar.gz
+ATOP_SOURCE            = $(SRCDIR)/$(ATOP).tar.gz
+ATOP_DIR               = $(BUILDDIR)/$(ATOP)
+
+
+# ----------------------------------------------------------------------------
+# Get
+# ----------------------------------------------------------------------------
+
+atop_get: $(STATEDIR)/atop.get
+
+$(STATEDIR)/atop.get: $(atop_get_deps_default)
+       @$(call targetinfo, $@)
+       @$(call touch, $@)
+
+$(ATOP_SOURCE):
+       @$(call targetinfo, $@)
+       @$(call get, ATOP)
+
+# ----------------------------------------------------------------------------
+# Extract
+# ----------------------------------------------------------------------------
+
+atop_extract: $(STATEDIR)/atop.extract
+
+$(STATEDIR)/atop.extract: $(atop_extract_deps_default)
+       @$(call targetinfo, $@)
+       @$(call clean $(ATOP_DIR))
+       @$(call extract, ATOP)
+       @$(call patchin, ATOP)
+       @$(call touch, $@)
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+atop_prepare: $(STATEDIR)/atop.prepare
+
+ATOP_PATH       := PATH=$(CROSS_PATH)
+ATOP_ENV        := $(CROSS_ENV) CROSS_COMPILE=$(COMPILER_PREFIX)
+
+$(STATEDIR)/atop.prepare: $(atop_prepare_deps_default)
+       @$(call targetinfo, $@)
+       @$(call touch, $@)
+
+# ----------------------------------------------------------------------------
+# Compile
+# ----------------------------------------------------------------------------
+
+atop_compile: $(STATEDIR)/atop.compile
+
+ATOP_MAKEVARS    += CROSS_COMPILE=$(COMPILER_PREFIX) \
+                   EXTRA_CFLAGS='$(call remove_quotes,$(TARGET_CFLAGS)) 
-I$(ZLIB_DIR) -I$(NCURSES_DIR)/include' \
+                   EXTRA_LDFLAGS='$(call remove_quotes,$(TARGET_LDFLAGS))'
+
+$(STATEDIR)/atop.compile: $(atop_compile_deps_default)
+       @$(call targetinfo, $@)
+       cd $(ATOP_DIR) && $(ATOP_PATH) make $(ATOP_MAKEVARS)
+       @$(call touch, $@)
+
+# ----------------------------------------------------------------------------
+# Install
+# ----------------------------------------------------------------------------
+
+atop_install: $(STATEDIR)/atop.install
+
+$(STATEDIR)/atop.install: $(atop_install_deps_default)
+       @$(call targetinfo, $@)
+       @$(call touch, $@)
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+atop_targetinstall: $(STATEDIR)/atop.targetinstall
+
+$(STATEDIR)/atop.targetinstall: $(atop_targetinstall_deps_default)
+       @$(call targetinfo, $@)
+
+       @$(call install_init, atop)
+       @$(call install_fixup, atop,PACKAGE,atop)
+       @$(call install_fixup, atop,PRIORITY,optional)
+       @$(call install_fixup, atop,VERSION,$(ATOP_VERSION))
+       @$(call install_fixup, atop,SECTION,base)
+       @$(call install_fixup, atop,AUTHOR,"Remy Bohmer <[EMAIL PROTECTED]>")
+       @$(call install_fixup, atop,DEPENDS,)
+       @$(call install_fixup, atop,DESCRIPTION,missing)
+
+       @$(call install_copy, atop, 0, 0, 0755, $(ATOP_DIR)/atop, /bin/atop)
+
+       @$(call install_finish, atop)
+
+       @$(call touch, $@)
+
+# ----------------------------------------------------------------------------
+# Clean
+# ----------------------------------------------------------------------------
+
+atop_clean:
+       rm -rf $(STATEDIR)/atop.*
+       rm -rf $(IMAGEDIR)/atop_*
+       rm -fr $(STATEDIR)/atop-patches.get
+       rm -fr $(ATOP_DIR)
+
+# vim: syntax=make
Index: ptxdist-trunk/rules/Kconfig
===================================================================
--- ptxdist-trunk.orig/rules/Kconfig    2008-08-06 00:15:25.000000000 +0200
+++ ptxdist-trunk/rules/Kconfig 2008-08-06 00:15:27.000000000 +0200
@@ -77,6 +77,7 @@ source "rules/pcmciautils.in"
 source "rules/pdksh.in"
 source "rules/pnputils.in"
 source "rules/procps.in"
+source "rules/atop.in"
 source "rules/schedutils.in"
 source "rules/screen.in"
 source "rules/sed.in"
Index: ptxdist-trunk/patches/atop-1.23/generic/fix-cross-compile.patch
===================================================================
--- /dev/null   1970-01-01 00:00:00.000000000 +0000
+++ ptxdist-trunk/patches/atop-1.23/generic/fix-cross-compile.patch     
2008-08-06 00:15:27.000000000 +0200
@@ -0,0 +1,32 @@
+Adapt the atop makefile such that it is capable of cross compilation.
+
+Signed-off-by: Remy Bohmer <[EMAIL PROTECTED]>
+---
+ Makefile |    7 ++++---
+ 1 file changed, 4 insertions(+), 3 deletions(-)
+
+Index: atop-1.23/Makefile
+===================================================================
+--- atop-1.23.orig/Makefile    2008-03-06 11:15:47.000000000 +0100
++++ atop-1.23/Makefile 2008-08-06 00:08:21.000000000 +0200
+@@ -13,8 +13,9 @@ INIPATH = /etc/rc.d/init.d
+ CRNPATH = /etc/cron.d
+ ROTPATH = /etc/logrotate.d
+
+-CFLAGS  = -O -I. -Wall         # -DHTTPSTATS
+-LDFLAGS = -lncurses -lm -lz
++CC      = $(CROSS_COMPILE)gcc
++CFLAGS  = $(EXTRA_CFLAGS) -O -I. -Wall
++LDFLAGS = $(EXTRA_LDFLAGS) -lncurses -lm -lz
+ OBJMOD0 = version.o
+ OBJMOD1 = various.o  deviate.o   procdbase.o
+ OBJMOD2 = acctproc.o photoproc.o photosyst.o  rawlog.o ifprop.o parseable.o
+@@ -25,7 +26,7 @@ ALLMODS = $(OBJMOD0) $(OBJMOD1) $(OBJMOD
+ all:          atop
+
+ atop:         atop.o    $(ALLMODS) Makefile
+-              cc atop.o $(ALLMODS) -o atop $(LDFLAGS)
++              $(CC) atop.o $(ALLMODS) -o atop $(LDFLAGS)
+
+ clean:
+               rm -f *.o
Index: ptxdist-trunk/patches/atop-1.23/generic/series
===================================================================
--- /dev/null   1970-01-01 00:00:00.000000000 +0000
+++ ptxdist-trunk/patches/atop-1.23/generic/series      2008-08-06 
00:15:27.000000000 +0200
@@ -0,0 +1 @@
+fix-cross-compile.patch

-- 


--
ptxdist mailing list
[email protected]

Reply via email to