[Pkg-ofed-commits] [libfabric] 81/123: prov/psm: add UUID and PSM epid to debug output
Ana Beatriz Guerrero López
ana at moszumanska.debian.org
Sat Oct 22 12:28:33 UTC 2016
This is an automated email from the git hooks/post-receive script.
ana pushed a commit to annotated tag v1.1.1
in repository libfabric.
commit 65343525c4e585c9b9b56bfccdcb2917c4ff48b0
Author: Jianxin Xiong <jianxin.xiong at intel.com>
Date: Thu Sep 17 20:27:59 2015 -0700
prov/psm: add UUID and PSM epid to debug output
Signed-off-by: Jianxin Xiong <jianxin.xiong at intel.com>
---
prov/psm/src/psmx.h | 1 +
prov/psm/src/psmx_domain.c | 4 ++++
prov/psm/src/psmx_util.c | 15 +++++++++++++++
3 files changed, 20 insertions(+)
diff --git a/prov/psm/src/psmx.h b/prov/psm/src/psmx.h
index c49cf81..c152b5d 100644
--- a/prov/psm/src/psmx.h
+++ b/prov/psm/src/psmx.h
@@ -593,6 +593,7 @@ void *psmx_name_server(void *args);
void *psmx_resolve_name(const char *servername, int port);
void psmx_get_uuid(psm_uuid_t uuid);
int psmx_uuid_to_port(psm_uuid_t uuid);
+char *psmx_uuid_to_string(psm_uuid_t uuid);
int psmx_errno(int err);
int psmx_epid_to_epaddr(struct psmx_fid_domain *domain,
psm_epid_t epid, psm_epaddr_t *epaddr);
diff --git a/prov/psm/src/psmx_domain.c b/prov/psm/src/psmx_domain.c
index aafdf81..b799895 100644
--- a/prov/psm/src/psmx_domain.c
+++ b/prov/psm/src/psmx_domain.c
@@ -126,6 +126,8 @@ int psmx_domain_open(struct fid_fabric *fabric, struct fi_info *info,
psm_ep_open_opts_get_defaults(&opts);
+ FI_INFO(&psmx_prov, FI_LOG_CORE, "uuid: %s\n", psmx_uuid_to_string(fabric_priv->uuid));
+
err = psm_ep_open(fabric_priv->uuid, &opts,
&domain_priv->psm_ep, &domain_priv->psm_epid);
if (err != PSM_OK) {
@@ -135,6 +137,8 @@ int psmx_domain_open(struct fid_fabric *fabric, struct fi_info *info,
goto err_out_free_domain;
}
+ FI_INFO(&psmx_prov, FI_LOG_CORE, "epid: 0x%016lx\n", domain_priv->psm_epid);
+
err = psm_mq_init(domain_priv->psm_ep, PSM_MQ_ORDERMASK_ALL,
NULL, 0, &domain_priv->psm_mq);
if (err != PSM_OK) {
diff --git a/prov/psm/src/psmx_util.c b/prov/psm/src/psmx_util.c
index e02c741..520e7c9 100644
--- a/prov/psm/src/psmx_util.c
+++ b/prov/psm/src/psmx_util.c
@@ -75,6 +75,21 @@ int psmx_uuid_to_port(psm_uuid_t uuid)
return (int)port;
}
+char *psmx_uuid_to_string(psm_uuid_t uuid)
+{
+ static char s[40];
+
+ sprintf(s,
+ "%02hhX%02hhX%02hhX%02hhX-"
+ "%02hhX%02hhX-%02hhX%02hhX-%02hhX%02hhX-"
+ "%02hhX%02hhX%02hhX%02hhX%02hhX%02hhX",
+ uuid[0], uuid[1], uuid[2], uuid[3],
+ uuid[4], uuid[5], uuid[6], uuid[7], uuid[8], uuid[9],
+ uuid[10], uuid[11], uuid[12], uuid[13], uuid[14], uuid[15]);
+
+ return s;
+}
+
/*************************************************************
* A simple name resolution mechanism for client-server style
* applications. The server side has to run first. The client
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ofed/libfabric.git
More information about the Pkg-ofed-commits
mailing list