From patchwork Mon Mar 16 09:43:34 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Angelo Compagnucci X-Patchwork-Id: 450442 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from silver.osuosl.org (silver.osuosl.org [140.211.166.136]) by ozlabs.org (Postfix) with ESMTP id 0E2B514009B for ; Mon, 16 Mar 2015 20:43:52 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="verification failed; unprotected key" header.d=gmail.com header.i=@gmail.com header.b=tM34S6LP; dkim-adsp=none (unprotected policy); dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 26DF33358B; Mon, 16 Mar 2015 09:43:51 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id VJPgLxGkevFi; Mon, 16 Mar 2015 09:43:49 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 239D132E4B; Mon, 16 Mar 2015 09:43:49 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id D0ABC1C2632 for ; Mon, 16 Mar 2015 09:43:46 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id CCAF28B083 for ; Mon, 16 Mar 2015 09:43:46 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id no66FpmC-wSR for ; Mon, 16 Mar 2015 09:43:45 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wg0-f54.google.com (mail-wg0-f54.google.com [74.125.82.54]) by whitealder.osuosl.org (Postfix) with ESMTPS id 9DC748B0AF for ; Mon, 16 Mar 2015 09:43:45 +0000 (UTC) Received: by wgra20 with SMTP id a20so34832689wgr.3 for ; Mon, 16 Mar 2015 02:43:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=fNi8n79hoUhiXUzvQCX3yNj0fC8RYMOMnCq7XGhskx0=; b=tM34S6LPHw9IMnHk2ivHjJfOLR2k1mKyryH6YzgjDQBsI0gJHmttTttbYlnthh/aAf HvBlM6G2JWXG4x724648RdkSm2v1svzajC5x4CSO8Mz/+2jraMT+pt24nM/Q6thivnQb f4R2XAuFu+B1l1ccNnDXmD++WDdR5+rFeyFwAXlOZs0B+fSAwaMuftE4T50JS+Y7pyOx 5flDFD4PDtoBFIoQbTs8xb8o5IYxRmoplIvSbHAHUe+0h/v6+AnX2wn86vnN7FkNQDSY EpCQHN163wS0XVfSF9qWxPKKFIvMPAOjHLXvQ4BwIHN5AVE61J2GYzjUpX1ySJ++kRgF +Qlw== X-Received: by 10.194.61.244 with SMTP id t20mr115987658wjr.83.1426499024247; Mon, 16 Mar 2015 02:43:44 -0700 (PDT) Received: from localhost.localdomain ([89.202.204.100]) by mx.google.com with ESMTPSA id w4sm14518707wib.19.2015.03.16.02.43.42 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 16 Mar 2015 02:43:43 -0700 (PDT) From: Angelo Compagnucci To: buildroot@buildroot.net Date: Mon, 16 Mar 2015 10:43:34 +0100 Message-Id: <1426499014-15851-1-git-send-email-angelo.compagnucci@gmail.com> X-Mailer: git-send-email 1.9.1 Subject: [Buildroot] [PATCH] package/sysdig: New package X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Sysdig is open source, system-level exploration: capture system state and activity from a running Linux instance, then save, filter and analyze. Signed-off-by: Angelo Compagnucci --- package/Config.in | 1 + package/sysdig/Config.in | 14 ++++++++++++++ package/sysdig/sysdig.mk | 22 ++++++++++++++++++++++ 3 files changed, 37 insertions(+) create mode 100644 package/sysdig/Config.in create mode 100644 package/sysdig/sysdig.mk diff --git a/package/Config.in b/package/Config.in index e221deb..019d40b 100644 --- a/package/Config.in +++ b/package/Config.in @@ -94,6 +94,7 @@ endif source "package/strace/Config.in" source "package/stress/Config.in" source "package/sysprof/Config.in" + source "package/sysdig/Config.in" source "package/tinymembench/Config.in" source "package/trace-cmd/Config.in" source "package/trinity/Config.in" diff --git a/package/sysdig/Config.in b/package/sysdig/Config.in new file mode 100644 index 0000000..ff873a8 --- /dev/null +++ b/package/sysdig/Config.in @@ -0,0 +1,14 @@ +config BR2_PACKAGE_SYSDIG + bool "sysdig" + depends on BR2_PACKAGE_ZLIB + depends on BR2_PACKAGE_LUAJIT + depends on BR2_PACKAGE_LIBJSON + depends on BR2_LINUX_KERNEL + help + Sysdig is open source, system-level exploration: + capture system state and activity from a running Linux instance, + then save, filter and analyze. + Think of it as strace + tcpdump + lsof + awesome sauce. + With a little Lua cherry on top. + + http://sysdig.org diff --git a/package/sysdig/sysdig.mk b/package/sysdig/sysdig.mk new file mode 100644 index 0000000..62b9344 --- /dev/null +++ b/package/sysdig/sysdig.mk @@ -0,0 +1,22 @@ +############################################################# +# +# sysdig +# +############################################################# + +SYSDIG_VERSION = 0.1.98 +SYSDIG_SITE = $(call github,draios,sysdig,$(SYSDIG_VERSION)) +SYSDIG_LICENSE = GPLv2 +SYSDIG_LICENSE_FILES = COPYING +SYSDIG_CONF_OPTS = -DUSE_BUNDLED_LUAJIT=OFF -DUSE_BUNDLED_ZLIB=OFF +SYSDIG_DEPENDENCIES += zlib luajit libjson linux +SYSDIG_SUPPORTS_IN_SOURCE_BUILD = NO + +define SYSDIG_INSTALL_DRIVER + $(MAKE) $(LINUX_MAKE_FLAGS) -C $(LINUX_DIR) M=$(@D)/driver modules + $(MAKE) $(LINUX_MAKE_FLAGS) -C $(LINUX_DIR) M=$(@D)/driver modules_install +endef + +SYSDIG_POST_INSTALL_TARGET_HOOKS += SYSDIG_INSTALL_DRIVER + +$(eval $(cmake-package))