• Home
  • Raw
  • Download

Lines Matching refs:opts

226 parse_command_line(int argc, char* argv[], options& opts)  in parse_command_line()  argument
235 if (opts.in_file_path.empty()) in parse_command_line()
236 opts.in_file_path = argv[i]; in parse_command_line()
242 opts.display_version = true; in parse_command_line()
245 opts.display_abixml_version = true; in parse_command_line()
254 opts.di_root_paths.push_back in parse_command_line()
264 opts.headers_dirs.push_back(argv[j]); in parse_command_line()
273 opts.header_files.push_back(argv[j]); in parse_command_line()
280 || !opts.out_file_path.empty()) in parse_command_line()
283 opts.out_file_path = argv[i + 1]; in parse_command_line()
292 opts.suppression_paths.push_back(argv[j]); in parse_command_line()
301 opts.kabi_whitelist_paths.push_back(argv[j]); in parse_command_line()
306 opts.corpus_group_for_linux = true; in parse_command_line()
312 opts.vmlinux = argv[j]; in parse_command_line()
316 opts.noout = true; in parse_command_line()
319 opts.use_ctf = true; in parse_command_line()
322 opts.write_architecture = false; in parse_command_line()
324 opts.write_corpus_path = false; in parse_command_line()
326 opts.show_locs = false; in parse_command_line()
328 opts.short_locs = true; in parse_command_line()
330 opts.write_comp_dir = false; in parse_command_line()
332 opts.write_elf_needed = false; in parse_command_line()
334 opts.default_sizes = false; in parse_command_line()
336 opts.write_parameter_names = false; in parse_command_line()
343 opts.type_id_style = SEQUENCE_TYPE_ID_STYLE; in parse_command_line()
345 opts.type_id_style = HASH_TYPE_ID_STYLE; in parse_command_line()
354 || !opts.in_file_path.empty()) in parse_command_line()
357 opts.show_base_name_alt_debug_info_path = true; in parse_command_line()
358 opts.check_alt_debug_info_path = true; in parse_command_line()
359 opts.in_file_path = argv[i + 1]; in parse_command_line()
363 opts.load_all_types = true; in parse_command_line()
365 opts.drop_private_types = true; in parse_command_line()
367 opts.drop_undefined_syms = true; in parse_command_line()
369 opts.linux_kernel_mode = false; in parse_command_line()
371 opts.abidiff = true; in parse_command_line()
375 opts.abidiff = true; in parse_command_line()
376 opts.debug_abidiff = true; in parse_command_line()
382 opts.debug_type_canonicalization = true; in parse_command_line()
385 opts.annotate = true; in parse_command_line()
387 opts.show_stats = true; in parse_command_line()
389 opts.do_log = true; in parse_command_line()
396 opts.wrong_option = argv[i]; in parse_command_line()
428 maybe_check_suppression_files(const options& opts) in maybe_check_suppression_files() argument
430 for (vector<string>::const_iterator i = opts.suppression_paths.begin(); in maybe_check_suppression_files()
431 i != opts.suppression_paths.end(); in maybe_check_suppression_files()
437 opts.kabi_whitelist_paths.begin(); in maybe_check_suppression_files()
438 i != opts.kabi_whitelist_paths.end(); in maybe_check_suppression_files()
453 maybe_check_header_files(const options& opts) in maybe_check_header_files() argument
455 for (vector<string>::const_iterator file = opts.header_files.begin(); in maybe_check_header_files()
456 file != opts.header_files.end(); in maybe_check_header_files()
477 set_suppressions(dwarf_reader::read_context& read_ctxt, options& opts) in set_suppressions() argument
480 for (vector<string>::const_iterator i = opts.suppression_paths.begin(); in set_suppressions()
481 i != opts.suppression_paths.end(); in set_suppressions()
486 abigail::tools_utils::gen_suppr_spec_from_headers(opts.headers_dirs, in set_suppressions()
487 opts.header_files); in set_suppressions()
490 if (opts.drop_private_types) in set_suppressions()
497 gen_suppr_spec_from_kernel_abi_whitelists(opts.kabi_whitelist_paths); in set_suppressions()
499 opts.kabi_whitelist_supprs.insert(opts.kabi_whitelist_supprs.end(), in set_suppressions()
503 add_read_context_suppressions(read_ctxt, opts.kabi_whitelist_supprs); in set_suppressions()
520 options& opts) in load_corpus_and_write_abixml() argument
526 if (opts.debug_abidiff) in load_corpus_and_write_abixml()
531 if (opts.debug_type_canonicalization) in load_corpus_and_write_abixml()
540 if (opts.use_ctf) in load_corpus_and_write_abixml()
543 = abigail::ctf_reader::create_read_context(opts.in_file_path, in load_corpus_and_write_abixml()
544 opts.prepared_di_root_paths, in load_corpus_and_write_abixml()
550 if (opts.do_log) in load_corpus_and_write_abixml()
558 = abigail::dwarf_reader::create_read_context(opts.in_file_path, in load_corpus_and_write_abixml()
559 opts.prepared_di_root_paths, in load_corpus_and_write_abixml()
561 opts.load_all_types, in load_corpus_and_write_abixml()
562 opts.linux_kernel_mode); in load_corpus_and_write_abixml()
564 set_drop_undefined_syms(ctxt, opts.drop_undefined_syms); in load_corpus_and_write_abixml()
565 set_show_stats(ctxt, opts.show_stats); in load_corpus_and_write_abixml()
566 set_suppressions(ctxt, opts); in load_corpus_and_write_abixml()
567 abigail::dwarf_reader::set_do_log(ctxt, opts.do_log); in load_corpus_and_write_abixml()
569 if (opts.check_alt_debug_info_path) in load_corpus_and_write_abixml()
584 if (opts.show_base_name_alt_debug_info_path) in load_corpus_and_write_abixml()
604 if (opts.do_log) in load_corpus_and_write_abixml()
612 if (opts.do_log) in load_corpus_and_write_abixml()
623 if (opts.di_root_paths.empty()) in load_corpus_and_write_abixml()
627 << opts.in_file_path << "\n"; in load_corpus_and_write_abixml()
638 << "Could not read debug info for '" << opts.in_file_path in load_corpus_and_write_abixml()
641 opts.di_root_paths.begin(); in load_corpus_and_write_abixml()
642 i != opts.di_root_paths.end(); in load_corpus_and_write_abixml()
645 if (i != opts.di_root_paths.begin()) in load_corpus_and_write_abixml()
654 << opts.in_file_path << "\n"; in load_corpus_and_write_abixml()
664 set_common_options(*write_ctxt, opts); in load_corpus_and_write_abixml()
667 if (opts.do_log) in load_corpus_and_write_abixml()
672 if (opts.abidiff) in load_corpus_and_write_abixml()
683 if (opts.debug_abidiff) in load_corpus_and_write_abixml()
685 opts.type_id_file_path = tmp_file->get_path() + string(".typeid"); in load_corpus_and_write_abixml()
686 write_canonical_type_ids(*write_ctxt, opts.type_id_file_path); in load_corpus_and_write_abixml()
693 if (opts.debug_abidiff in load_corpus_and_write_abixml()
694 && !opts.type_id_file_path.empty()) in load_corpus_and_write_abixml()
695 load_canonical_type_ids(*read_ctxt, opts.type_id_file_path); in load_corpus_and_write_abixml()
701 if (opts.do_log) in load_corpus_and_write_abixml()
715 ctxt->show_locs(opts.show_locs); in load_corpus_and_write_abixml()
719 if (opts.do_log) in load_corpus_and_write_abixml()
729 if (opts.do_log) in load_corpus_and_write_abixml()
738 if (opts.debug_abidiff in load_corpus_and_write_abixml()
739 && !opts.type_id_file_path.empty()) in load_corpus_and_write_abixml()
740 remove(opts.type_id_file_path.c_str()); in load_corpus_and_write_abixml()
743 if (opts.noout) in load_corpus_and_write_abixml()
746 if (!opts.out_file_path.empty()) in load_corpus_and_write_abixml()
748 ofstream of(opts.out_file_path.c_str(), std::ios_base::trunc); in load_corpus_and_write_abixml()
753 << opts.out_file_path << "'\n"; in load_corpus_and_write_abixml()
760 if (opts.do_log) in load_corpus_and_write_abixml()
771 if (opts.do_log) in load_corpus_and_write_abixml()
794 options& opts) in load_kernel_corpus_group_and_write_abixml() argument
796 if (!(tools_utils::is_dir(opts.in_file_path) && opts.corpus_group_for_linux)) in load_kernel_corpus_group_and_write_abixml()
801 if (!opts.vmlinux.empty()) in load_kernel_corpus_group_and_write_abixml()
802 if (!abigail::tools_utils::check_file(opts.vmlinux, cerr, argv[0])) in load_kernel_corpus_group_and_write_abixml()
808 if (opts.do_log) in load_kernel_corpus_group_and_write_abixml()
816 opts.use_ctf ? corpus::CTF_ORIGIN : in load_kernel_corpus_group_and_write_abixml()
820 build_corpus_group_from_kernel_dist_under(opts.in_file_path, in load_kernel_corpus_group_and_write_abixml()
822 opts.vmlinux, in load_kernel_corpus_group_and_write_abixml()
823 opts.suppression_paths, in load_kernel_corpus_group_and_write_abixml()
824 opts.kabi_whitelist_paths, in load_kernel_corpus_group_and_write_abixml()
825 supprs, opts.do_log, env, origin); in load_kernel_corpus_group_and_write_abixml()
828 if (opts.do_log) in load_kernel_corpus_group_and_write_abixml()
838 if (!opts.noout) in load_kernel_corpus_group_and_write_abixml()
842 set_common_options(*ctxt, opts); in load_kernel_corpus_group_and_write_abixml()
844 if (!opts.out_file_path.empty()) in load_kernel_corpus_group_and_write_abixml()
846 ofstream of(opts.out_file_path.c_str(), std::ios_base::trunc); in load_kernel_corpus_group_and_write_abixml()
851 << opts.out_file_path << "'\n"; in load_kernel_corpus_group_and_write_abixml()
855 if (opts.do_log) in load_kernel_corpus_group_and_write_abixml()
862 if (opts.do_log) in load_kernel_corpus_group_and_write_abixml()
868 if (opts.do_log) in load_kernel_corpus_group_and_write_abixml()
874 if (opts.do_log) in load_kernel_corpus_group_and_write_abixml()
881 if (opts.do_log) in load_kernel_corpus_group_and_write_abixml()
902 options opts; in main() local
904 if (!parse_command_line(argc, argv, opts) in main()
905 || (opts.in_file_path.empty() in main()
906 && !opts.display_version in main()
907 && !opts.display_abixml_version)) in main()
909 if (!opts.wrong_option.empty()) in main()
911 << "unrecognized option: " << opts.wrong_option << "\n"; in main()
916 if (opts.display_version) in main()
924 if (opts.display_abixml_version) in main()
932 ABG_ASSERT(!opts.in_file_path.empty()); in main()
933 if (opts.corpus_group_for_linux) in main()
935 if (!abigail::tools_utils::check_dir(opts.in_file_path, cerr, argv[0])) in main()
940 if (!abigail::tools_utils::check_file(opts.in_file_path, cerr, argv[0])) in main()
944 prepare_di_root_paths(opts); in main()
946 if (!maybe_check_suppression_files(opts)) in main()
949 if (!maybe_check_header_files(opts)) in main()
953 abigail::tools_utils::guess_file_type(opts.in_file_path); in main()
959 << "files of the kind of "<< opts.in_file_path << " are not handled\n"; in main()
966 if (tools_utils::is_regular_file(opts.in_file_path)) in main()
967 exit_code = load_corpus_and_write_abixml(argv, env, opts); in main()
969 exit_code = load_kernel_corpus_group_and_write_abixml(argv, env, opts); in main()