From patchwork Thu Jan 18 14:01:12 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: 124966 Delivered-To: patch@linaro.org Received: by 10.46.64.27 with SMTP id n27csp140373lja; Thu, 18 Jan 2018 06:06:53 -0800 (PST) X-Google-Smtp-Source: ACJfBos4ZV3MM92qxqrdM0XWn21evmPNY+POD1YE0S5kid4yT8SeKwOfoEIYyGK2BmP8V9IUUgH/ X-Received: by 10.55.53.205 with SMTP id c196mr52375828qka.311.1516284413697; Thu, 18 Jan 2018 06:06:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516284413; cv=none; d=google.com; s=arc-20160816; b=Aqyy0E3QD/pNAB/kBrQCvIki/hRrVln0VRmnzLIlTlj4vwniuNPPb36JfDtbBiRuG0 tWFpaOVbORYG6M44KxAZb5RmiPGtsEKJvvdmdoejiUNf/BcbngpZUscKcQ6DEKvsm6nu j02FC62jPdnRe312i1sGRWdUkMxmhDiLOLLEscDvK+5QDMuJLx2U2iG8iPe6eCCAu3cI Plzukiihsaqsel7rv3JMRg6VUQ6QdjYJesEGd9RZzhg186PpxbpVQUDJjCBwG8Kshc6A madU4NX6icHnYbO+g2Lfxbs4vFD0wDET8shr/1tZJ6AtPgomjKNjHHzoAK1GaZK2hr/B i1VA== 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=TbFxh7K6qRqg5c6uE0kjTWrUt4JzzpsWzxJccv+nqrs=; b=C74dXT/Vf4LFsNfI3BeQNYVlCU2mta6HkDwYMn6wPXCF3mx1OxFiywQvSx9Lz3Bk8T tNG8COk8+U8BM0NP6Y3Ifc3GIGI/eN9Vkr2ZmgtTKt3jz1QPjwazX8+YUNzbz/8L8xHb dRTZLA3RypqCIQoxM9sctfoDQ81XUcx7+GpEzrs/KEiaduXYJkjL1z/OEi++T0Z8gH0E BD1JHl7oxp7ZYAfDgehrBu6gwmqVWM3UFq+B0MTqXxy9t1trIFJ3PIggOKbLpu7eLd7t EDUoVsKmX5Wu64i/b5QtPekS/43Q+cHnyMyjX1FeAeO1GJxIo7YefmU0KK/usM1kWOw3 3R9A== 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 a85si1198861qkb.116.2018.01.18.06.06.53; Thu, 18 Jan 2018 06:06:53 -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 2C5F0627F8; Thu, 18 Jan 2018 14:06:53 +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 94CAC6280D; Thu, 18 Jan 2018 14:03:22 +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 C8628627F1; Thu, 18 Jan 2018 14:03:09 +0000 (UTC) Received: from forward103p.mail.yandex.net (forward103p.mail.yandex.net [77.88.28.106]) by lists.linaro.org (Postfix) with ESMTPS id D879762802 for ; Thu, 18 Jan 2018 14:01:19 +0000 (UTC) Received: from mxback17j.mail.yandex.net (mxback17j.mail.yandex.net [IPv6:2a02:6b8:0:1619::93]) by forward103p.mail.yandex.net (Yandex) with ESMTP id 46CD82183CB8 for ; Thu, 18 Jan 2018 17:01:18 +0300 (MSK) Received: from smtp4o.mail.yandex.net (smtp4o.mail.yandex.net [2a02:6b8:0:1a2d::28]) by mxback17j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id KmATEpSnMz-1IeSXOH1; Thu, 18 Jan 2018 17:01:18 +0300 Received: by smtp4o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id sNY3tHYRi1-1HhesD3c; Thu, 18 Jan 2018 17:01:17 +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, 18 Jan 2018 17:01:12 +0300 Message-Id: <1516284076-2857-2-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1516284076-2857-1-git-send-email-odpbot@yandex.ru> References: <1516284076-2857-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 381 Subject: [lng-odp] [PATCH CATERPILLAR v4 1/5] 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: c651bdf2f6e197eb49c2aecff6f64a247db2b982 **/ 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