/scripts/gdb/linux/ |
D | mm.py | 24 def __init__(self): argument 28 self.ops = aarch64_page_ops() 33 def __init__(self): argument 34 self.SUBSECTION_SHIFT = 21 35 self.SEBSECTION_SIZE = 1 << self.SUBSECTION_SHIFT 36 self.MODULES_VSIZE = 128 * 1024 * 1024 39 self.SECTION_SIZE_BITS = 29 41 self.SECTION_SIZE_BITS = 27 42 self.MAX_PHYSMEM_BITS = constants.LX_CONFIG_ARM64_VA_BITS 44 self.PAGE_SHIFT = constants.LX_CONFIG_ARM64_PAGE_SHIFT [all …]
|
D | pgtable.py | 66 def __init__(self, cr3, page_levels): argument 67 self.cr3 = cr3 68 self.page_levels = page_levels 69 self.page_level_write_through = is_bit_defined_tupled(cr3, 3) 70 self.page_level_cache_disabled = is_bit_defined_tupled(cr3, 4) 71 self.next_entry_physical_address = cr3 & PHYSICAL_ADDRESS_MASK & page_mask() 73 def next_entry(self, va): argument 74 next_level = self.page_levels 75 … return PageHierarchyEntry(entry_va(next_level, self.next_entry_physical_address, va), next_level) 77 def mk_string(self): argument [all …]
|
D | page_owner.py | 38 def __init__(self): argument 39 super(DumpPageOwner, self).__init__("lx-dump-page-owner", gdb.COMMAND_SUPPORT) 41 def invoke(self, args, from_tty): argument 49 self.p_ops = mm.page_ops().ops 50 self.get_page_owner_info() 53 self.read_page_owner() 57 self.read_page_owner_by_addr(self.p_ops.pfn_to_page(pfn)) 63 def get_page_owner_info(self): argument 64 self.min_pfn = int(gdb.parse_and_eval("min_low_pfn")) 65 self.max_pfn = int(gdb.parse_and_eval("max_pfn")) [all …]
|
D | symbols.py | 23 def __init__(self, spec, gdb_command): argument 24 super(LoadModuleBreakpoint, self).__init__(spec, internal=True) 25 self.silent = True 26 self.gdb_command = gdb_command 28 def stop(self): argument 31 cmd = self.gdb_command 70 def __init__(self): argument 71 super(LxSymbols, self).__init__("lx-symbols", gdb.COMMAND_FILES, 74 def _update_module_files(self): argument 75 self.module_files = [] [all …]
|
D | clk.py | 26 def __init__(self): argument 27 super(LxClkSummary, self).__init__("lx-clk-summary", gdb.COMMAND_DATA) 29 def show_subtree(self, clk, level): argument 41 self.show_subtree(child, level + 1) 43 def invoke(self, arg, from_tty): argument 50 self.show_subtree(clk, 0) 52 self.show_subtree(clk, 0) 61 def __init__(self): argument 62 super(LxClkCoreLookup, self).__init__("lx_clk_core_lookup") 64 def lookup_hlist(self, hlist_head, name): argument [all …]
|
D | tasks.py | 55 def __init__(self): argument 56 super(LxTaskByPidFunc, self).__init__("lx_task_by_pid") 58 def invoke(self, pid): argument 72 def __init__(self): argument 73 super(LxPs, self).__init__("lx-ps", gdb.COMMAND_DATA) 75 def invoke(self, arg, from_tty): argument 113 def __init__(self): argument 114 super(LxThreadInfoFunc, self).__init__("lx_thread_info") 116 def invoke(self, task): argument 129 def __init__(self): argument [all …]
|
D | proc.py | 28 def __init__(self): argument 29 super(LxCmdLine, self).__init__("lx-cmdline", gdb.COMMAND_DATA) 31 def invoke(self, arg, from_tty): argument 42 def __init__(self): argument 43 super(LxVersion, self).__init__("lx-version", gdb.COMMAND_DATA) 45 def invoke(self, arg, from_tty): argument 87 def __init__(self): argument 88 super(LxIOMem, self).__init__("lx-iomem", gdb.COMMAND_DATA) 90 def invoke(self, arg, from_tty): argument 102 def __init__(self): argument [all …]
|
D | utils.py | 18 def __init__(self, name): argument 19 self._type = None 20 self._name = name 22 def _new_objfile_handler(self, event): argument 23 self._type = None 24 gdb.events.new_objfile.disconnect(self._new_objfile_handler) 26 def get_type(self): argument 27 if self._type is None: 28 self._type = gdb.lookup_type(self._name) 29 if self._type is None: [all …]
|
D | vfs.py | 33 def __init__(self): argument 34 super(DentryName, self).__init__("lx_dentry_name") 36 def invoke(self, dentry_ptr): argument 50 def __init__(self): argument 51 super(InodeDentry, self).__init__("lx_i_dentry") 53 def invoke(self, inode_ptr): argument
|
D | device.py | 100 def __init__(self): argument 101 super(LxDeviceListBus, self).__init__('lx-device-list-bus', gdb.COMMAND_DATA) 103 def invoke(self, arg, from_tty): argument 120 def __init__(self): argument 121 super(LxDeviceListClass, self).__init__('lx-device-list-class', gdb.COMMAND_DATA) 123 def invoke(self, arg, from_tty): argument 138 def __init__(self): argument 139 super(LxDeviceListTree, self).__init__('lx-device-list-tree', gdb.COMMAND_DATA) 141 def invoke(self, arg, from_tty): argument 153 def __init__(self): argument [all …]
|
D | rbtree.py | 106 def __init__(self): argument 107 super(LxRbFirst, self).__init__("lx_rb_first") 109 def invoke(self, root): argument 126 def __init__(self): argument 127 super(LxRbLast, self).__init__("lx_rb_last") 129 def invoke(self, root): argument 146 def __init__(self): argument 147 super(LxRbNext, self).__init__("lx_rb_next") 149 def invoke(self, node): argument 166 def __init__(self): argument [all …]
|
D | modules.py | 47 def __init__(self): argument 48 super(LxModule, self).__init__("lx_module") 50 def invoke(self, mod_name): argument 67 def __init__(self): argument 68 super(LxLsmod, self).__init__("lx-lsmod", gdb.COMMAND_DATA) 70 def invoke(self, arg, from_tty): argument 89 t = self._module_use_type.get_type().pointer() 111 def __init__(self): argument 112 super(LxFindTextAddrinMod, self).__init__('lx-getmod-by-textaddr', gdb.COMMAND_SUPPORT) 114 def invoke(self, arg, from_tty): argument
|
D | cpus.py | 132 def __init__(self): argument 133 super(LxCpus, self).__init__("lx-cpus", gdb.COMMAND_DATA) 135 def invoke(self, arg, from_tty): argument 152 def __init__(self): argument 153 super(PerCpu, self).__init__("lx_per_cpu") 155 def invoke(self, var_name, cpu=-1): argument 192 def __init__(self): argument 193 super(LxCurrentFunc, self).__init__("lx_current") 195 def invoke(self, cpu=-1): argument
|
D | genpd.py | 43 def __init__(self): argument 44 super(LxGenPDSummary, self).__init__('lx-genpd-summary', gdb.COMMAND_DATA) 46 def summary_one(self, genpd): argument 72 def invoke(self, arg, from_tty): argument 82 self.summary_one(genpd)
|
D | config.py | 16 def __init__(self): argument 17 super(LxConfigDump, self).__init__("lx-configdump", gdb.COMMAND_DATA, 20 def invoke(self, arg, from_tty): argument
|
D | vmalloc.py | 25 def __init__(self): argument 26 super(LxVmallocInfo, self).__init__("lx-vmallocinfo", gdb.COMMAND_DATA) 28 def invoke(self, arg, from_tty): argument
|
D | radixtree.py | 80 def __init__(self): argument 81 super(LxRadixTree, self).__init__("lx_radix_tree_lookup") 83 def invoke(self, root, index=0): argument
|
D | lists.py | 125 def __init__(self): argument 126 super(LxListChk, self).__init__("lx-list-check", gdb.COMMAND_DATA, 129 def invoke(self, arg, from_tty): argument
|
D | slab.py | 255 def __init__(self): argument 256 super(LxSlabTrace, self).__init__("lx-slabtrace", gdb.COMMAND_DATA) 258 def invoke(self, arg, from_tty): argument 321 def __init__(self): argument 322 super(LxSlabInfo, self).__init__("lx-slabinfo", gdb.COMMAND_DATA) 324 def invoke(self, arg, from_tty): argument
|
D | dmesg.py | 29 def __init__(self): argument 30 super(LxDmesg, self).__init__("lx-dmesg", gdb.COMMAND_DATA) 32 def invoke(self, arg, from_tty): argument
|
/scripts/ |
D | rust_is_available_test.py | 98 def run_script(self, expected, override_env): argument 100 "RUSTC": self.default_rustc, 101 "BINDGEN": self.default_bindgen, 102 "CC": self.default_cc, 114 self.assertEqual(result.stdout, b"") 116 if expected == self.Expected.SUCCESS: 119 self.assertEqual(result.returncode, 0) 120 self.assertEqual(result.stderr, b"") 121 elif expected == self.Expected.SUCCESS_WITH_EXTRA_OUTPUT: 126 self.assertEqual(result.returncode, 0) [all …]
|
D | bpf_doc.py | 24 def __init__(self, line='<line not provided>', reader=None): argument 26 BaseException.__init__(self, 30 BaseException.__init__(self, 'Error parsing line: %s' % line) 40 def __init__(self, proto='', desc='', ret=''): argument 41 self.proto = proto 42 self.desc = desc 43 self.ret = ret 53 def __init__(self, *args, **kwargs): argument 55 self.enum_val = None 57 def proto_break_down(self): argument [all …]
|
D | spdxcheck.py | 16 def __init__(self, tok, txt): argument 17 self.tok = tok 18 self.txt = txt 21 def __init__(self, el, txt): argument 22 self.el = el 23 self.txt = txt 26 def __init__(self): argument 27 self.license_files = 0 28 self.exception_files = 0 29 self.licenses = [ ] [all …]
|
/scripts/kconfig/tests/ |
D | conftest.py | 30 def __init__(self, request): argument 36 self._test_dir = os.path.dirname(str(request.fspath)) 39 def _run_conf(self, mode, dot_config=None, out_file='.config', argument 54 extra_env['srctree'] = self._test_dir 66 shutil.copyfile(os.path.join(self._test_dir, dot_config), 86 self.retcode = ps.returncode 87 self.stdout = ps.stdout.read().decode() 88 self.stderr = ps.stderr.read().decode() 93 if self.retcode == 0 and out_file: 95 self.config = f.read() [all …]
|
/scripts/tracing/ |
D | draw_functrace.py | 35 def __init__(self, func, time = None, parent = None): argument 36 self._func = func 37 self._time = time 39 self._parent = CallTree.ROOT 41 self._parent = parent 42 self._children = [] 44 def calls(self, func, calltime): argument 49 child = CallTree(func, calltime, self) 50 self._children.append(child) 53 def getParent(self, func): argument [all …]
|