From patchwork Tue Jan 16 14:00:17 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: 124712 Delivered-To: patch@linaro.org Received: by 10.46.64.148 with SMTP id r20csp1023649lje; Tue, 16 Jan 2018 06:02:44 -0800 (PST) X-Google-Smtp-Source: ACJfBotvU3iOFP1tDb3VU5JJ74N9FSZOlKQQHRRo9B6Hrblk3GxVlvLNEaMphv+P88n5ybwSMRDi X-Received: by 10.37.188.8 with SMTP id i8mr20127774ybh.404.1516111363817; Tue, 16 Jan 2018 06:02:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516111363; cv=none; d=google.com; s=arc-20160816; b=isTU/2/bQ/PpQInt3f0iQhzimfB8XEZFVOearJgsXpFmKI7zCjDT056rMg/sUlr1n1 Xq1UIUwzCM79FTd51usohJ1yHVLHjkPg4UFBVRiPOVFIidBjb9nHX5gy6N/vZxpZFpIi FR8oYuPGgzr8Lr2S3V94AMPdcwzdWBh4QJtIamMIIWn8BWh1aQBN7PJCyHvOImi6uCyC hZcJ0cuhaCOmcYcaC8tWp7ZQF5yDrwjTaB2niO6yE6W6ac+Fj2CUr+qDtL8TMIEozUW0 irH7Oln4Jrap/jP5R/trUDQsy8wwSQuiIK3MrY3SUyDABouokfg5sSaTXezqJtZg5qrD /4bA== 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=TTGQ/BwG3xyVw4AMEL3izNmC6w8PtzHTgIo6ou5jcMY=; b=a55ezexFAd7rOLEvOJyviOXRcKcTTkS4YjDNqNG4aCKPnMGxgs+US1cz4I35Xze4R4 XwSltuGJlAAb19DwBOXH03BFstDzpFJxRpgT9ShvXtqY49fyrM+wcydVPxMb/mfcLXkj u6dtejtzfgIEoidb84yeVxPmwBAsPRirJrbv+yb+OHijZAfq8lr7XU7FflrWBI+q7gaM mJ9JYvytyXWAxk47yWpcLFPUXdYFPJH6inCtVaKCg/GV0cnAGhba8e732V7wwlEBu9zM AJymwEvh2uOMfVFuazgidgqm/OCYX6HgMUcV845nIomQmIiT0JfFG+dzoUfx0d3BHXPH E2PQ== 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 y12si539678ybh.155.2018.01.16.06.02.41; Tue, 16 Jan 2018 06:02:43 -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 C8A5E617D2; Tue, 16 Jan 2018 14:02:41 +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 41E8C617D2; Tue, 16 Jan 2018 14:00:40 +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 E01BA617D3; Tue, 16 Jan 2018 14:00:26 +0000 (UTC) Received: from forward105o.mail.yandex.net (forward105o.mail.yandex.net [37.140.190.183]) by lists.linaro.org (Postfix) with ESMTPS id 1659161795 for ; Tue, 16 Jan 2018 14:00:24 +0000 (UTC) Received: from mxback15g.mail.yandex.net (mxback15g.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:94]) by forward105o.mail.yandex.net (Yandex) with ESMTP id CA76F4442891 for ; Tue, 16 Jan 2018 17:00:22 +0300 (MSK) Received: from smtp3p.mail.yandex.net (smtp3p.mail.yandex.net [2a02:6b8:0:1472:2741:0:8b6:8]) by mxback15g.mail.yandex.net (nwsmtp/Yandex) with ESMTP id WXVDwztBQr-0MS4CIko; Tue, 16 Jan 2018 17:00:22 +0300 Received: by smtp3p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id I8oQE50glr-0MmeaBWf; Tue, 16 Jan 2018 17:00:22 +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: Tue, 16 Jan 2018 17:00:17 +0300 Message-Id: <1516111220-32187-2-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1516111220-32187-1-git-send-email-odpbot@yandex.ru> References: <1516111220-32187-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 381 Subject: [lng-odp] [PATCH CATERPILLAR v3 1/4] 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: 81ad07ff925dab1db7bf4836997a84e19962b827 **/ 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