From patchwork Tue Feb 6 10:00:16 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: 126974 Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp2765402ljc; Tue, 6 Feb 2018 02:05:49 -0800 (PST) X-Google-Smtp-Source: AH8x224wk+wdyZApR/uw42bweeEfnWNCFI4doU+YNJBvRcPXVVbESgGGGGq58ET3gPYekZFs41GS X-Received: by 10.237.51.37 with SMTP id u34mr2690460qtd.205.1517911549440; Tue, 06 Feb 2018 02:05:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517911549; cv=none; d=google.com; s=arc-20160816; b=o/7qtj54tdIo+lBXv2J6BmZz8xaNumQT1HiZN+C9Ti0XOeIpYBjPMw/w9KDesNhdEY GVwNuPHqwyScFv4DfyhVYjaFYTJh5S2MMdMemIu7M0LVobgJBBqs/F8cbuIxukB1hmEZ bie0WnUAWqAcSIIesS2uVdw6UHHjKhN/K5emajmN/LixbTUnyKKtVPPqaRAfZClR1mQW hwaDoJmmJxoEPx/O4xAGdUr7H3h3T6LFv3NE20l/xohr6hjbW82RFH/YosAk+VV3RrHW GDcHkZ5GxEp0LcRQxU/4PzRZuriWmvg8xZsd24R28KZcwwqYMPSIPqh3s/1+EPh5NoQg U+1w== 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=e7AVwCWmVp//Jx8gWbf+o4hG0QB1fn2uVzxKRAff8yg=; b=A4ycTB+j15HaqTHChw6WDp6STmnrmwWPQ4cPqFpp7e7o+ETDDoyWw+zuBoYyRVpmUS ONt82g40Gx1CuDwKXujWhFlFz6yhxyrx9pgRnyDiYvnoGpjdEMxnY+kVB75W4z2rB/ee EmTlUSbghtvmuDYOUTcBuM9dvSrloNfYZCG+YUwKSu3bFVJJZ6zzrmEutg9IP9kdiVnj 04c/SIfvxIBZg7KEdaKiVs8RPdHyi9k/BKTpt1hzth0WP+jEJrY5LUDlf6YBRk2H/XG1 0j4cH3PNpg7Zh1cDpT7gSqrmKeD+7wUCMuu9KbjRNy9RJUnVClcNyujS06KxAt4mLRJu XP/w== 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 r49si3196021qtj.205.2018.02.06.02.05.49; Tue, 06 Feb 2018 02:05:49 -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 0DB9C616EA; Tue, 6 Feb 2018 10:05:49 +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_H3, RCVD_IN_MSPIKE_WL 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 C28FB617A2; Tue, 6 Feb 2018 10:03:13 +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 436A9618F4; Tue, 6 Feb 2018 10:03:02 +0000 (UTC) Received: from forward103j.mail.yandex.net (forward103j.mail.yandex.net [5.45.198.246]) by lists.linaro.org (Postfix) with ESMTPS id 49C8E617A2 for ; Tue, 6 Feb 2018 10:00:37 +0000 (UTC) Received: from mxback8j.mail.yandex.net (mxback8j.mail.yandex.net [IPv6:2a02:6b8:0:1619::111]) by forward103j.mail.yandex.net (Yandex) with ESMTP id D770634C2686 for ; Tue, 6 Feb 2018 13:00:35 +0300 (MSK) Received: from smtp2p.mail.yandex.net (smtp2p.mail.yandex.net [2a02:6b8:0:1472:2741:0:8b6:7]) by mxback8j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id 8zYcaggRDh-0ZruDSH7; Tue, 06 Feb 2018 13:00:35 +0300 Received: by smtp2p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id bzfBbjnfEh-0TwKf2va; Tue, 06 Feb 2018 13:00:29 +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, 6 Feb 2018 13:00:16 +0300 Message-Id: <1517911222-3896-2-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1517911222-3896-1-git-send-email-odpbot@yandex.ru> References: <1517911222-3896-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 443 Subject: [lng-odp] [PATCH 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. 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: 34bd4730244cef8aa4ef2778135e469012c66768 **/ 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