From patchwork Mon Jan 29 16:00:15 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: 126176 Delivered-To: patch@linaro.org Received: by 10.46.84.92 with SMTP id y28csp2554373ljd; Mon, 29 Jan 2018 08:01:47 -0800 (PST) X-Google-Smtp-Source: AH8x227IPhwdhIlqB9QV88LJb6CITINJ8mYYXJpU+5nrov8Zx9qZBJ3t7Bk2lzmeskdrh+rHZHIR X-Received: by 10.200.58.97 with SMTP id w88mr22095740qte.236.1517241707459; Mon, 29 Jan 2018 08:01:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517241707; cv=none; d=google.com; s=arc-20160816; b=K6rykDWYbLq4+L2nJI5vBWm9bYXJdqExHuh4M1tCC8YqwbT0tE3biHuQMAqh0j1WNQ FZFQDuPAww42CxC+bWe34Lu+VsOQbn3XLeOL1YGjg0w/Ee1Wz9mF2dWFtkuantgaS7rF ZXy0a+ZRq+GQwFq/jQsvWqAzLvvjDYzhhjd/U/wUhavv6ahfKb1IJS4flDgo1dgEzGY9 /DA8swqed0x9gvPyq/uoT5OJNcn8sAiRryNdpJmPyEqADGhF0SUGnNEfa7w/A62U5nBK AR2zQxNx+sFYhDgBiFFDbcHCA/ODuLAZt5CIgK/YTWCu3IPUo5UgUzwfkkpm8FKxZZHY HQPA== 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=I2Ei293Nc8+pHV2xOtXiXRnrk1lXF049zyy/CBgJIdI=; b=BZf8PJrTHlZsdgUEchlzW82bY01XyMDdk0eFltcrxVM2/IWftPNuYSfHvw7abB34g1 Lp11Zb8sOS+BiabEDfIq6EnNYjtxgwbg6rMP09bBBp8i2N7bXdZFmObzExe1EeEHmNC/ wCts39ZuXZkTkFbaP6LeiVa9uNG/Oz3S6YmLLjO4Vq0ky7XtKarcpHyXdiPsuGCOF3pS vFqiHtHsCvu61q+DRc+J3cXFvRdeYLhHqUBLQy5v+99GOSg/ksFQ6WQXypLJD5VrleAb Q9guJEb/D3UaNbo+mpM2EtN6Ti/eIzbObj8N++L3nfHxOz7whEg7iEga6rrSVAcwmb2y CFmw== 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 e10si9966439qtk.367.2018.01.29.08.01.47; Mon, 29 Jan 2018 08:01:47 -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 1E47B6175E; Mon, 29 Jan 2018 16:01:47 +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 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 6EE0260C5E; Mon, 29 Jan 2018 16:00:40 +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 4612960887; Mon, 29 Jan 2018 16:00:26 +0000 (UTC) Received: from forward104p.mail.yandex.net (forward104p.mail.yandex.net [77.88.28.107]) by lists.linaro.org (Postfix) with ESMTPS id CBF9160887 for ; Mon, 29 Jan 2018 16:00:24 +0000 (UTC) Received: from mxback20j.mail.yandex.net (mxback20j.mail.yandex.net [IPv6:2a02:6b8:0:1619::114]) by forward104p.mail.yandex.net (Yandex) with ESMTP id 387D7182DFC for ; Mon, 29 Jan 2018 19:00:23 +0300 (MSK) Received: from smtp2o.mail.yandex.net (smtp2o.mail.yandex.net [2a02:6b8:0:1a2d::26]) by mxback20j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id UMSVMCU482-0NBSBHZJ; Mon, 29 Jan 2018 19:00:23 +0300 Received: by smtp2o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id 1WljkUuA25-0MdeVtHv; Mon, 29 Jan 2018 19:00:22 +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, 29 Jan 2018 19:00:15 +0300 Message-Id: <1517241621-24528-2-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1517241621-24528-1-git-send-email-odpbot@yandex.ru> References: <1517241621-24528-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 406 Subject: [lng-odp] [PATCH CATERPILLAR 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 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: 5251bda54b51d3754aaf8c988aa959b48b4d25f9 ** Merge commit sha: 2d6677b6a3794cad32abe2af7314215ea22921c3 **/ example/m4/configure.m4 | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) 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