From patchwork Wed Jan 31 14:00:20 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: 126348 Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp775727ljc; Wed, 31 Jan 2018 06:21:44 -0800 (PST) X-Google-Smtp-Source: AH8x22637lOTNRJiUmh9slJ5DbfWcXlFGF1t4PX+y1S9opYqyx2GoiKoXUSqEH9B6+q5+fAoAOyt X-Received: by 10.200.50.77 with SMTP id y13mr51415922qta.167.1517408504472; Wed, 31 Jan 2018 06:21:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517408504; cv=none; d=google.com; s=arc-20160816; b=NLhZRa+1BJBQ/zBBjD23op3wX/49Q/jVOBFezKa4vh5QdaH/b26TegHmFKkA4wtS3F N3D07sfxpiKkoddKAdyGOJuCmIeswEZD+BkOucGPGrsWnxKTlAe3KcHJeyoSPSGWrqdx ucdnRt2ZbXyLEJ0XI+fxyy/+Oti34puqz3IgBn4DQG4R0REcO9jE0DLXJZwEIe97Eq7Y p3Wrlaphub4mfODZI09OvkbiiI6xrFHRtTaoP+O4WVD8k9M7nSsiexHQihSMP84lKAhG 4sIXe/ItJuuf5duYoNRBqxb+SJ5QpdpkAbOEt4+UfS3n4Tm55TQC4Oh1Pr6/KPmlHOUf 4zgQ== 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=AZhYFLT5tTMzOsvxdBqBW195SOotw/ayf3a6myKFzI4=; b=fZT7XB9FdsAFO9b0wGfvoiJ97WirwPLOW+1lmhz+hJG/8r8COvVRdYdQbyLM5DzxCd EYdstC64zmK9j+0fH4aGEJ/1J+z1WkErJCMyE/unIqCkL4ndMsAt4STCt8l01VhRT+lX aSBm7b+aYxgtx+KuWaRaUZCaYN6s2mci0FLCv0UI/9krMII75hvvqD1iptJb8dAvMQJZ xUhRqYpRkjgwjAqvgZvYSaYwH3CvPGBWg6TXrm7guLakpcRNcz+jBM2k0lITv2Auymdf 7Txcbe+su9PTqFP9JB8pydP4aiNMBpWKcNIwlVtJJra/++8gowyNRmNGLdCTkpLFk7g4 D++A== 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 p5si3288909qkc.184.2018.01.31.06.21.44; Wed, 31 Jan 2018 06:21:44 -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 1AD6361788; Wed, 31 Jan 2018 14:21:44 +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 6D9E2617C1; Wed, 31 Jan 2018 14:06:02 +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 1C0E7617F8; Wed, 31 Jan 2018 14:05:54 +0000 (UTC) Received: from forward100p.mail.yandex.net (forward100p.mail.yandex.net [77.88.28.100]) by lists.linaro.org (Postfix) with ESMTPS id B780A617B6 for ; Wed, 31 Jan 2018 14:01:22 +0000 (UTC) Received: from mxback2j.mail.yandex.net (mxback2j.mail.yandex.net [IPv6:2a02:6b8:0:1619::10b]) by forward100p.mail.yandex.net (Yandex) with ESMTP id B55BF51019EA for ; Wed, 31 Jan 2018 17:00:27 +0300 (MSK) Received: from smtp3o.mail.yandex.net (smtp3o.mail.yandex.net [2a02:6b8:0:1a2d::27]) by mxback2j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id ZbLePRrbhX-0RKS1fms; Wed, 31 Jan 2018 17:00:27 +0300 Received: by smtp3o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id LdNp02bKEL-0REKdI2v; Wed, 31 Jan 2018 17:00:27 +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: Wed, 31 Jan 2018 17:00:20 +0300 Message-Id: <1517407226-19192-2-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1517407226-19192-1-git-send-email-odpbot@yandex.ru> References: <1517407226-19192-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 406 Subject: [lng-odp] [PATCH CATERPILLAR v4 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 406 (bogdanPricope:cat_benchmark_pr) ** https://github.com/Linaro/odp/pull/406 ** Patch: https://github.com/Linaro/odp/pull/406.patch ** Base sha: 079b524277414f57411d3223563353bbdbc1a536 ** Merge commit sha: c25517810ea3389a28c0adb2fdde601eae684851 **/ configure.ac | 1 + example/m4/configure.m4 | 16 ++++++++++++++++ 2 files changed, 17 insertions(+) diff --git a/configure.ac b/configure.ac index 3f5092320..bd0fbf3ee 100644 --- a/configure.ac +++ b/configure.ac @@ -411,4 +411,5 @@ AC_MSG_RESULT([ test_example: ${test_example} user_guides: ${user_guides} mdev: ${mdev_support} + code instrumentation: ${code_instrumentation} ]) diff --git a/example/m4/configure.m4 b/example/m4/configure.m4 index 208c5d6d7..5122d19b6 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