Home
last modified time | relevance | path

Searched refs:self (Results 1 – 25 of 27) sorted by relevance

12

/scripts/gdb/linux/
Dmm.py24 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 …]
Dpgtable.py66 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 …]
Dpage_owner.py38 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 …]
Dsymbols.py23 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 …]
Dclk.py26 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 …]
Dtasks.py55 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 …]
Dproc.py28 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 …]
Dutils.py18 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 …]
Dvfs.py33 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
Ddevice.py100 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 …]
Drbtree.py106 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 …]
Dmodules.py47 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
Dcpus.py132 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
Dgenpd.py43 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)
Dconfig.py16 def __init__(self): argument
17 super(LxConfigDump, self).__init__("lx-configdump", gdb.COMMAND_DATA,
20 def invoke(self, arg, from_tty): argument
Dvmalloc.py25 def __init__(self): argument
26 super(LxVmallocInfo, self).__init__("lx-vmallocinfo", gdb.COMMAND_DATA)
28 def invoke(self, arg, from_tty): argument
Dradixtree.py80 def __init__(self): argument
81 super(LxRadixTree, self).__init__("lx_radix_tree_lookup")
83 def invoke(self, root, index=0): argument
Dlists.py125 def __init__(self): argument
126 super(LxListChk, self).__init__("lx-list-check", gdb.COMMAND_DATA,
129 def invoke(self, arg, from_tty): argument
Dslab.py255 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
Ddmesg.py29 def __init__(self): argument
30 super(LxDmesg, self).__init__("lx-dmesg", gdb.COMMAND_DATA)
32 def invoke(self, arg, from_tty): argument
/scripts/
Drust_is_available_test.py98 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 …]
Dbpf_doc.py24 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 …]
Dspdxcheck.py16 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/
Dconftest.py30 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/
Ddraw_functrace.py35 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 …]

12