Esempio n. 1
0
  def __init__(self, label_mgr, cfg):
    self.label_mgr = label_mgr
    self.cfg = cfg
    self.data_dir = cfg.data_dir

    # map of registered libs: name -> AmigaLibrary
    self.vamos_libs = {}
    # map of opened libs: base_addr -> AmigaLibrary
    self.open_libs_addr = {}
    self.open_libs_name = {}

    # use fast call? -> if lib logging level is ERROR or OFF
    self.log_call = log_lib.isEnabledFor(logging.INFO)
    self.log_dummy_call = log_lib.isEnabledFor(logging.WARN)
    self.benchmark = cfg.benchmark

    # libs will accumulate this if benchmarking is enabled
    self.bench_total = 0.0

    # --- config for auto lib ---
    # black and white list for auto creation of libs
    # (use sane or normal name)
    self.black_list = []
    self.white_list = ['icon.library']
    self.auto_create = False
Esempio n. 2
0
  def __init__(self, label_mgr, cfg):
    self.label_mgr = label_mgr
    self.cfg = cfg
    self.data_dir = cfg.data_dir

    # map of registered libs: name -> AmigaLibrary
    self.vamos_libs = {}
    # map of opened libs: base_addr -> AmigaLibrary
    self.open_libs_addr = {}
    self.open_libs_name = {}

    # use fast call? -> if lib logging level is ERROR or OFF
    self.log_call = log_lib.isEnabledFor(logging.INFO)
    self.log_dummy_call = log_lib.isEnabledFor(logging.WARN)
    self.benchmark = cfg.benchmark

    # libs will accumulate this if benchmarking is enabled
    self.bench_total = 0.0

    # --- config for auto lib ---
    # black and white list for auto creation of libs
    # (use sane or normal name)
    #self.black_list = []
    #self.white_list = ['icon.library']
    self.auto_create = False
Esempio n. 3
0
  def __init__(self, label_mgr, cfg):
    self.label_mgr = label_mgr
    self.cfg = cfg
    self.data_dir = cfg.data_dir

    # map of registered libs: name -> AmigaLibrary
    self.vamos_libs = {}
    # map of opened libs: base_addr -> AmigaLibrary
    self.open_libs_addr = {}
    self.open_libs_name = {}

    # use fast call? -> if lib logging level is ERROR or OFF
    self.log_call = log_lib.isEnabledFor(logging.INFO)
    self.log_dummy_call = log_lib.isEnabledFor(logging.WARN)
    self.benchmark = cfg.benchmark

    # libs will accumulate this if benchmarking is enabled
    self.bench_total = 0.0
Esempio n. 4
0
 def __init__(self, label_mgr):
   self.label_mgr = label_mgr
   self.int_lib_classes = {}
   self.int_libs = {}
   self.int_addr_map = {}
   self.native_libs = {}
   self.native_addr_map = {}
   self.lib_trap_table = []
   
   # use fast call? -> if lib logging level is ERROR or OFF
   self.fast_call = not log_lib.isEnabledFor(logging.WARN)
Esempio n. 5
0
    def __init__(self, label_mgr):
        self.label_mgr = label_mgr
        self.int_lib_classes = {}
        self.int_libs = {}
        self.int_addr_map = {}
        self.native_libs = {}
        self.native_addr_map = {}
        self.lib_trap_table = []

        # use fast call? -> if lib logging level is ERROR or OFF
        self.fast_call = not log_lib.isEnabledFor(logging.WARN)
Esempio n. 6
0
    def __init__(self, label_mgr, lib_reg, ctx_map, cfg, error_tracker):
        self.label_mgr = label_mgr
        self.lib_reg = lib_reg
        self.ctx_map = ctx_map
        self.cfg = cfg
        self.error_tracker = error_tracker
        self.data_dir = cfg.data_dir

        # map of opened libs: base_addr -> AmigaLibrary
        self.open_libs_addr = {}
        self.open_libs_name = {}

        # use fast call? -> if lib logging level is ERROR or OFF
        self.log_call = log_lib.isEnabledFor(logging.INFO)
        self.log_dummy_call = log_lib.isEnabledFor(logging.WARN)
        self.benchmark = cfg.benchmark

        # libs will accumulate this if benchmarking is enabled
        self.bench_total = 0.0

        # my context: exec.library
        self.my_ctx = ctx_map.get_ctx('exec.library')