:orphan: .. index:: pair: group; Test API to interact with RDMA links .. _doxid-group__tapi__rdma: Test API to interact with RDMA links ==================================== .. toctree:: :hidden: struct_tapi_rdma_link_stat.rst struct_tapi_rdma_link_stats.rst Overview ~~~~~~~~ Generic API to interact with RDMA links. :ref:`More...` .. ref-code-block:: cpp :class: doxyrest-overview-code-block // typedefs typedef struct :ref:`tapi_rdma_link_stat` :target:`tapi_rdma_link_stat_t`; typedef struct :ref:`tapi_rdma_link_stats` :target:`tapi_rdma_link_stats_t`; // structs struct :ref:`tapi_rdma_link_stat`; struct :ref:`tapi_rdma_link_stats`; // global functions :ref:`te_errno` :ref:`tapi_rdma_link_get_stats`(:ref:`rcf_rpc_server`* rpcs, const char* link, :ref:`tapi_rdma_link_stats_t`** stats); :ref:`te_errno` :ref:`tapi_rdma_link_diff_stats`(const :ref:`tapi_rdma_link_stats_t`* old_stats, const :ref:`tapi_rdma_link_stats_t`* new_stats, :ref:`tapi_rdma_link_stats_t`** diff_stats); void :ref:`tapi_rdma_link_log_stats`(:ref:`tapi_rdma_link_stats_t`* stats, const char* description, const char* pattern, bool non_empty, :ref:`te_log_level` log_level); void :ref:`tapi_rdma_link_free_stats`(:ref:`tapi_rdma_link_stats_t`* stats); .. _details-group__tapi__rdma: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ Generic API to interact with RDMA links. Global Functions ---------------- .. index:: pair: function; tapi_rdma_link_get_stats .. _doxid-group__tapi__rdma_1gac48d8d9a8e43110f28bfdf684ac8b219: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`te_errno` tapi_rdma_link_get_stats(:ref:`rcf_rpc_server`* rpcs, const char* link, :ref:`tapi_rdma_link_stats_t`** stats) Collect statistics reported by an RDMA link. .. rubric:: Parameters: .. list-table:: :widths: 20 80 * - rpcs - RPC server. * - link - Name of the RDMA link. * - stats - Where to store the statistics array. .. rubric:: Returns: Status code. .. index:: pair: function; tapi_rdma_link_diff_stats .. _doxid-group__tapi__rdma_1ga6ca3bee1b9c74e22f9434c7b53ea9299: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`te_errno` tapi_rdma_link_diff_stats(const :ref:`tapi_rdma_link_stats_t`* old_stats, const :ref:`tapi_rdma_link_stats_t`* new_stats, :ref:`tapi_rdma_link_stats_t`** diff_stats) Compare two sets of statistics. .. rubric:: Parameters: .. list-table:: :widths: 20 80 * - old_stats - Old statistics array. * - new_stats - New statistics array. * - diff_stats - Where to store the statistics diff array. .. rubric:: Returns: Status code. .. index:: pair: function; tapi_rdma_link_log_stats .. _doxid-group__tapi__rdma_1gaf25e5cea970aec19c5bc176cf9ae2fa5: .. ref-code-block:: cpp :class: doxyrest-title-code-block void tapi_rdma_link_log_stats(:ref:`tapi_rdma_link_stats_t`* stats, const char* description, const char* pattern, bool non_empty, :ref:`te_log_level` log_level) Log statistics whose name contains a given substring. Use the log level provided by the caller. .. rubric:: Parameters: .. list-table:: :widths: 20 80 * - stats - Statistics array. * - description - Description line to be logged before the stats. * - pattern - Substring that must be in the name. * - non_empty - Only log if there is something to log. * - log_level - Log level to use. .. index:: pair: function; tapi_rdma_link_free_stats .. _doxid-group__tapi__rdma_1gac5baf3722e1e0cd081ea15d1ef4b73cb: .. ref-code-block:: cpp :class: doxyrest-title-code-block void tapi_rdma_link_free_stats(:ref:`tapi_rdma_link_stats_t`* stats) Free the memory occupied by an array of RDMA link statistics. .. rubric:: Parameters: .. list-table:: :widths: 20 80 * - stats - Statistics array.