srs-enb: adds support to the malloc interceptor.
Adds support to the malloc interceptor for the SRS eNodeB. This interceptor will generate a log file that lists the mallocs, reallocs and frees produced by the srsenb.
Change-Id: I0078020468f58bdd70b0b5de879eb58192f947a6
diff --git a/src/osmo_gsm_tester/obj/run_node.py b/src/osmo_gsm_tester/obj/run_node.py
index 676c262..3549fc5 100644
--- a/src/osmo_gsm_tester/obj/run_node.py
+++ b/src/osmo_gsm_tester/obj/run_node.py
@@ -30,7 +30,7 @@
T_LOCAL = 'local'
T_REM_SSH = 'ssh'
- def __init__(self, type=None, run_addr=None, ssh_user=None, ssh_addr=None, run_label=None, label=None, ssh_port=None, adb_serial_id=None):
+ def __init__(self, type=None, run_addr=None, ssh_user=None, ssh_addr=None, run_label=None, label=None, ssh_port=None, adb_serial_id=None, lib_path_malloc_interceptor=None):
super().__init__(log.C_RUN, 'runnode')
self._type = type
self._run_addr = run_addr
@@ -40,6 +40,7 @@
self._label = label
self._ssh_port = ssh_port
self._adb_serial_id = adb_serial_id
+ self._lib_path_malloc_interceptor = lib_path_malloc_interceptor
if not self._type:
raise log.Error('run_type not set')
if not self._run_addr:
@@ -59,7 +60,8 @@
return cls(conf.get('run_type', None), conf.get('run_addr', None),
conf.get('ssh_user', None), conf.get('ssh_addr', None),
conf.get('run_label', None), conf.get('label', None),
- conf.get('ssh_port', None), conf.get('adb_serial_id', None))
+ conf.get('ssh_port', None), conf.get('adb_serial_id', None),
+ conf.get('lib_path_malloc_interceptor', None))
@classmethod
def schema(cls):
@@ -72,6 +74,7 @@
'label': schema.STR,
'ssh_port': schema.STR,
'adb_serial_id': schema.STR,
+ 'lib_path_malloc_interceptor': schema.STR,
}
return resource_schema
@@ -105,4 +108,7 @@
def adb_serial_id(self):
return self._adb_serial_id
+ def lib_path_malloc_interceptor(self):
+ return self._lib_path_malloc_interceptor
+
# vim: expandtab tabstop=4 shiftwidth=4