From patchwork Thu Feb 1 14:00:01 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: 126539 Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp1739212ljc; Thu, 1 Feb 2018 06:03:46 -0800 (PST) X-Google-Smtp-Source: AH8x225va2RQPrZjetaW56sZT4DC4rg2v5JHLHCMto/HRH6iY28uQVu/D6miD5WTy8sbS2Wj3UBt X-Received: by 10.200.24.8 with SMTP id q8mr58357794qtj.210.1517493825783; Thu, 01 Feb 2018 06:03:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517493825; cv=none; d=google.com; s=arc-20160816; b=XTHqnMDNf8au8CuyCvrhjzBS2mh25OtZeYjAZx9zEDj8VBjZ8QizsFpLULTPTxcgGu bYEzd14W2dJpTCVp6j20Ilwxx/L1FOFkCDw7B5jfF982acNeEk14VXbEZ5SJ1uP3v1t1 xknCyMsthFYrpXHoQMXg/esh/ysER7ql7ZONYIR/nXRD39TU8GazwDmWT437I4ISM0oi OxiG0DfbCnI1wOR44D0bscW0tgW/7y7o3IXEhT3J/9daTuoDuDwWqJsvK5jHDePA8U7G HiTNUmLxqyxichr0m4yie4oG7huHDJXzrsherhUWSzdDZPm+GQ8WIpmvEGXubYNAjxg3 CK8w== 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=aVoHi9Pfqmx4njztBsb5gOIb8Ske6w132olymeFuUxQ=; b=VwWExxq2xiYT71QZfMrVStfJJfmFsQ0i9m+s6PBHejX4i8xpwj88XkcbZk/4trm682 AzQMJZxUnZZ6f3dxjFU/VRt4rlYbLn2jhvlNk01CmXGbFgg3iS65lGW2TwcFMWQo1sS+ QMB7qY77S1xW0sQPpq+IKO0ZZiSyzp3iOE+NVNt1ES+4lNukY8x7Gvas3J9m1cvqwS3j CAGuW9WcwHSPWx0NBm97tQbv7AO6zRG2ITCl8p24mowyaiVOSCsyutSxjyjOOHoTdl39 zr5D5UZ8FK3UH2/+PT6EHbzKnuj3p7YVMgii9wYEujekRvF5dk3ckFdCr2FfANR9qeNW HqrA== 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 o23si5500045qki.233.2018.02.01.06.03.45; Thu, 01 Feb 2018 06:03:45 -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 77C58617A9; Thu, 1 Feb 2018 14:03:45 +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 E43A46178A; Thu, 1 Feb 2018 14: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 2F98C61780; Thu, 1 Feb 2018 14:00:22 +0000 (UTC) Received: from forward105o.mail.yandex.net (forward105o.mail.yandex.net [37.140.190.183]) by lists.linaro.org (Postfix) with ESMTPS id E53F061698 for ; Thu, 1 Feb 2018 14:00:11 +0000 (UTC) Received: from mxback7o.mail.yandex.net (mxback7o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::21]) by forward105o.mail.yandex.net (Yandex) with ESMTP id F1A3F44460D4 for ; Thu, 1 Feb 2018 17:00:09 +0300 (MSK) Received: from smtp4o.mail.yandex.net (smtp4o.mail.yandex.net [2a02:6b8:0:1a2d::28]) by mxback7o.mail.yandex.net (nwsmtp/Yandex) with ESMTP id CwFj5AAVZh-09jS2YhU; Thu, 01 Feb 2018 17:00:09 +0300 Received: by smtp4o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id 84IFXYC70u-09nqMCtV; Thu, 01 Feb 2018 17:00:09 +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, 1 Feb 2018 17:00:01 +0300 Message-Id: <1517493607-30535-2-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1517493607-30535-1-git-send-email-odpbot@yandex.ru> References: <1517493607-30535-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 443 Subject: [lng-odp] [PATCH v1 1/7] example: add basic papi 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 Add configuration options to enable code instrumentation and set PAPI installation folder. Signed-off-by: Bogdan Pricope --- /** Email created from pull request 443 (bogdanPricope:master_benchmark_pr) ** https://github.com/Linaro/odp/pull/443 ** Patch: https://github.com/Linaro/odp/pull/443.patch ** Base sha: b95ccd3db6eeb7358a877541747e06354429acdd ** Merge commit sha: a7eb054a87f5e31ccdca856470dd8e2ce0dcdd1b **/ configure.ac | 1 + example/m4/configure.m4 | 16 ++++++++++++++++ 2 files changed, 17 insertions(+) diff --git a/configure.ac b/configure.ac index 6d76bead8..97d906678 100644 --- a/configure.ac +++ b/configure.ac @@ -417,4 +417,5 @@ AC_MSG_RESULT([ test_helper: ${test_helper} test_example: ${test_example} user_guides: ${user_guides} + code instrumentation: ${code_instrumentation} ]) diff --git a/example/m4/configure.m4 b/example/m4/configure.m4 index 1ce0cb11d..64a51e401 100644 --- a/example/m4/configure.m4 +++ b/example/m4/configure.m4 @@ -7,6 +7,22 @@ AC_ARG_ENABLE([test-example], [test_example=yes]) AM_CONDITIONAL([test_example], [test x$test_example = xyes ]) +code_instrumentation=no +AC_ARG_ENABLE([code-instrum], + [ --enable-code-instrum enable code instrumentation support], + [if test x$enableval = xyes; then + code_instrumentation=yes + fi]) + +PAPI_PATH="" +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