Lines Matching refs:database

175 def parse_log_const_symbols(database, log_const_area, log_const_symbols, string_mappings):  argument
177 if database.is_tgt_little_endian():
182 if database.is_tgt_64bit():
228 database.add_log_instance(source_id, instance_name, level, sym.entry['st_value'])
231 def extract_elf_information(elf, database): argument
237 database.set_tgt_endianness(LogDatabase.LITTLE_ENDIAN)
239 database.set_tgt_endianness(LogDatabase.BIG_ENDIAN)
245 def process_kconfigs(elf, database): argument
250 database.set_tgt_bits(64 if "CONFIG_64BIT" in kconfigs else 32)
255 database.set_arch(name)
265 database.add_kconfig("CONFIG_LOG_TIMESTAMP_64BIT",
269 def extract_logging_subsys_information(elf, database, string_mappings): argument
288 parse_log_const_symbols(database, section_log_const, log_const_symbols, string_mappings)
457 def extract_static_strings(elf, database, section_extraction=False): argument
484 arch_data = dictionary_parser.log_database.ARCHS[database.get_arch()]
528 database = LogDatabase()
535 database.set_build_id(match.group(1))
539 database.set_build_id(args.build)
542 extract_elf_information(elf, database)
544 process_kconfigs(elf, database)
546 logger.info("Target: %s, %d-bit", database.get_arch(), database.get_tgt_bits())
547 if database.is_tgt_little_endian():
552 if database.is_tgt_64bit():
557 string_mappings = extract_static_strings(elf, database, section_extraction)
559 database.set_string_mappings(string_mappings)
568 string_mappings = extract_static_strings(elf, database, section_extraction=True)
570 extract_logging_subsys_information(elf, database, string_mappings)
574 if not LogDatabase.write_json_database(args.json, database):
580 if not LogDatabase.write_syst_database(args.syst, database):