From patchwork Fri Oct 20 14:00:09 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: 116499 Delivered-To: patch@linaro.org Received: by 10.80.245.45 with SMTP id t42csp11588edm; Fri, 20 Oct 2017 07:04:18 -0700 (PDT) X-Google-Smtp-Source: ABhQp+TygWTRI9cY9rjB9G5rz8sUhaLtw9pKVdkqDzQvncHmZERzF2CvXtfv5wbGFk1Ki/I2TWIn X-Received: by 10.55.75.75 with SMTP id y72mr6742596qka.118.1508508258861; Fri, 20 Oct 2017 07:04:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1508508258; cv=none; d=google.com; s=arc-20160816; b=emhpvNqBQH8V0GkocawVY6q1oobel9x8bf55uI9PbxNN1pRBv/62W1bXlxFjw2micV WQTuxCV7TJLVuT/Xcp0prbJEjapn9Vf+qxYQT7B117Hs9VR6nCUqwOX31mjcGTeYbKGu 5oUiNh4m91pP0cAUSw99H3rjnhmDIL6qleuHXgrLMhF4Avzg40hWsbUqAwXc2HyoEay5 13m6A77iWVzuZ00c1YgdD6uiY8altiFCTJKy2owaD5kI/knfh0e1flX1qYdDtPCU0vrP 7zkmhAEXKzN83YWDKaeiiKrL1hiyNvtoXnQY9MuxC/zkwXTJxIBUS+91Y7LCp8bKmv99 Vuzw== 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=nqXZc3DcqmIrwLjoiYJeCsFmAu7yRKG38pXoped4Ado=; b=atkmW5NudpQwBaEXZW4iE4AJ4xBFA7iueuD8cYbyIM/+CIcDpCXNyc+FSL2gu0ZAQe MANmD7i2UV2B04FuMFb8f0XfveOD4pR+mBSe1+p9Fs0xgKnOkBaePpz3/bOX0Y7DRh96 ZJzVYOjYrofufWwYcMjA8AkMGNcIM5SAkevh9sjp0HqGi0YqR8zlxPVbHrt1Xug4NOOj NAsazgZ3ZdM4iMKakUInubuuTufvhrRVt5LtW3HICKicWWGU/XdGyRY0iuygeTZc93tF KhEKVCKjinl1k/zZOjPNm39KPCx+rsqi6PQ7o4vvl9EY+awGXkr/q4Li183VY4aVtwfQ d9vA== 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 x6si839655qkg.233.2017.10.20.07.04.15; Fri, 20 Oct 2017 07:04:18 -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 23BAA60FFA; Fri, 20 Oct 2017 14:04:15 +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 5275261007; Fri, 20 Oct 2017 14:00:49 +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 3682060D35; Fri, 20 Oct 2017 14:00:24 +0000 (UTC) Received: from forward106p.mail.yandex.net (forward106p.mail.yandex.net [77.88.28.109]) by lists.linaro.org (Postfix) with ESMTPS id 288F0609AC for ; Fri, 20 Oct 2017 14:00:18 +0000 (UTC) Received: from mxback6j.mail.yandex.net (mxback6j.mail.yandex.net [IPv6:2a02:6b8:0:1619::10f]) by forward106p.mail.yandex.net (Yandex) with ESMTP id 1F4592D853E1 for ; Fri, 20 Oct 2017 17:00:17 +0300 (MSK) Received: from smtp1p.mail.yandex.net (smtp1p.mail.yandex.net [2a02:6b8:0:1472:2741:0:8b6:6]) by mxback6j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id YJQC8kWY7R-0HTukRth; Fri, 20 Oct 2017 17:00:17 +0300 Received: by smtp1p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id EU0BCjigMs-0Gd0JnpY; Fri, 20 Oct 2017 17:00:16 +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, 20 Oct 2017 17:00:09 +0300 Message-Id: <1508508011-21260-3-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1508508011-21260-1-git-send-email-odpbot@yandex.ru> References: <1508508011-21260-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 246 Subject: [lng-odp] [PATCH API-NEXT v1 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: e3108af2f0b58c2ceca422b418439bba5de04b11 ** Merge commit sha: d02ca128bb3e497ed54c1224b5bd9d9f707870b3 **/ 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