From patchwork Thu Jan 25 14:00:19 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: 125856 Delivered-To: patch@linaro.org Received: by 10.46.66.141 with SMTP id h13csp1135795ljf; Thu, 25 Jan 2018 06:06:54 -0800 (PST) X-Google-Smtp-Source: AH8x224DWL6C1ssWQ+c43GvQjezy5GjnX1mV/2aw7pYahU6D4he3w10+6boWMkbR33+fNRFCfFOs X-Received: by 10.237.33.164 with SMTP id l33mr17339138qtc.100.1516889214360; Thu, 25 Jan 2018 06:06:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516889214; cv=none; d=google.com; s=arc-20160816; b=t8NGRxlZ7i0uD/ZNY8ZMM3hVPbXk3jRH5z3DDdrwPbq7bMfiH2D4dmnuLQOxDIVlyA i4ymrVfEb86MtxveIBwuV5J7YB+6u+DXatVc0xYhqNv8yqyeEibILYfDa9PRJJCstD+9 ZhVXL2jtLndvQBKrDjjudg4pj8WKHwoUyGXas74p1BVVJ43XxI4kC56hSiUG6bIxtYxN 1vDnb6qWyTUkLHy3FzpcQrcdV3/oaVA7YuV8LOC5vDHxUddfOFajo77OZdoUIlbfyGYs M16OjzVLEqm26B6lsIgP082qfZz5173qXV0i2EI9KVtLGLYi2fdqTfvGO+EIO+yxTfWn q+6w== 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=6SseaGG7hL92CLrqEzfU7VpawlxRtFTlcqrsmNuI4D4=; b=qcszYh/N5BmFDieKGrN4BzbMdUzTLHN858RnA9Bph/+RKuao5EB1p3V5CkMiY0Nvi4 npBHr+Uns0dFsxwsZFGI23O9lKsNi68tKSb6eMYAW7b0P62lc0EzFY7yk5dTMBeI0Ybc DYJat+ICckwKrWfVW1HfXXyv+IW75V58sLXlSX6uIQ8riNGQjwkDYIZegLn5pbM15eDc XP17+ExIKBSY0hJAVbykbBOp6Td9DHoWSytz3c9l3gg9arXDlCEU49OaIUUTZGPbwjt8 87zk/B2XUP7kteQoNjed6o+iN7vEvfxVC7vj4Pefwo8SYrq9tw2lcPXkpk4TpWTIojtE 1CgA== 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 u7si414145qkd.181.2018.01.25.06.06.54; Thu, 25 Jan 2018 06:06:54 -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 0830C6176B; Thu, 25 Jan 2018 14:06:54 +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 E650E61794; Thu, 25 Jan 2018 14:04:33 +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 D957A61792; Thu, 25 Jan 2018 14:04:28 +0000 (UTC) Received: from forward103p.mail.yandex.net (forward103p.mail.yandex.net [77.88.28.106]) by lists.linaro.org (Postfix) with ESMTPS id C99176179A for ; Thu, 25 Jan 2018 14:01:41 +0000 (UTC) Received: from mxback12j.mail.yandex.net (mxback12j.mail.yandex.net [IPv6:2a02:6b8:0:1619::87]) by forward103p.mail.yandex.net (Yandex) with ESMTP id 490372183C8C for ; Thu, 25 Jan 2018 17:00:26 +0300 (MSK) Received: from smtp1p.mail.yandex.net (smtp1p.mail.yandex.net [2a02:6b8:0:1472:2741:0:8b6:6]) by mxback12j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id g0W0CEcH3E-0Q40xK7B; Thu, 25 Jan 2018 17:00:26 +0300 Received: by smtp1p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id MmDmS2v3bj-0PUOdGiS; Thu, 25 Jan 2018 17:00:25 +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, 25 Jan 2018 17:00:19 +0300 Message-Id: <1516888824-25562-2-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1516888824-25562-1-git-send-email-odpbot@yandex.ru> References: <1516888824-25562-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 406 Subject: [lng-odp] [PATCH CATERPILLAR v2 1/6] 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: f87bb5146fb25f7cd62246500cb4f7e625375654 ** Merge commit sha: 577e1fa00c9cfe0840f5b0f5d5d826f414ac03c6 **/ 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