50 bkg_libs = loaded_libs()
52 vmem0,vmem1,libs = load_lib (libname)
53 dVmemOffset = vmem1-vmem0
55 linked_libs = [os.path.basename(lib)
57 if (
not (lib
in bkg_libs)
and
58 os.path.basename(lib) != os.path.basename(libname)
59 and os.access(lib, os.R_OK))]
63 def load_linked_in_libs(linked_libs):
69 except Exception
as err:
70 print (
"** problem loading [%s]\n%s" % (l,err))
76 for _
in range(NRETRY):
77 ok = load_linked_in_libs(linked_libs)
81 print (
"** err: could not reliably load all libs (after %s retries)"%NRETRY)
85 vmem0,vmem1,libs = load_lib (libname)
87 dVmemLib = vmem1-vmem0
88 return (dVmemLib, dVmemOffset, len(linked_libs), len(bkg_libs))