Example #1
0
 def __init__(self, top, target, param, cell_config, mem_utils, task_utils,
              context_manager, lgr):
     self.cell_config = cell_config
     self.top = top
     self.target = target
     self.context_manager = context_manager
     self.param = param
     self.mem_utils = mem_utils
     self.task_utils = task_utils
     self.lgr = lgr
     self.exit_break = {}
     self.exit_break2 = {}
     self.exit_hap = {}
     self.exit_hap2 = {}
     self.task_rec_break = {}
     self.task_rec_hap = {}
     self.pdir_break = None
     self.pdir_hap = None
     self.ptable_break = None
     self.ptable_hap = None
     self.stop_hap = None
     self.stop_skip_hap = None
     self.cpu = self.cell_config.cpuFromCell(target)
     self.cell = self.cell_config.cell_context[target]
     self.page_entry_size = pageUtils.getPageEntrySize(self.cpu)
     self.faulted_pages = {}
     self.fault_hap = None
     self.exception_hap = None
     self.exception_eip = None
     self.debugging_pid = None
     self.faulting_cycles = []
     self.fault_hap1 = None
     self.fault_hap2 = None
Example #2
0
 def __init__(self, top, target, param, cell_config, mem_utils, task_utils,
              context_manager, lgr):
     self.cell_config = cell_config
     self.top = top
     self.target = target
     self.context_manager = context_manager
     self.param = param
     self.mem_utils = mem_utils
     self.task_utils = task_utils
     self.lgr = lgr
     self.exit_break = {}
     self.exit_break2 = {}
     self.exit_hap = {}
     self.exit_hap2 = {}
     self.task_rec_break = {}
     self.task_rec_hap = {}
     self.pdir_break = None
     self.pdir_hap = None
     self.ptable_break = None
     self.ptable_hap = None
     self.stop_hap = None
     self.stop_skip_hap = None
     self.cpu = self.cell_config.cpuFromCell(target)
     self.cell = self.cell_config.cell_context[target]
     self.page_entry_size = pageUtils.getPageEntrySize(self.cpu)
     self.faulted_pages = {}
     self.fault_hap = None
     self.exception_eip = None
     self.debugging_pid = None
     self.faulting_cycles = []
     self.fault_hap1 = None
     self.fault_hap2 = None
     self.fault_hap_return = None
     self.exception_hap = None
     self.exception_hap2 = None
     self.pending_faults = {}
     ''' hack to tell context manager to call back to PageFaultGen on context switches to watched processes '''
     context_manager.callMe(self)