public inbox for linux-rdma@vger.kernel.org
 help / color / mirror / Atom feed
* ib-diags and ib_get_err_str
@ 2011-08-05 23:31 Hefty, Sean
       [not found] ` <1828884A29C6694DAF28B7E6B8A8237313702643-P5GAC/sN6hmkrb+BlOpmy7fspsVTdybXVpNB7YpNyf8@public.gmane.org>
  0 siblings, 1 reply; 6+ messages in thread
From: Hefty, Sean @ 2011-08-05 23:31 UTC (permalink / raw)
  To: linux-rdma (linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org),
	Ira Weiny (weiny2-i2BcT+NCU+M@public.gmane.org),
	"Hal Rosenstock (hal.rosenstock-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org)" <hal.rosenstock>

Can anyone tell me how ib_get_err_str() gets pulled in on Linux?  I see it is ib_types.h in opensm, which references ib_error_str array.  When are the diags depending on to pick this up?
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: ib-diags and ib_get_err_str
       [not found] ` <1828884A29C6694DAF28B7E6B8A8237313702643-P5GAC/sN6hmkrb+BlOpmy7fspsVTdybXVpNB7YpNyf8@public.gmane.org>
@ 2011-08-05 23:51   ` Ira Weiny
       [not found]     ` <20110805165122.1b508a84.weiny2-i2BcT+NCU+M@public.gmane.org>
  0 siblings, 1 reply; 6+ messages in thread
From: Ira Weiny @ 2011-08-05 23:51 UTC (permalink / raw)
  To: Hefty, Sean
  Cc: linux-rdma (linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org),
	Hal Rosenstock (hal.rosenstock-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org)

On Fri, 5 Aug 2011 16:31:17 -0700
"Hefty, Sean" <sean.hefty-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> wrote:

> Can anyone tell me how ib_get_err_str() gets pulled in on Linux?  I see it is ib_types.h in opensm, which references ib_error_str array.  When are the diags depending on to pick this up?

This is picked up by libosmcomp.so

Although this is not explicit in the Makefile.am.  :-/

Ira


> --
> To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
> the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html


-- 
Ira Weiny
Math Programmer/Computer Scientist
Lawrence Livermore National Lab
925-423-8008
weiny2-i2BcT+NCU+M@public.gmane.org
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 6+ messages in thread

* RE: ib-diags and ib_get_err_str
       [not found]     ` <20110805165122.1b508a84.weiny2-i2BcT+NCU+M@public.gmane.org>
@ 2011-08-05 23:57       ` Hefty, Sean
       [not found]         ` <1828884A29C6694DAF28B7E6B8A8237313702677-P5GAC/sN6hmkrb+BlOpmy7fspsVTdybXVpNB7YpNyf8@public.gmane.org>
  0 siblings, 1 reply; 6+ messages in thread
From: Hefty, Sean @ 2011-08-05 23:57 UTC (permalink / raw)
  To: Ira Weiny
  Cc: linux-rdma (linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org),
	Hal Rosenstock (hal.rosenstock-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org)

> This is picked up by libosmcomp.so
 
Is this a new library built as part of opensm?

I'm trying to update the windows build and haven't followed the changes recently.  Why are the diags dependent on error types outside of what ibmad reports?
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: ib-diags and ib_get_err_str
       [not found]         ` <1828884A29C6694DAF28B7E6B8A8237313702677-P5GAC/sN6hmkrb+BlOpmy7fspsVTdybXVpNB7YpNyf8@public.gmane.org>
@ 2011-08-06  0:17           ` Ira Weiny
       [not found]             ` <20110805171700.df2f3080.weiny2-i2BcT+NCU+M@public.gmane.org>
  0 siblings, 1 reply; 6+ messages in thread
From: Ira Weiny @ 2011-08-06  0:17 UTC (permalink / raw)
  To: Hefty, Sean
  Cc: linux-rdma (linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org),
	Hal Rosenstock (hal.rosenstock-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org)

On Fri, 5 Aug 2011 16:57:02 -0700
"Hefty, Sean" <sean.hefty-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> wrote:

> > This is picked up by libosmcomp.so
>  
> Is this a new library built as part of opensm?

opensm-libs is the specific package.

I don't think it is that new.

> 
> I'm trying to update the windows build and haven't followed the changes recently.  Why are the diags dependent on error types outside of what ibmad reports?

