From patchwork Mon Feb 5 16:00:12 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: 126912 Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp2093976ljc; Mon, 5 Feb 2018 08:04:22 -0800 (PST) X-Google-Smtp-Source: AH8x224kx1T+a5zZdY1q0oEeSBGexw4GIdF+3lf58dA7+5Iszy83qY7RrNsSJBzJ33tY17SaD/Xf X-Received: by 10.55.104.200 with SMTP id d191mr3104834qkc.71.1517846662437; Mon, 05 Feb 2018 08:04:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517846662; cv=none; d=google.com; s=arc-20160816; b=jag+2HN2RnZW4A1sPQOyalLTq8LvDb08+kUhX0+yCZb7NPIJkodTCK/DzxgmL0OCYO A4TqtTMn0uyKVUDZl1I7u5vazxsrj/y0FjAF1RCJ5o6ZqR1O3htEwzg2G49Q7vdU+IKK gZGt/QvpFwYBeG1YAtzu4aa8PpdFJ9WJzllJwOZc5TOJsaTMzXE4ZpE67SUg5r+Tfah3 L8mv7NpzHX+NdslArNivY8OJUZ3KgZSkWn7bRRFS4Ungy6d4bLhDOPFfPOqS6TcISaLs Z/+E7n6s5u7rHXHgBqpd5iVvbbBftWkZsQ1T4Ekd/iwPAFAbYu8Rfzy17dTAcCKdnx1B jmLA== 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=AcAu9iVVFoa4/47Gu+kkim6E6/jLRp2eJl/AkcbIj9s=; b=rNdb0Sb/68QJyRPAERtXUcE5Aq8L5+KU4vidwE4yllE/AyiEhGPDf4UcCTqdrxELZy v5SCy24NxUY2ndn9oF3nM7cTsagIhLUDfoW5/kG0NiOqWXFfyEUvmLX213GQB3XFt6tE 8vSATYy9Rzw9z20kJySa83657uDK6Y2ndNz5aD7WsyaTbFB/2DHyvNWxCFGiHv7I5sgN /vNIeTPC38acYVSROlYM001Ag2ED0qMrRfQ2GVe4FR4w7VUTqb2dBmBHRlmazoEcY5gX pIf6ImLGN0byIKVo1tnWwxnJyjVXngdrRuPvv1H+j70wekaawXdEJAVB6Wg4rX5WaeWi MNRw== 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 j4si5703533qtk.210.2018.02.05.08.04.22; Mon, 05 Feb 2018 08:04:22 -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 EE6E361DD3; Mon, 5 Feb 2018 16:04:21 +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 53A9461809; Mon, 5 Feb 2018 16:00:43 +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 25F0B61791; Mon, 5 Feb 2018 16:00:28 +0000 (UTC) Received: from forward102o.mail.yandex.net (forward102o.mail.yandex.net [37.140.190.182]) by lists.linaro.org (Postfix) with ESMTPS id 982696068C for ; Mon, 5 Feb 2018 16:00:21 +0000 (UTC) Received: from mxback15j.mail.yandex.net (mxback15j.mail.yandex.net [IPv6:2a02:6b8:0:1619::91]) by forward102o.mail.yandex.net (Yandex) with ESMTP id 032165A0247F for ; Mon, 5 Feb 2018 19:00:20 +0300 (MSK) Received: from smtp2o.mail.yandex.net (smtp2o.mail.yandex.net [2a02:6b8:0:1a2d::26]) by mxback15j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id 4IIC2nBIxk-0JRGLRU2; Mon, 05 Feb 2018 19:00:19 +0300 Received: by smtp2o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id sIMWrr2EaX-0Jp89Hen; Mon, 05 Feb 2018 19:00:19 +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: Mon, 5 Feb 2018 19:00:12 +0300 Message-Id: <1517846418-10342-2-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1517846418-10342-1-git-send-email-odpbot@yandex.ru> References: <1517846418-10342-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 443 Subject: [lng-odp] [PATCH v3 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. 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: 27a7923236030fed0272cc9072f0cde62496e91d ** Merge commit sha: be5c8bc74d773397cd54e079ddbad67c56d6fa33 **/ configure.ac | 1 + example/m4/configure.m4 | 10 ++++++++++ 2 files changed, 11 insertions(+) diff --git a/configure.ac b/configure.ac index 7b90b2127..6e9edc372 100644 --- a/configure.ac +++ b/configure.ac @@ -410,4 +410,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..2fcf596ca 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 ]) +code_instrumentation=no +AC_ARG_ENABLE([code-instrum], + [AS_HELP_STRING([--enable-code-instrum], [enable code instrumentation support])], + [if test x$enableval = xyes; then + code_instrumentation=yes + PKG_CHECK_MODULES([PAPI], [papi-5]) + fi]) + +AM_CONDITIONAL([CODE_INSTRUM], [test x$code_instrumentation = xyes ]) + AC_CONFIG_FILES([example/classifier/Makefile example/generator/Makefile example/hello/Makefile