[PATCH skeleton 09/15] add introspect=False to get_object calls for performance

OpenBMC Patches openbmc-patches at stwcx.xyz
Sat Dec 19 10:40:29 AEDT 2015


From: Norman James <njames at us.ibm.com>

---
 bin/chassis_control.py | 2 +-
 bin/fan_control.py     | 2 +-
 bin/obmcutil           | 2 +-
 bin/system_manager.py  | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/bin/chassis_control.py b/bin/chassis_control.py
index aa656fd..8ae0f55 100755
--- a/bin/chassis_control.py
+++ b/bin/chassis_control.py
@@ -69,7 +69,7 @@ class ChassisControlObject(Openbmc.DbusProperties,Openbmc.DbusObjectManager):
 
 	def getInterface(self,name):
 		o = self.dbus_objects[name]
-		obj = bus.get_object(o['bus_name'],o['object_name'])
+		obj = bus.get_object(o['bus_name'],o['object_name'],introspect=False)
 		return dbus.Interface(obj,o['interface_name'])
 
 
diff --git a/bin/fan_control.py b/bin/fan_control.py
index 1a528fd..bb070e5 100755
--- a/bin/fan_control.py
+++ b/bin/fan_control.py
@@ -34,7 +34,7 @@ class FanControl(Openbmc.DbusProperties,Openbmc.DbusObjectManager):
 		## create interface proxies to all fans
 		for fan in FAN_OBJS:
 			print "Initializing fan: "+fan
-			obj = bus.get_object(FAN_BUS,fan)
+			obj = bus.get_object(FAN_BUS,fan,introspect=False)
 			self.fan_intf.append(dbus.Interface(obj,FAN_IFACE))
 		self.InterfacesAdded(name,self.properties)
 			
diff --git a/bin/obmcutil b/bin/obmcutil
index e63fa27..55b5e2d 100755
--- a/bin/obmcutil
+++ b/bin/obmcutil
@@ -175,7 +175,7 @@ elif (len(sys.argv)>0):
 bus_name = objinfo['bus_name']
 obj_path = objinfo['object_name']
 intf_name = objinfo['interface_name']
-obj = bus.get_object(bus_name,obj_path)
+obj = bus.get_object(bus_name,obj_path,introspect=False)
 
 if (method_name != ""):
 	methd = obj.get_dbus_method(method_name,intf_name)
diff --git a/bin/system_manager.py b/bin/system_manager.py
index 63e2319..004d978 100755
--- a/bin/system_manager.py
+++ b/bin/system_manager.py
@@ -86,7 +86,7 @@ class SystemManager(Openbmc.DbusProperties,Openbmc.DbusObjectManager):
 		try:	
 			cb = System.ENTER_STATE_CALLBACK[state_name]
 			for methd in cb.keys():
-				obj = bus.get_object(cb[methd]['bus_name'],cb[methd]['obj_name'])
+				obj = bus.get_object(cb[methd]['bus_name'],cb[methd]['obj_name'],introspect=False)
 				method = obj.get_dbus_method(methd,cb[methd]['interface_name'])
 				method()
 		except:
-- 
2.6.3




More information about the openbmc mailing list