From patchwork Thu May 6 18:30:02 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Heinz X-Patchwork-Id: 97424 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o46IRgsd009165 for ; Thu, 6 May 2010 18:30:06 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754576Ab0EFSaF (ORCPT ); Thu, 6 May 2010 14:30:05 -0400 Received: from avexcashub1.qlogic.com ([198.70.193.61]:29841 "EHLO avexcashub1.qlogic.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752130Ab0EFSaF convert rfc822-to-8bit (ORCPT ); Thu, 6 May 2010 14:30:05 -0400 Received: from MNEXCASHUB1.qlogic.org (10.33.2.103) by avexcashub1.qlogic.org (10.1.4.161) with Microsoft SMTP Server (TLS) id 8.1.375.2; Thu, 6 May 2010 11:30:04 -0700 Received: from MNEXMB1.qlogic.org ([fe80::c6b:fda:afec:79a1]) by MNEXCASHUB1.qlogic.org ([::1]) with mapi; Thu, 6 May 2010 13:30:04 -0500 From: Mike Heinz To: Mike Heinz , Sasha Khapyorsky , "linux-rdma@vger.kernel.org" , "ewg@openfabrics.org" Date: Thu, 6 May 2010 13:30:02 -0500 Subject: RE: [PATCH] management: adding mad_dump_fields to libibmad Thread-Topic: [PATCH] management: adding mad_dump_fields to libibmad Thread-Index: AcrtSb9AJN60kNkbS62MpePZ8Rjs7QAABN1Q Message-ID: <4C2744E8AD2982428C5BFE523DF8CDCB49A4740CD9@MNEXMB1.qlogic.org> References: <4C2744E8AD2982428C5BFE523DF8CDCB49A4740CD8@MNEXMB1.qlogic.org> In-Reply-To: <4C2744E8AD2982428C5BFE523DF8CDCB49A4740CD8@MNEXMB1.qlogic.org> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US MIME-Version: 1.0 Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Thu, 06 May 2010 18:30:06 +0000 (UTC) diff --git a/infiniband-diags/src/perfquery.c b/infiniband-diags/src/perfquery.c index 00ebfff..07a9226 100644 --- a/infiniband-diags/src/perfquery.c +++ b/infiniband-diags/src/perfquery.c @@ -302,7 +302,10 @@ static void dump_perfcounters(int extended, int timeout, uint16_t cap_mask, if (aggregate) aggregate_perfcounters(); else - mad_dump_perfcounters(buf, sizeof buf, pc, sizeof pc); + mad_dump_fields(buf, sizeof buf, pc, sizeof pc, + IB_PC_FIRST_F, + (cap_mask & 0x1000)?IB_PC_LAST_F:(IB_PC_RCV_PKTS_F+1)); + } else { if (!(cap_mask & 0x200)) /* 1.2 errata: bit 9 is extended counter support */ IBWARN