pcp
[Top] [All Lists]

Re: [pcp] updated infiniband pmda

To: Nathan Scott <nathans@xxxxxxxxxx>
Subject: Re: [pcp] updated infiniband pmda
From: Martins Innus <minnus@xxxxxxxxxxx>
Date: Tue, 01 Jul 2014 13:23:44 -0400
Cc: pcp@xxxxxxxxxxx
Delivered-to: pcp@xxxxxxxxxxx
In-reply-to: <1097508451.33910731.1403758163030.JavaMail.zimbra@xxxxxxxxxx>
References: <53A998F1.4050003@xxxxxxxxxxx> <1097508451.33910731.1403758163030.JavaMail.zimbra@xxxxxxxxxx>
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:24.0) Gecko/20100101 Thunderbird/24.6.0
Nathan,

On 6/26/14, 12:49 AM, Nathan Scott wrote:

-    pst->needupdate = 3; /* 0x1 for portinfo, 0x2 for perfdata */
+    pst->needupdate = 11; /* 0x1 for portinfo, 0x2 for perfdata, 0x8 for switch

e.g. pst->needupdate = IB_PORTINFO | IB_PERFDATA | IB_SWITCH

(with appropriate #defines, better names, etc)

OK, done.


gcc -fPIC -fno-strict-aliasing -D_GNU_SOURCE -fstack-protector-all -D_FORTIFY_SOURCE=2  
-Wall -g -DPCP_DEBUG -DPCP_VERSION=\"3.9.7\" -I../../../src/include 
-I../../../src/include/pcp   -c -o ib.o ib.c
ib.c: In function âib_fetch_valâ:
ib.c:666: warning: pointer targets in passing argument 1 of âmad_decode_fieldâ 
differ in signedness
/usr/include/infiniband/mad.h:1170: note: expected âuint8_t *â but argument is of type 
âchar *â
ib.c:667: warning: pointer targets in passing argument 1 of âmad_decode_fieldâ 
differ in signedness
/usr/include/infiniband/mad.h:1170: note: expected âuint8_t *â but argument is of type 
âchar *â
ib.c:893: warning: pointer targets in passing argument 1 of âmad_decode_fieldâ 
differ in signedness
/usr/include/infiniband/mad.h:1170: note: expected âuint8_t *â but argument is of type 
âchar *â
ib.c:899: warning: pointer targets in passing argument 1 of âmad_decode_fieldâ 
differ in signedness
/usr/include/infiniband/mad.h:1170: note: expected âuint8_t *â but argument is of type 
âchar *â
ib.c:904: warning: pointer targets in passing argument 1 of âmad_decode_fieldâ 
differ in signedness
/usr/include/infiniband/mad.h:1170: note: expected âuint8_t *â but argument is of type 
âchar *â
ib.c:910: warning: pointer targets in passing argument 1 of âmad_decode_fieldâ 
differ in signedness
/usr/include/infiniband/mad.h:1170: note: expected âuint8_t *â but argument is of type 
âchar *â
ib.c:917: warning: pointer targets in passing argument 1 of âmad_decode_fieldâ 
differ in signedness
/usr/include/infiniband/mad.h:1170: note: expected âuint8_t *â but argument is of type 
âchar *â
ib.c:919: warning: pointer targets in passing argument 1 of âmad_decode_fieldâ 
differ in signedness
/usr/include/infiniband/mad.h:1170: note: expected âuint8_t *â but argument is of type 
âchar *â
ib.c:927: warning: pointer targets in passing argument 1 of âmad_decode_fieldâ 
differ in signedness
/usr/include/infiniband/mad.h:1170: note: expected âuint8_t *â but argument is of type 
âchar *â
ib.c:929: warning: pointer targets in passing argument 1 of âmad_decode_fieldâ 
differ in signedness
/usr/include/infiniband/mad.h:1170: note: expected âuint8_t *â but argument is of type 
âchar *â
Fixed.

Also included the help file.

Thanks

Martins

Attachment: help
Description: Text document

Attachment: ib.c
Description: Text document

Attachment: ibpmda.h
Description: Text document

<Prev in Thread] Current Thread [Next in Thread>