From: jacmet at uclibc.org <jacmet@uclibc.org>
To: buildroot@busybox.net
Subject: [Buildroot] svn commit: trunk/buildroot/package: memstat
Date: Tue, 21 Oct 2008 05:38:31 -0700 (PDT) [thread overview]
Message-ID: <20081021123831.C985A3C731@busybox.net> (raw)
Author: jacmet
Date: 2008-10-21 05:38:31 -0700 (Tue, 21 Oct 2008)
New Revision: 23753
Log:
package/memstat: add memstat package
Memstat lists all the processes, executables, and shared
libraries that are using up virtual memory. It's helpful to
see how the shared memory is used and which 'old' libs are
loaded.
Added:
trunk/buildroot/package/memstat/
trunk/buildroot/package/memstat/Config.in
trunk/buildroot/package/memstat/memstat.mk
Modified:
trunk/buildroot/package/Config.in
Changeset:
Modified: trunk/buildroot/package/Config.in
===================================================================
--- trunk/buildroot/package/Config.in 2008-10-21 12:36:43 UTC (rev 23752)
+++ trunk/buildroot/package/Config.in 2008-10-21 12:38:31 UTC (rev 23753)
@@ -94,6 +94,7 @@
source "package/ltp-testsuite/Config.in"
source "package/ltrace/Config.in"
source "package/ltt/Config.in"
+source "package/memstat/Config.in"
if !BR2_PACKAGE_BUSYBOX_HIDE_OTHERS
source "package/module-init-tools/Config.in"
source "package/modutils/Config.in"
Added: trunk/buildroot/package/memstat/Config.in
===================================================================
--- trunk/buildroot/package/memstat/Config.in (rev 0)
+++ trunk/buildroot/package/memstat/Config.in 2008-10-21 12:38:31 UTC (rev 23753)
@@ -0,0 +1,7 @@
+config BR2_PACKAGE_MEMSTAT
+ bool "memstat"
+ help
+ Memstat lists all the processes, executables, and shared
+ libraries that are using up virtual memory. It's helpful to
+ see how the shared memory is used and which 'old' libs are
+ loaded.
Added: trunk/buildroot/package/memstat/memstat.mk
===================================================================
--- trunk/buildroot/package/memstat/memstat.mk (rev 0)
+++ trunk/buildroot/package/memstat/memstat.mk 2008-10-21 12:38:31 UTC (rev 23753)
@@ -0,0 +1,49 @@
+#############################################################
+#
+# memstat
+#
+#############################################################
+
+MEMSTAT_VERSION:=0.5
+MEMSTAT_SOURCE:=memstat_$(MEMSTAT_VERSION).tar.gz
+MEMSTAT_SITE:=$(BR2_DEBIAN_MIRROR)/debian/pool/main/m/memstat
+MEMSTAT_DIR:=$(BUILD_DIR)/memstat-$(MEMSTAT_VERSION)
+
+$(DL_DIR)/$(MEMSTAT_SOURCE):
+ $(WGET) -P $(DL_DIR) $(MEMSTAT_SITE)/$(MEMSTAT_SOURCE)
+
+$(MEMSTAT_DIR)/.unpacked: $(DL_DIR)/$(MEMSTAT_SOURCE)
+ $(ZCAT) $(DL_DIR)/$(MEMSTAT_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
+ toolchain/patch-kernel.sh $(MEMSTAT_DIR) package/memstat/ memstat-$(MEMSTAT_VERSION)\*.patch
+ touch $@
+
+$(MEMSTAT_DIR)/.configured: $(MEMSTAT_DIR)/.unpacked
+ touch $@
+
+$(MEMSTAT_DIR)/memstat: $(MEMSTAT_DIR)/.configured
+ $(TARGET_CC) $(TARGET_CFLAGS) $(TARGET_LDFLAGS) $(@D)/memstat.c -o $@
+
+$(TARGET_DIR)/usr/bin/memstat: $(MEMSTAT_DIR)/memstat
+ [ -e $(TARGET_DIR)/etc/memstat.conf ] || \
+ $(INSTALL) -m 0644 -D $(^D)/memstat.conf $(TARGET_DIR)/etc
+ $(INSTALL) -m 0755 -D $^ $@
+ $(STRIPCMD) $(STRIP_STRIP_ALL) $@
+
+memstat: uclibc $(TARGET_DIR)/usr/bin/memstat
+
+memstat-source: $(DL_DIR)/$(MEMSTAT_SOURCE)
+
+memstat-clean:
+ rm -f $(MEMSTAT_DIR)/memstat \
+ $(TARGET_DIR)/etc/memstat.conf $(TARGET_DIR)/usr/bin/memstat
+
+memstat-dirclean:
+ rm -rf $(MEMSTAT_DIR)
+#############################################################
+#
+# Toplevel Makefile options
+#
+#############################################################
+ifeq ($(strip $(BR2_PACKAGE_MEMSTAT)),y)
+TARGETS+=memstat
+endif
reply other threads:[~2008-10-21 12:38 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20081021123831.C985A3C731@busybox.net \
--to=jacmet@uclibc.org \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox