From patchwork Thu Jun 9 02:04:24 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yousong Zhou X-Patchwork-Id: 632600 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3rQ7vC73SJz9sxS for ; Thu, 9 Jun 2016 12:05:59 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=AZ3EVqCD; dkim-atps=neutral Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1bApL4-0005Mc-W0; Thu, 09 Jun 2016 02:04:55 +0000 Received: from mail-pf0-x242.google.com ([2607:f8b0:400e:c00::242]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1bApL1-0005KI-Vi for lede-dev@lists.infradead.org; Thu, 09 Jun 2016 02:04:53 +0000 Received: by mail-pf0-x242.google.com with SMTP id 62so1702472pfd.3 for ; Wed, 08 Jun 2016 19:04:31 -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:in-reply-to:references; bh=6uvmJ282BJkFPvbSEbfplCfiBnnZHXLzO26bdHhj8OY=; b=AZ3EVqCDdT5AYG4nSSnP+pwXwA1aS9rb0wPIW+eATOz5Q1zz/3eaQLdI6m9nrYBC6L 0ce1Kv/I9TlzK9g92fXtjNYZeDKClMDdoCeblKBgf/rgJP5kKGTK8egdj8djPCqX8xUW fHqKmInBaUY/NboR5G4EN2dOSHqixCGz8+dzs2FrmhNwx/VUQtdST/HikwBVFJh1BFou cBpRbohxu5dqWbtJui2p7PVim7DMUOP3pcZ9D+PjhGx7k/UyJnFJ533eKs8tvzz+uEea j64mKd6habTFMKSN+aFTGReirkMpSwgAEQSkM9frawTeWVsOXvUSxqEipj4/+wxLb2BV OvQA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=6uvmJ282BJkFPvbSEbfplCfiBnnZHXLzO26bdHhj8OY=; b=muQAYj2mEOYVWUjOLJqIkz9oXrn9pxDQnVDeDN5IdqRzHSAD82iahUWyzl5sYgAIl7 eZO37S8vfKzbNnrcGg1ZSQV3f0F1Ci9afAEUGHQTqge/+cP34qEgWE766ufcRxsgskVC cpPfRfveLdJk6Y9u+ZFZUIajAphoj5IOGDAce8/+WNL4Gfmv05vdX9BIPPUR9AHt3sy6 9oEcbZTaQ0ZCLo+icCP45wsdUu2kvnOZxs90Reo0nWb4/1nhNeDQIAb//OcMSvegkBU8 9zruDaSJzX5rgggMfynMuiwfh9v1gfY8ODMlXSE2j/BEhWjKM1pAi6euBU0FchS82yAI pU6w== X-Gm-Message-State: ALyK8tIY2MuT9VS1Qjuiknh02LKygneKEqoBJLKl8ZB7QE+LD5zgbY2Zvm7IbpxudV0R8g== X-Received: by 10.98.134.196 with SMTP id x187mr1756151pfd.21.1465437871235; Wed, 08 Jun 2016 19:04:31 -0700 (PDT) Received: from titan.office.mos ([103.29.140.58]) by smtp.gmail.com with ESMTPSA id 132sm5280532pfc.52.2016.06.08.19.04.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 08 Jun 2016 19:04:30 -0700 (PDT) From: Yousong Zhou To: nbd@nbd.name Date: Thu, 9 Jun 2016 10:04:24 +0800 Message-Id: <1465437864-19567-2-git-send-email-yszhou4tech@gmail.com> X-Mailer: git-send-email 2.6.4 In-Reply-To: <1465437864-19567-1-git-send-email-yszhou4tech@gmail.com> References: <1465437864-19567-1-git-send-email-yszhou4tech@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160608_190452_046679_DCCD84EE X-CRM114-Status: UNSURE ( 8.30 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.7 (--) X-Spam-Report: SpamAssassin version 3.4.0 on bombadil.infradead.org summary: Content analysis details: (-2.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [2607:f8b0:400e:c00:0:0:0:242 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (yszhou4tech[at]gmail.com) -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid Subject: [LEDE-DEV] [PATCH 2/2] strace: add option for enabling stack trace support X-BeenThere: lede-dev@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Yousong Zhou , lede-dev@lists.infradead.org MIME-Version: 1.0 Sender: "Lede-dev" Errors-To: lede-dev-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org Signed-off-by: Yousong Zhou --- package/devel/strace/Makefile | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/package/devel/strace/Makefile b/package/devel/strace/Makefile index 8a0d2e8..df560fd 100644 --- a/package/devel/strace/Makefile +++ b/package/devel/strace/Makefile @@ -11,7 +11,7 @@ include $(INCLUDE_DIR)/kernel.mk PKG_NAME:=strace PKG_VERSION:=4.11 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_MD5SUM:=a15d2555a7febb56d00c6e1a51c655dc PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz @@ -23,6 +23,7 @@ PKG_LICENSE_FILES:=COPYRIGHT PKG_MAINTAINER:=Felix Fietkau PKG_FIXUP:=autoreconf +PKG_CONFIG_DEPENDS:=CONFIG_PACKAGE_strace_libunwind PKG_INSTALL:=1 include $(INCLUDE_DIR)/package.mk @@ -39,6 +40,7 @@ define Package/strace SECTION:=utils CATEGORY:=Utilities TITLE:=System call tracer + DEPENDS:=+PACKAGE_strace_libunwind:libunwind URL:=http://strace.sourceforge.net/ endef @@ -47,6 +49,13 @@ A useful diagnostic, instructional, and debugging tool. Allows you to track what system calls a program makes while it is running. endef +define Package/strace/config +config PACKAGE_strace_libunwind + bool "Enable stack tracing support using libunwind (experimental)" + default n +endef + +CONFIGURE_ARGS += --with-libunwind=$(if $(CONFIG_PACKAGE_strace_libunwind),yes,no) MAKE_FLAGS := \ CCOPT="$(TARGET_CFLAGS)"