Lines Matching +full:level +full:- +full:detect
4 # SPDX-License-Identifier: Apache-2.0
13 This can be used to detect devices that are initialized in the incorrect order,
33 "dts", "python-devicetree", "src"))
34 from devicetree import edtlib # pylint: disable=unused-import
40 # Defined init level in order of priority.
49 "zephyr,cdc-acm-uart",
60 def __init__(self, level, priority): argument
62 if level_name == level:
69 raise ValueError("Unknown level in %s" % level)
96 class variables in the {"level name": ["call", ...]} format.
132 for level in _DEVICE_INIT_LEVELS:
133 name = f"__init_{level}_start"
135 self._init_level_addr[level] = sym.entry.st_value
177 offset = addr - start
185 """Process the init level and find the init functions and devices."""
189 for i, level in enumerate(_DEVICE_INIT_LEVELS):
190 start = self._init_level_addr[level]
196 self.initlevels[level] = []
208 self.initlevels[level].append(f"{obj}: {arg0_name}({arg1_name})")
212 prio = Priority(level, priority)
290 for level, calls in self._obj.initlevels.items():
291 print(level)
302 parser.add_argument("-f", "--elf-file", default=pathlib.Path("build", "zephyr", "zephyr.elf"),
304 parser.add_argument("-v", "--verbose", action="count",
306 "to increase verbosity level"))
307 parser.add_argument("--always-succeed", action="store_true",
309 parser.add_argument("-o", "--output",
311 parser.add_argument("-i", "--initlevels", action="store_true",
313 parser.add_argument("--edt-pickle", default=pathlib.Path("edt.pickle"),