Lines Matching +full:line +full:- +full:ranges
3 # Copyright (c) 2016, 2020-2024 Intel Corporation
5 # SPDX-License-Identifier: Apache-2.0
49 DT_LOCATION = re.compile(r"\(DW_OP_addr: ([0-9a-f]+)\)")
64 def is_symbol_in_ranges(sym, ranges): argument
67 lies within any of these address ranges.
69 for bound in ranges:
189 sec_end = sec_start + (sec_size - 1 if sec_size else 0)
191 f"0x{sec_start:08x}-0x{sec_end:08x} "
199 Parse ELF header to find out the address ranges of ROM or RAM sections
213 sec_end = sec_start + (size - 1 if size else 0)
268 file_entry = lineprog['file_entry'][file_index - 1]
274 directory = lineprog.header['include_directory'][dir_index - 1]
288 # built-ins can't be resolved, so it's not an issue
289 if '<built-in>' not in str(path):
417 Match symbols indirectly using address ranges.
419 This uses the address ranges of DIEs and map them to symbols
420 residing within those ranges, and works on DIEs that have not
527 symbols reside within the desired memory address ranges
629 # A set of helper function for building a simple tree with a path-like
645 # Passing down through a non-terminal parent node.
659 # Don't do it on file- and directory- level parent nodes.
731 node_hidden_syms._size = root._size - sum_node_children_size(root)
752 s = str(row.node._size).rjust(100-f)
755 hex_addr = "-"
776 Parse command line arguments.
782 parser.add_argument("-k", "--kernel", required=True,
784 parser.add_argument("-z", "--zephyrbase", required=True,
786 parser.add_argument("-q", "--quiet", action="store_true",
788 parser.add_argument("-o", "--output", required=True,
790 parser.add_argument("-w", "--workspace", default=None,
793 parser.add_argument("-d", "--depth", dest="depth",
797 parser.add_argument("-v", "--verbose", action="store_true",
799 parser.add_argument("--json", help="store results in a JSON file.")
809 sys.stdout.reconfigure(encoding='utf-8')
845 ranges = addr_ranges[t]
857 set_root_path_for_unmapped_symbols(symbol_dict, ranges, processed)