From patchwork Mon Feb 5 14:00:22 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Github ODP bot X-Patchwork-Id: 126895 Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp2003174ljc; Mon, 5 Feb 2018 06:08:56 -0800 (PST) X-Google-Smtp-Source: AH8x224f+mrcln+K+QzXcwOWKRlZDCNEbVQRChZOE1GJ6Ug6XD1YhnKhlQOm88GnKPKIctnRKuJP X-Received: by 10.55.140.130 with SMTP id o124mr69541530qkd.120.1517839736613; Mon, 05 Feb 2018 06:08:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517839736; cv=none; d=google.com; s=arc-20160816; b=tEcRDARkYjpgkBptCW6Bsjy05vOfAd4uKntsRaYzEDgIFh4/sGuY1Q5sD7QtuW7Q9X rS7x+jgLWlEMfBNwv/SxqafSCVU1YWSeZHddw9ZAtSwExDOh+9b8do1Xc01O/i8bDnuI MtVniHEepjE3NTNBwAcXFxqrJ8VHSlhc94wxlNvOh4PpMwjxpBzOJCsLoGy82TivHzqH 3OMN5UaiY5gaIxf3+m3+a685NGVMajJfC/MTXPOzCb36JnqCCry3ITD2aZP5Y6+yhV++ b3ce80NApHF3VRrx1rpX4A/CjMNdnBrSeR2uELCVgBxrbrAV74DZ0ajaBYecfxFhJeaP ObpA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:github-pr-num :references:in-reply-to:message-id:date:to:from:delivered-to :arc-authentication-results; bh=/ntaEfTC3F7eOaOu4pD2Bnrdo0I4oWwTI1gf0Qd8axM=; b=Pqi55/xqzftS98rVvJJpZRZS5+Fq4Exoreww0DfmaryDsDhCtvu+fYx5SFYVLiWKqA spv2ieVqeMX3ln52daPSiIREgKNUhmoEIk+slbMBtaFzhryUBBLrrALVWqHH3xZ6v3JN pM25plsUS0m8PyhlVNMwnpF8hvnDSKcYYr4IytuwSs9Y9u3K2fwKAWx7gClciPMNXin2 Lik7rio8QHpFrtHenq44iseyRovmlt+CP5ZNUP6C3jS3Z7+RbY3UWuOBDiVCoiu9Fesi +uqwlMPFGaOR/Y5xIBMa9F4g/5nG8odSEHhDGpdF70s1jSRabZLie6rEKtOAgufCdC2Z z84g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Return-Path: Received: from lists.linaro.org (ec2-54-197-127-237.compute-1.amazonaws.com. [54.197.127.237]) by mx.google.com with ESMTP id k16si1258609qtf.130.2018.02.05.06.08.56; Mon, 05 Feb 2018 06:08:56 -0800 (PST) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) client-ip=54.197.127.237; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Received: by lists.linaro.org (Postfix, from userid 109) id 3953061833; Mon, 5 Feb 2018 14:08:56 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2 autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id E2C4D617FF; Mon, 5 Feb 2018 14:02:45 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 2AA7D61787; Mon, 5 Feb 2018 14:01:55 +0000 (UTC) Received: from forward102p.mail.yandex.net (forward102p.mail.yandex.net [77.88.28.102]) by lists.linaro.org (Postfix) with ESMTPS id 5281361762 for ; Mon, 5 Feb 2018 14:00:38 +0000 (UTC) Received: from mxback7o.mail.yandex.net (mxback7o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::21]) by forward102p.mail.yandex.net (Yandex) with ESMTP id 8890A4301EF5 for ; Mon, 5 Feb 2018 17:00:31 +0300 (MSK) Received: from smtp4o.mail.yandex.net (smtp4o.mail.yandex.net [2a02:6b8:0:1a2d::28]) by mxback7o.mail.yandex.net (nwsmtp/Yandex) with ESMTP id tpD0chqSTa-0VcuOoZ1; Mon, 05 Feb 2018 17:00:31 +0300 Received: by smtp4o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id saDyFPvH8X-0U2OeVua; Mon, 05 Feb 2018 17:00:30 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (Client certificate not present) From: Github ODP bot To: lng-odp@lists.linaro.org Date: Mon, 5 Feb 2018 17:00:22 +0300 Message-Id: <1517839228-10374-2-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1517839228-10374-1-git-send-email-odpbot@yandex.ru> References: <1517839228-10374-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 443 Subject: [lng-odp] [PATCH v2 1/7] example: add basic papi configuration option X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "The OpenDataPlane \(ODP\) List" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" From: Bogdan Pricope Add configuration options to enable code instrumentation. Signed-off-by: Bogdan Pricope --- /** Email created from pull request 443 (bogdanPricope:master_benchmark_pr) ** https://github.com/Linaro/odp/pull/443 ** Patch: https://github.com/Linaro/odp/pull/443.patch ** Base sha: 27a7923236030fed0272cc9072f0cde62496e91d ** Merge commit sha: b70681310d12862313cc0487e0c97b589c76e412 **/ configure.ac | 1 + example/m4/configure.m4 | 10 ++++++++++ 2 files changed, 11 insertions(+) diff --git a/configure.ac b/configure.ac index 7b90b2127..6e9edc372 100644 --- a/configure.ac +++ b/configure.ac @@ -410,4 +410,5 @@ AC_MSG_RESULT([ test_helper: ${test_helper} test_example: ${test_example} user_guides: ${user_guides} + code instrumentation: ${code_instrumentation} ]) diff --git a/example/m4/configure.m4 b/example/m4/configure.m4 index 1ce0cb11d..2fcf596ca 100644 --- a/example/m4/configure.m4 +++ b/example/m4/configure.m4 @@ -7,6 +7,16 @@ AC_ARG_ENABLE([test-example], [test_example=yes]) AM_CONDITIONAL([test_example], [test x$test_example = xyes ]) +code_instrumentation=no +AC_ARG_ENABLE([code-instrum], + [AS_HELP_STRING([--enable-code-instrum], [enable code instrumentation support])], + [if test x$enableval = xyes; then + code_instrumentation=yes + PKG_CHECK_MODULES([PAPI], [papi-5]) + fi]) + +AM_CONDITIONAL([CODE_INSTRUM], [test x$code_instrumentation = xyes ]) + AC_CONFIG_FILES([example/classifier/Makefile example/generator/Makefile example/hello/Makefile