From patchwork Thu Jan 11 14:00:11 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: 124228 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp716987qgn; Thu, 11 Jan 2018 06:00:38 -0800 (PST) X-Google-Smtp-Source: ACJfBou4CQDr+8u/ZocqFBpj71JqU8Lp4yybz0ZVGnoMk3i4rzfw1RoxKG/C0uPFsUQWto4/ex5k X-Received: by 10.200.50.77 with SMTP id y13mr8334472qta.167.1515679236156; Thu, 11 Jan 2018 06:00:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1515679236; cv=none; d=google.com; s=arc-20160816; b=nsH+H66cvsuy4gs/xr1I5tU5gJdSimz5IzBYF52VTg/Cn59RFIRdNApJzAUkEXAZGK n2u5nSzmU5PFak2115as8t5Gkm4CmcCkVcWUBUFtKfmqfzBHRPv2ejGG9s8Ewx7OVptd DOZjROLG9g3as6zjbVCmLrpnw5GtpF07k72QdyUCF7rA718jnwEYfI5eTUn1lHlsOuc8 RzaoT53eUAOMYN0qBCh+o0weLaS08PdNxep1sNgPNgl9ApQLFpLdaFerK6lb98ccm8UI HktuvHdGlTVLLq0z2DnNnO5PmGp7HUc8M6bOfbwe1wA7DMSeeamirCJ/FPcrQ+uxgclO wzDA== 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=qM+i+fpc0Znu5oU79vX500zlpuNZK/1UrgTb4sMIkv4=; b=XGuvL263Ir+ISASuwjL4+37gen99PHUwoEyTKzn3Cn4X/LVYGheCwDIF8ijZ1m1DTx mwBifxLysIEHETJ9dxQGIfIJ9+cJcsan4zlCR6nw+FiN1l36ejN1p7KMwV6do6kzPh+W lviop5DMmAnM8iEeL+HDLHxE0FFKh6rp8uqR15umHSyt0ptKyZUPg7GR4pZ1m4ZdP8FS AsBbxnLl+pwzSVt7aWkAMEaToPTYedV9d5dyVCy79TRwqUyn1K2pUoJgAEbfktAUjPWn 3ec63KGNH2AFbl4v4+yN+27AnVS3idMKfQv0pRZFKFXyJchsvAC/INw6my9ejqsSSv1k UJOQ== 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 q66si6615603qkd.467.2018.01.11.06.00.35; Thu, 11 Jan 2018 06:00:36 -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 4EA3561516; Thu, 11 Jan 2018 14:00:35 +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 2CC50608A9; Thu, 11 Jan 2018 14:00:32 +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 049FE61516; Thu, 11 Jan 2018 14:00:23 +0000 (UTC) Received: from forward105o.mail.yandex.net (forward105o.mail.yandex.net [37.140.190.183]) by lists.linaro.org (Postfix) with ESMTPS id F1DA2608A9 for ; Thu, 11 Jan 2018 14:00:17 +0000 (UTC) Received: from mxback5g.mail.yandex.net (mxback5g.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:166]) by forward105o.mail.yandex.net (Yandex) with ESMTP id 967C3444231C for ; Thu, 11 Jan 2018 17:00:15 +0300 (MSK) Received: from smtp4o.mail.yandex.net (smtp4o.mail.yandex.net [2a02:6b8:0:1a2d::28]) by mxback5g.mail.yandex.net (nwsmtp/Yandex) with ESMTP id I0kHW8sP6w-0FM8dnpd; Thu, 11 Jan 2018 17:00:15 +0300 Received: by smtp4o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id iyrKiIBDmS-0EiWn3Ds; Thu, 11 Jan 2018 17:00:14 +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: Thu, 11 Jan 2018 17:00:11 +0300 Message-Id: <1515679213-11475-2-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1515679213-11475-1-git-send-email-odpbot@yandex.ru> References: <1515679213-11475-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 381 Subject: [lng-odp] [PATCH CATERPILLAR v2 1/3] example: add papi path 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 Signed-off-by: Bogdan Pricope --- /** Email created from pull request 381 (bogdanPricope:cat_benchmark_poc) ** https://github.com/Linaro/odp/pull/381 ** Patch: https://github.com/Linaro/odp/pull/381.patch ** Base sha: 4d17f8ae64aba0e6f24877be30f86ae5880cef7e ** Merge commit sha: 216f49ff5f53b9f0e34c7e88da139570b8c0ea6f **/ example/m4/configure.m4 | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/example/m4/configure.m4 b/example/m4/configure.m4 index 208c5d6d7..034415903 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 ]) +PAPI_PATH="" +code_instrumentation=no +AC_ARG_WITH([papi-path], +AS_HELP_STRING([--with-papi-path=DIR path to papi install directory]), + [PAPI_PATH="$withval" + code_instrumentation=yes],[]) + +AC_SUBST([PAPI_PATH]) +AM_CONDITIONAL([CODE_INSTRUM], [test x$code_instrumentation = xyes ]) + AC_CONFIG_FILES([example/classifier/Makefile example/generator/Makefile example/hello/Makefile