[ofw] patch: Decrease the time it takes to compile opensm

Tzachi Dar tzachid at mellanox.co.il
Wed Nov 26 05:41:33 PST 2008


Applied on version 1769.
 
Thanks
Tzachi


________________________________

	From: ofw-bounces at lists.openfabrics.org
[mailto:ofw-bounces at lists.openfabrics.org] On Behalf Of Tzachi Dar
	Sent: Sunday, November 23, 2008 3:35 PM
	To: ofw at lists.openfabrics.org
	Subject: [ofw] patch: Decrease the time it takes to compile
opensm
	
	
	The following patch decreases the time that is needed in order
to compile opensm from 50 seconds to about 5 seconds.
	(this assumes that files are already in the cache).
	 
	A better solution would have been to use precompiled headers.
Since this requires changes to every source file, I choose not to
implement this since we want to keep the files aligned also with the
Linux code.
	 
	Thanks
	Tzachi
	 
	Index: Q:/projinf4/trunk/ulp/opensm/user/opensm/osm_files.c
	
===================================================================
	--- Q:/projinf4/trunk/ulp/opensm/user/opensm/osm_files.c
(revision 0)
	+++ Q:/projinf4/trunk/ulp/opensm/user/opensm/osm_files.c
(revision 3544)
	@@ -0,0 +1,126 @@
	+#include <osm_db_files.c>
	+#include <osm_db_pack.c>
	+#include <osm_fwd_tbl.c>
	+#include <osm_inform.c>
	+#include <osm_lid_mgr.c>
	+#include <osm_lin_fwd_rcv.c>
	+#include <osm_lin_fwd_rcv_ctrl.c>
	+#include <osm_lin_fwd_tbl.c>
	+
	+#include <osm_link_mgr.c>
	+#include <osm_matrix.c>
	+#include <osm_mcast_fwd_rcv.c>
	+#include <osm_mcast_fwd_rcv_ctrl.c>
	+#include <osm_mcast_mgr.c>
	+#include <osm_mcast_tbl.c>
	+#include <osm_mcm_info.c>
	+#include <osm_mcm_port.c>
	+#include <osm_mtree.c>
	+#include <osm_multicast.c>
	+#include <osm_node.c>
	+#include <osm_node_desc_rcv.c>
	+#include <osm_node_desc_rcv_ctrl.c>
	+#include <osm_node_info_rcv.c>
	+#include <osm_node_info_rcv_ctrl.c>
	+#include <osm_opensm.c>
	+#include <osm_pkey.c>
	+#include <osm_pkey_mgr.c>
	+#include <osm_prtn.c>
	+#include <osm_pkey_rcv.c>
	+#include <osm_pkey_rcv_ctrl.c>
	+#include <osm_qos.c>
	+#include <osm_port.c>
	+#include <osm_port_info_rcv.c>
	+#include <osm_port_info_rcv_ctrl.c>
	+#include <osm_remote_sm.c>
	+#include <osm_req.c>
	+#include <osm_req_ctrl.c>
	+#include <osm_resp.c>
	+#include <osm_sa.c>
	+#include <osm_router.c>
	+#include <osm_sa_class_port_info.c>
	+#include <osm_sa_class_port_info_ctrl.c>
	+#include <osm_sa_guidinfo_record.c>
	+#include <osm_sa_guidinfo_record_ctrl.c>
	+#include <osm_sa_informinfo.c>
	+#include <osm_sa_informinfo_ctrl.c>
	+#include <osm_sa_lft_record.c>
	+#include <osm_sa_lft_record_ctrl.c>
	+#include <osm_sa_link_record.c>
	+#include <osm_sa_link_record_ctrl.c>
	+
	+#include <osm_sa_mad_ctrl.c>
	+
	+#include <osm_sa_mcmember_record_ctrl.c>
	+
	+#include <osm_sa_mft_record.c>
	+
	+#include <osm_sa_mft_record_ctrl.c>
	+
	+#include <osm_sa_node_record.c>
	+
	+#include <osm_sa_node_record_ctrl.c>
	+
	+#include <osm_sa_path_record_ctrl.c>
	+
	+#include <osm_sa_pkey_record.c>
	+
	+#include <osm_sa_pkey_record_ctrl.c>
	+
	+#include <osm_sa_portinfo_record.c>
	+
	+#include <osm_sa_portinfo_record_ctrl.c>
	+
	+#include <osm_sa_response.c>
	+
	+#include <osm_sa_service_record.c>
	+
	+#include <osm_sa_service_record_ctrl.c>
	+
	+#include <osm_sa_slvl_record.c>
	+
	+#include <osm_sa_slvl_record_ctrl.c>
	+
	+#include <osm_sa_sminfo_record.c>
	+
	+#include <osm_sa_sminfo_record_ctrl.c>
	+
	+#include <osm_sa_sw_info_record.c>
	+
	+#include <osm_sa_sw_info_record_ctrl.c>
	+
	+#include <osm_sa_vlarb_record.c>
	+
	+#include <osm_sa_vlarb_record_ctrl.c>
	+
	+#include <osm_service.c>
	+
	+#include <osm_slvl_map_rcv.c>
	+
	+#include <osm_slvl_map_rcv_ctrl.c>
	+
	+#include <osm_sm.c>
	+#include <osm_sminfo_rcv.c>
	+#include <osm_sminfo_rcv_ctrl.c>
	+#include <osm_sm_mad_ctrl.c>
	+#include <osm_sm_state_mgr.c>
	+#include <osm_state_mgr.c>
	+#include <osm_state_mgr_ctrl.c>
	+#include <osm_subnet.c>
	+#include <osm_sweep_fail_ctrl.c>
	+#include <osm_sw_info_rcv.c>
	+#include <osm_sw_info_rcv_ctrl.c>
	+#include <osm_switch.c>
	+#include <osm_trap_rcv.c>
	+#include <osm_trap_rcv_ctrl.c>
	+#include <osm_ucast_mgr.c>
	+#include <osm_ucast_updn.c>
	+#include <osm_ucast_file.c>
	+#include <osm_ucast_ftree.c>
	+#include <osm_vl15intf.c>
	+#include <osm_vl_arb_rcv.c>
	+#include <osm_vl_arb_rcv_ctrl.c>
	+#include <st.c>
	+#include <main.c>
	+#include <cl_event_wheel.c>
	+#include <cl_dispatcher.c>
	Index: Q:/projinf4/trunk/ulp/opensm/user/opensm/SOURCES
	
===================================================================
	--- Q:/projinf4/trunk/ulp/opensm/user/opensm/SOURCES (revision
3543)
	+++ Q:/projinf4/trunk/ulp/opensm/user/opensm/SOURCES (revision
3544)
	@@ -18,109 +18,11 @@
	 SOURCES=\
	         osm.mc \
	         opensm.rc \
	-        osm_db_files.c \
	-        osm_db_pack.c \
	-        osm_drop_mgr.c \
	-        osm_fwd_tbl.c \
	-        osm_inform.c \
	-        osm_lid_mgr.c \
	-        osm_lin_fwd_rcv.c \
	-        osm_lin_fwd_rcv_ctrl.c \
	-        osm_lin_fwd_tbl.c \
	-        osm_link_mgr.c \
	-        osm_matrix.c \
	-        osm_mcast_fwd_rcv.c \
	-        osm_mcast_fwd_rcv_ctrl.c \
	-        osm_mcast_mgr.c \
	-        osm_mcast_tbl.c \
	-        osm_mcm_info.c \
	-        osm_mcm_port.c \
	-        osm_mtree.c \
	-        osm_multicast.c \
	-        osm_node.c \
	-        osm_node_desc_rcv.c \
	-        osm_node_desc_rcv_ctrl.c \
	-        osm_node_info_rcv.c \
	-        osm_node_info_rcv_ctrl.c \
	-        osm_opensm.c \
	-        osm_pkey.c \
	-        osm_pkey_mgr.c \
	-        osm_prtn.c \
	-        osm_prtn_config.c \
	-        osm_pkey_rcv.c \
	-        osm_pkey_rcv_ctrl.c \
	-        osm_qos.c \
	-        osm_port.c \
	-        osm_port_info_rcv.c \
	-        osm_port_info_rcv_ctrl.c \
	-        osm_remote_sm.c \
	-        osm_req.c \
	-        osm_req_ctrl.c \
	-        osm_resp.c \
	-        osm_sa.c \
	-        osm_router.c \
	-        osm_sa_class_port_info.c \
	-        osm_sa_class_port_info_ctrl.c \
	-        osm_sa_guidinfo_record.c \
	-        osm_sa_guidinfo_record_ctrl.c \
	-        osm_sa_informinfo.c \
	-        osm_sa_informinfo_ctrl.c \
	-        osm_sa_lft_record.c \
	-        osm_sa_lft_record_ctrl.c \
	-        osm_sa_link_record.c \
	-        osm_sa_link_record_ctrl.c \
	-        osm_sa_mad_ctrl.c \
	-        osm_sa_mcmember_record.c \
	-        osm_sa_mcmember_record_ctrl.c \
	-        osm_sa_mft_record.c \
	-        osm_sa_mft_record_ctrl.c \
	-        osm_sa_node_record.c \
	-        osm_sa_node_record_ctrl.c \
	-        osm_sa_path_record.c \
	-        osm_sa_path_record_ctrl.c \
	-        osm_sa_pkey_record.c \
	-        osm_sa_pkey_record_ctrl.c \
	-        osm_sa_portinfo_record.c \
	-        osm_sa_portinfo_record_ctrl.c \
	-        osm_sa_response.c \
	-        osm_sa_service_record.c \
	-        osm_sa_service_record_ctrl.c \
	-        osm_sa_slvl_record.c \
	-        osm_sa_slvl_record_ctrl.c \
	-        osm_sa_sminfo_record.c \
	-        osm_sa_sminfo_record_ctrl.c \
	-        osm_sa_sw_info_record.c \
	-        osm_sa_sw_info_record_ctrl.c \
	-        osm_sa_vlarb_record.c \
	-        osm_sa_vlarb_record_ctrl.c \
	-        osm_service.c \
	-        osm_slvl_map_rcv.c \
	-        osm_slvl_map_rcv_ctrl.c \
	-        osm_sm.c \
	-        osm_sminfo_rcv.c \
	-        osm_sminfo_rcv_ctrl.c \
	-        osm_sm_mad_ctrl.c \
	-        osm_sm_state_mgr.c \
	-        osm_state_mgr.c \
	-        osm_state_mgr_ctrl.c \
	-        osm_subnet.c \
	-        osm_sweep_fail_ctrl.c \
	-        osm_sw_info_rcv.c \
	-        osm_sw_info_rcv_ctrl.c \
	-        osm_switch.c \
	-        osm_trap_rcv.c \
	-        osm_trap_rcv_ctrl.c \
	-        osm_ucast_mgr.c \
	-        osm_ucast_updn.c \
	-        osm_ucast_file.c \
	-        osm_ucast_ftree.c \
	-        osm_vl15intf.c \
	-        osm_vl_arb_rcv.c \
	-        osm_vl_arb_rcv_ctrl.c \
	-        st.c \
	-        main.c \
	-        cl_event_wheel.c \
	-        cl_dispatcher.c
	+ osm_files.c\
	+ osm_drop_mgr.c\
	+        osm_prtn_config.c\
	+        osm_sa_mcmember_record.c\
	+        osm_sa_path_record.c\
	 
	 OSM_HOME=..
	 
	

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openfabrics.org/pipermail/ofw/attachments/20081126/237ad624/attachment.html>


More information about the ofw mailing list