From patchwork Mon Oct 23 10:00:15 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Github ODP bot X-Patchwork-Id: 116669 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp4456371qgn; Mon, 23 Oct 2017 03:03:57 -0700 (PDT) X-Google-Smtp-Source: ABhQp+RoZQsm3Qn+kS63BfJ4LKROqxi+UwScm5vSo5MdUOZacYmRj1RmSmbIM8+DkpTKtgo/o7i5 X-Received: by 10.55.162.198 with SMTP id l189mr18076231qke.168.1508753037249; Mon, 23 Oct 2017 03:03:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1508753037; cv=none; d=google.com; s=arc-20160816; b=JKRwCbVb7IrmsNuNBcvWSwc+k9A9xZY6pdsweU1Ox6OdyLgQ1fvgLZJJyX/QVciE56 fOTFUGdMTlBqAm/fsKEOyBSYzPcnkBp6mJO9eA6yLMHJxhTlBYAxlXNckNcSAZTMXtGt fvSpSdDVaZgmDHFi/3rHTy0J/Cmr3QXjLndKjUxaYeDnasYDV48s2VtDmfXrwzWcUdTq QlsePHs1zxTWevYMEuCiCPMfmqdQ2+PpzmAmOHajxJ1vM34ocNLUHmp26vhDO7mOI0VT I4D1K8r6A8KG1pESbHTSpcnzea9MqnTMR/cfWqEyayNVMHnaeJuzmniN3OObbkMGcTTP w0aA== 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=lOzNT3kFLqxWSTYW0rG996+d25MEwxtrDAK7ceDDqLk=; b=p/zeDU8HEsbyvpP7+Pyd18HmCDyFAPDPNCl1gO45BS9vy7RVZx6WRcxHqIMsPrUCGA WxV0xy2a8CynPoLQ4LLrRgQjfXtnb1iSauMserVSctx/vT7L5f0Dtp++A9bNCTRjLZIN 4yqxzHhMnhG7XZ3WcMhlg3UBtCQT7hR10gKimBFzrNSXvJVbeNK11lxfJV+wvcavI0qf boq9obASI2aZMsuMsw1bVKoszMGQpLLNHKTnuBKW+EWWHckTg8EbKSSkUfhC1ojI6Yzw BqRql5uJOfpfUTpi6zJeGFwpTB/ePHTggutpE9xC5AT4NAewHrEgssEUYDm6VcL7qubP zICw== 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 72si2541824qks.203.2017.10.23.03.03.57; Mon, 23 Oct 2017 03:03:57 -0700 (PDT) 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 E873A61BBA; Mon, 23 Oct 2017 10:03:56 +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,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 7E28861D19; Mon, 23 Oct 2017 10:02: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 AA58B61D25; Mon, 23 Oct 2017 10:02:13 +0000 (UTC) Received: from forward106p.mail.yandex.net (forward106p.mail.yandex.net [77.88.28.109]) by lists.linaro.org (Postfix) with ESMTPS id 4BC3361630 for ; Mon, 23 Oct 2017 10:00:35 +0000 (UTC) Received: from mxback14j.mail.yandex.net (mxback14j.mail.yandex.net [IPv6:2a02:6b8:0:1619::90]) by forward106p.mail.yandex.net (Yandex) with ESMTP id D64F22D85118 for ; Mon, 23 Oct 2017 13:00:33 +0300 (MSK) Received: from smtp2p.mail.yandex.net (smtp2p.mail.yandex.net [2a02:6b8:0:1472:2741:0:8b6:7]) by mxback14j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id 58cApggXlL-0XMCRC7d; Mon, 23 Oct 2017 13:00:33 +0300 Received: by smtp2p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id fSL5x6gEpl-0W8iK7sX; Mon, 23 Oct 2017 13:00:32 +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, 23 Oct 2017 13:00:15 +0300 Message-Id: <1508752817-11952-3-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1508752817-11952-1-git-send-email-odpbot@yandex.ru> References: <1508752817-11952-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 246 Subject: [lng-odp] [PATCH API-NEXT v2 2/4] api: shm: print shm block info 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: Petri Savolainen Added function to print debugging information about the specified shared memory block. Info is implementation defined but should include information about allocated memory addresses, pages, etc. Signed-off-by: Petri Savolainen --- /** Email created from pull request 246 (psavol:next-shm-print) ** https://github.com/Linaro/odp/pull/246 ** Patch: https://github.com/Linaro/odp/pull/246.patch ** Base sha: ec6510b33e8b96d6d6670efb9dc3c9101baed6c6 ** Merge commit sha: fe0769b6e9387bbfabf68b538ec83a685f406da0 **/ include/odp/api/spec/shared_memory.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/include/odp/api/spec/shared_memory.h b/include/odp/api/spec/shared_memory.h index 2c0db1021..60a0cdde3 100644 --- a/include/odp/api/spec/shared_memory.h +++ b/include/odp/api/spec/shared_memory.h @@ -209,13 +209,22 @@ void *odp_shm_addr(odp_shm_t shm); */ int odp_shm_info(odp_shm_t shm, odp_shm_info_t *info); - /** * Print all shared memory blocks */ void odp_shm_print_all(void); /** + * Print shared memory block info + * + * Print implementation defined information about the specified shared memory + * block to the ODP log. The information is intended to be used for debugging. + * + * @param shm Block handle + */ +void odp_shm_print(odp_shm_t shm); + +/** * Get printable value for an odp_shm_t * * This routine is intended to be used for diagnostic purposes to enable