diff mbox series

[API-NEXT,v1,2/4] api: shm: print shm block info

Message ID 1508508011-21260-3-git-send-email-odpbot@yandex.ru
State Superseded
Headers show
Series [API-NEXT,v1,1/4] api: shm: style clean up | expand

Commit Message

Github ODP bot Oct. 20, 2017, 2 p.m. UTC
From: Petri Savolainen <petri.savolainen@linaro.org>


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 <petri.savolainen@linaro.org>

---
/** 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 mbox series

Patch

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