From patchwork Thu Apr 8 13:30:12 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yevgeny Kliteynik X-Patchwork-Id: 91271 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 o38DT3NA009273 for ; Thu, 8 Apr 2010 13:30:28 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758615Ab0DHNa2 (ORCPT ); Thu, 8 Apr 2010 09:30:28 -0400 Received: from mail.mellanox.co.il ([194.90.237.43]:51544 "EHLO mellanox.co.il" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750771Ab0DHNa1 (ORCPT ); Thu, 8 Apr 2010 09:30:27 -0400 Received: from Internal Mail-Server by MTLPINE1 (envelope-from kliteyn@dev.mellanox.co.il) with SMTP; 8 Apr 2010 16:30:23 +0300 Received: from [10.4.1.29] ([10.4.1.29]) by mtlexch01.mtl.com with Microsoft SMTPSVC(6.0.3790.3959); Thu, 8 Apr 2010 16:30:22 +0300 Message-ID: <4BBDDA64.1060603@dev.mellanox.co.il> Date: Thu, 08 Apr 2010 16:30:12 +0300 From: Yevgeny Kliteynik User-Agent: Thunderbird 1.5.0.5 (X11/20060719) MIME-Version: 1.0 To: Sasha Khapyorsky CC: Linux RDMA , Jim Schut Subject: [PATCH 3/4] opensm: dump PRs after every heavy sweep and after reroute X-OriginalArrivalTime: 08 Apr 2010 13:30:22.0925 (UTC) FILETIME=[A4054FD0:01CAD71F] X-TM-AS-Product-Ver: SMEX-8.0.0.1181-6.000.1038-17306.007 X-TM-AS-Result: No--4.430400-8.000000-31 X-TM-AS-User-Approved-Sender: No X-TM-AS-User-Blocked-Sender: No 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, 08 Apr 2010 13:30:29 +0000 (UTC) diff --git a/opensm/opensm/osm_dump.c b/opensm/opensm/osm_dump.c index 86e9c00..cedff24 100644 --- a/opensm/opensm/osm_dump.c +++ b/opensm/opensm/osm_dump.c @@ -634,6 +634,9 @@ void osm_dump_all(osm_opensm_t * osm) osm_dump_qmap_to_file(osm, "opensm-subnet.lst", &osm->subn.node_guid_tbl, dump_topology_node, osm); + if (osm->subn.opt.path_rec_dump) + osm_sa_path_records_file_dump(osm); + if (osm_log_is_active(&osm->log, OSM_LOG_VERBOSE)) print_report(osm, stdout); } diff --git a/opensm/opensm/osm_state_mgr.c b/opensm/opensm/osm_state_mgr.c index e43463f..e32ff18 100644 --- a/opensm/opensm/osm_state_mgr.c +++ b/opensm/opensm/osm_state_mgr.c @@ -1149,6 +1149,8 @@ static void do_sweep(osm_sm_t * sm) return; if (!sm->p_subn->subnet_initialization_error) { + if (sm->p_subn->opt.path_rec_dump) + osm_sa_path_records_file_dump(sm->p_subn->p_osm); OSM_LOG_MSG_BOX(sm->p_log, OSM_LOG_VERBOSE, "REROUTE COMPLETE"); return;