I am not quite sure at the moment.  This function has been used in saquery since the beginning of the git tree.  Also there are other needs for libosmcomp (cl_qmap and node name map support for example.)  Although I would like to see the dependency (on opensm-libs) removed it will take more than that function.

Ira

-- 
Ira Weiny
Math Programmer/Computer Scientist
Lawrence Livermore National Lab
925-423-8008
weiny2-i2BcT+NCU+M@public.gmane.org
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: ib-diags and ib_get_err_str
       [not found]             ` <20110805171700.df2f3080.weiny2-i2BcT+NCU+M@public.gmane.org>
@ 2011-08-08  6:09               ` Hal Rosenstock
       [not found]                 ` <4E3F7D9F.9050101-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
  0 siblings, 1 reply; 6+ messages in thread
From: Hal Rosenstock @ 2011-08-08  6:09 UTC (permalink / raw)
  To: Ira Weiny
  Cc: Hefty, Sean,
	linux-rdma (linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org),
	Hal Rosenstock (hal.rosenstock-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org)

On 8/5/2011 8:17 PM, Ira Weiny wrote:
> On Fri, 5 Aug 2011 16:57:02 -0700
> "Hefty, Sean" <sean.hefty-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> wrote:
> 
>>> This is picked up by libosmcomp.so
>>  
>> Is this a new library built as part of opensm?
> 
> opensm-libs is the specific package.
> 
> I don't think it is that new.

It's not new. It's built as part of the OpenSM. Mainly osm_helper and
maybe a few other things (common code for perhaps more than OpenSM).

> 
>>
>> I'm trying to update the windows build and haven't followed the changes recently.  Why are the diags dependent on error types outside of what ibmad reports?
> 
> I am not quite sure at the moment.  This function has been used in saquery since the beginning of the git tree.

saquery may have been added some time back in the svn days. AFAIR it was
the first diag which had this dependency. It was decided to use some
code which could be common in SA and SA client which is what saquery is.

  Also there are other needs for libosmcomp (cl_qmap and node name map
support for example.)  Although I would like to see the dependency (on
opensm-libs) removed it will take more than that function.

I don't know how far this dependency goes (did it creep into any other
diags) ? It could be eliminated (perhaps cleaner that way) at the "cost"
of some logically duplicated code.

-- Hal


> Ira
> 

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 6+ messages in thread

* RE: ib-diags and ib_get_err_str
       [not found]                 ` <4E3F7D9F.9050101-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
@ 2011-08-08 14:41                   ` Hefty, Sean
  0 siblings, 0 replies; 6+ messages in thread
From: Hefty, Sean @ 2011-08-08 14:41 UTC (permalink / raw)
  To: Hal Rosenstock, Ira Weiny
  Cc: linux-rdma (linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org),
	Hal Rosenstock (hal.rosenstock-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org)

> It's not new. It's built as part of the OpenSM. Mainly osm_helper and
> maybe a few other things (common code for perhaps more than OpenSM).

I see that it has been there for a while.  It looks like the diags were picking it up from ibal.dll on windows.  I'm not sure why updating the diags created a problem with it now.  (No big deal, I just need to figure it out.)  I just don't understand why the diags need those error codes.

- Sean
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2011-08-08 14:41 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-05 23:31 ib-diags and ib_get_err_str Hefty, Sean
     [not found] ` <1828884A29C6694DAF28B7E6B8A8237313702643-P5GAC/sN6hmkrb+BlOpmy7fspsVTdybXVpNB7YpNyf8@public.gmane.org>
2011-08-05 23:51   ` Ira Weiny
     [not found]     ` <20110805165122.1b508a84.weiny2-i2BcT+NCU+M@public.gmane.org>
2011-08-05 23:57       ` Hefty, Sean
     [not found]         ` <1828884A29C6694DAF28B7E6B8A8237313702677-P5GAC/sN6hmkrb+BlOpmy7fspsVTdybXVpNB7YpNyf8@public.gmane.org>
2011-08-06  0:17           ` Ira Weiny
     [not found]             ` <20110805171700.df2f3080.weiny2-i2BcT+NCU+M@public.gmane.org>
2011-08-08  6:09               ` Hal Rosenstock
     [not found]                 ` <4E3F7D9F.9050101-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
2011-08-08 14:41                   ` Hefty, Sean

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox