From patchwork Fri Jan 5 15:00:07 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: 123531 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp913849qgn; Fri, 5 Jan 2018 07:01:01 -0800 (PST) X-Google-Smtp-Source: ACJfBos5uXxjuQx463AViil65DZATRi9LYy+ad8nZYtH3PLtnYAyW0n88p2c0Dv1ggZB3zWr2YE/ X-Received: by 10.55.209.90 with SMTP id s87mr4475255qki.87.1515164461120; Fri, 05 Jan 2018 07:01:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1515164461; cv=none; d=google.com; s=arc-20160816; b=TaFSfBHa2frGExk5ytvFDM4jG+on2ed4DQ2KJRm8It+dJOwKJv6zryr5xtW7YGl7Wb Ml5IwnPQlRolQAs+Jd1PVAXzhGV6mwgsQRvfuNF3NwxFrwvnHW5aaJRAGLeGMhKy451I a4b4eIziarDGW8ZGwHbwd8Xp3ghog3rlOrZPe+4jTdY470Oqdbm8NL/hmQ8+eZa1BGxM nMQfTtaNSAJqdkKMZDGOLdc4V2MLs4xQgH2Tm20nxp3R0PTdabEulP8TvyH0skxOYHm1 rCp7frB0XLzCRvrMUi+PBCMQKu+2yaoCapMoijtmd0VdlJvELMLEG/OsAuDCykbJ10bm NMAQ== 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=ak0f7C248H/Yf29Y39/MTJeIxdzb1ASP+Hi+3AaXlMM=; b=UOPtsMYeb+PDIqi0ksmYF0od3AaQ8YEUL3BELJu2CQWuGix4/VCGL/TWwbx8BgROwM 002Nz8Zf+vgixxSGByJ2IM7U9aFDyw3zABwFCCec/86BBwDRhh8SD5dqtKh2rw6YtEpL gu2VpSTFsJ1BlF5CSlUOlJAJ7SF/G0vNlrImYr5S1nrTgHYNVdqEe0PPRqsogV8pos7v 4DHt7KL4bf6z6CYdD1imrmWjSxegEZDL4bgEL7bZCeqyFr4iBeZZGLkEVXWk3nYd+4Tf IX6b/TH7yRi/g5/JJc43dEgWgOXa9V6JKORam/CdF9UNCK8PEBAm7Ft5wdjXsUkHxcrp 1NUQ== 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 o3si2087653qtd.116.2018.01.05.07.01.00; Fri, 05 Jan 2018 07:01:01 -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 C66DF60A4A; Fri, 5 Jan 2018 15:01:00 +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,URIBL_BLOCKED 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 CAB3860B11; Fri, 5 Jan 2018 15:00:22 +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 B1D0160A4A; Fri, 5 Jan 2018 15:00:15 +0000 (UTC) Received: from forward106o.mail.yandex.net (forward106o.mail.yandex.net [37.140.190.187]) by lists.linaro.org (Postfix) with ESMTPS id 36D6060859 for ; Fri, 5 Jan 2018 15:00:14 +0000 (UTC) Received: from mxback7o.mail.yandex.net (mxback7o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::21]) by forward106o.mail.yandex.net (Yandex) with ESMTP id A4BCA7831E6 for ; Fri, 5 Jan 2018 18:00:12 +0300 (MSK) Received: from smtp3p.mail.yandex.net (smtp3p.mail.yandex.net [2a02:6b8:0:1472:2741:0:8b6:8]) by mxback7o.mail.yandex.net (nwsmtp/Yandex) with ESMTP id yD1YWUhl0R-0CdaMDPF; Fri, 05 Jan 2018 18:00:12 +0300 Received: by smtp3p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id ty462EFbUF-0CdqViKg; Fri, 05 Jan 2018 18:00:12 +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: Fri, 5 Jan 2018 18:00:07 +0300 Message-Id: <1515164409-28381-2-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1515164409-28381-1-git-send-email-odpbot@yandex.ru> References: <1515164409-28381-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 381 Subject: [lng-odp] [PATCH CATERPILLAR v1 1/3] example: add papi path 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 Signed-off-by: Bogdan Pricope --- /** Email created from pull request 381 (bogdanPricope:cat_benchmark_poc) ** https://github.com/Linaro/odp/pull/381 ** Patch: https://github.com/Linaro/odp/pull/381.patch ** Base sha: 4d17f8ae64aba0e6f24877be30f86ae5880cef7e ** Merge commit sha: 85dce59a9248687c1522281ae7ac822405a71a20 **/ example/m4/configure.m4 | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/example/m4/configure.m4 b/example/m4/configure.m4 index 208c5d6d7..034415903 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 ]) +PAPI_PATH="" +code_instrumentation=no +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