From patchwork Fri Jan 19 08:00:09 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: 125103 Delivered-To: patch@linaro.org Received: by 10.46.66.141 with SMTP id h13csp180857ljf; Fri, 19 Jan 2018 00:02:50 -0800 (PST) X-Google-Smtp-Source: ACJfBosq174WjnFug9z6SoYnoaCHNrcgwQ8uqheWYgdroq/KZOzzyyuE+uYj155Ee3HB5yRwBc89 X-Received: by 10.200.41.6 with SMTP id y6mr64899259qty.219.1516348970157; Fri, 19 Jan 2018 00:02:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516348970; cv=none; d=google.com; s=arc-20160816; b=M1QsXRuM2VAr8PpFEdvmXGvDxDOE+ORRiQsCZevBEL2qvl5ewt7IUKGmzspgTO5Ehv GwYOxGyU0ApIprNdKWVwxSh7eZqlt+tT8uPs6d0CvKznDrYUpUQYxMizXzwKFuYu1NoQ iXtzcYSwiG1xg6tQc3Ok/HHjLSem4yURV0UT35RddPfkCQ7bfSUEZyz69qVbP/s8HjSD iqFsE4F+0Dvq1n5mErAHZ3EDMZEfollbTxiuXgU94GDU4qn1h/pWlQeY+cfTCjCRmA0y EGlutvmmYPhu7gkkHi10k2F1Cs8hOBuBrl7b3RIEdlPestqicm0w3m2yXSJlRQXYyS7q G2fA== 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=pWbH0J6CkegLeiyGeq538J5km0iBGxSs/ijIGvicyWw=; b=U/9v8PvhZReoXOF2OH9mvrWx6d/S4cFxoxrsAqHdywOXtmHOn/6SlCdx7SVOt6R/Mo FlOlp+jxsryAbi6iB3vp1WyvcK4hzdlx30qFNxGTOH+aOhLK8TxWXEMSRRdDO18xRmZL PsNCg5NUX+M1MKV/5lkmHP6Ati+BZpTu7l6DSQcZjfR6+lkEd+DuwPHIH9cb+KiCrGf+ HkKHwRbI4t8P2RwQD1SViaJ2MEg2LbXkPtSvn9vCwQdxzy5swgAIsG+gL/GKdemJylfo qtQXRAPs7vQVKKmp3VUeDun1Opg6SRVofbI1bBQsoO7LXmh7WYpsZ1bxXcD+Oo5fPd3V BQJA== 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 m1si8872977qkc.406.2018.01.19.00.02.49; Fri, 19 Jan 2018 00:02:50 -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 C5E3B62823; Fri, 19 Jan 2018 08:02:49 +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 3C7FF62814; Fri, 19 Jan 2018 08:00:39 +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 8E0776174E; Fri, 19 Jan 2018 08:00:34 +0000 (UTC) Received: from forward105o.mail.yandex.net (forward105o.mail.yandex.net [37.140.190.183]) by lists.linaro.org (Postfix) with ESMTPS id AB9406174E for ; Fri, 19 Jan 2018 08:00:16 +0000 (UTC) Received: from mxback5o.mail.yandex.net (mxback5o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::1f]) by forward105o.mail.yandex.net (Yandex) with ESMTP id 7422A4443123 for ; Fri, 19 Jan 2018 11:00:14 +0300 (MSK) Received: from smtp4j.mail.yandex.net (smtp4j.mail.yandex.net [2a02:6b8:0:1619::15:6]) by mxback5o.mail.yandex.net (nwsmtp/Yandex) with ESMTP id Bryc6qW9IA-0EBOQVvv; Fri, 19 Jan 2018 11:00:14 +0300 Received: by smtp4j.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id DUUW7ACKYu-0DeqvhCE; Fri, 19 Jan 2018 11:00:13 +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: Fri, 19 Jan 2018 11:00:09 +0300 Message-Id: <1516348813-27607-2-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1516348813-27607-1-git-send-email-odpbot@yandex.ru> References: <1516348813-27607-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 406 Subject: [lng-odp] [PATCH CATERPILLAR v1 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 406 (bogdanPricope:cat_benchmark_pr) ** https://github.com/Linaro/odp/pull/406 ** Patch: https://github.com/Linaro/odp/pull/406.patch ** Base sha: 8f1b3e72d5aa42a336978445a5011758f8044622 ** Merge commit sha: 96735e5c4a87252edc58ccf09fc6398dacaca021 **/ 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