• Home
  • Raw
  • Download

Lines Matching refs:opts

271 				options&	opts,
655 load_elf_file_paths(options& opts) in load_elf_file_paths() argument
664 opts, elf_file_paths()); in load_elf_file_paths()
701 erase_extraction_directory(const options &opts) const in erase_extraction_directory()
709 if (opts.verbose) in erase_extraction_directory()
718 if (opts.verbose) in erase_extraction_directory()
723 if (opts.verbose) in erase_extraction_directory()
732 erase_extraction_directories(const options &opts) const in erase_extraction_directories()
734 erase_extraction_directory(opts); in erase_extraction_directories()
736 debug_info_packages().front()->erase_extraction_directory(opts); in erase_extraction_directories()
738 devel_package()->erase_extraction_directory(opts); in erase_extraction_directories()
740 kabi_whitelist_package()->erase_extraction_directory(opts); in erase_extraction_directories()
753 const options& opts; member
773 const options& opts) in compare_args()
778 opts(opts) in compare_args()
786 options &opts);
929 const options &opts) in extract_rpm() argument
931 if (opts.verbose) in extract_rpm()
946 if (opts.verbose) in extract_rpm()
951 if (opts.verbose) in extract_rpm()
974 const options &opts) in extract_deb() argument
976 if (opts.verbose) in extract_deb()
989 if (opts.verbose) in extract_deb()
994 if (opts.verbose) in extract_deb()
1017 const options &opts) in extract_tar() argument
1019 if (opts.verbose) in extract_tar()
1033 if (opts.verbose) in extract_tar()
1042 if (opts.verbose) in extract_tar()
1047 if (opts.verbose) in extract_tar()
1066 const options &opts) in erase_created_temporary_directories() argument
1068 first_package.erase_extraction_directories(opts); in erase_created_temporary_directories()
1069 second_package.erase_extraction_directories(opts); in erase_created_temporary_directories()
1075 erase_created_temporary_directories_parent(const options &opts) in erase_created_temporary_directories_parent() argument
1077 if (opts.verbose) in erase_created_temporary_directories_parent()
1086 if (opts.verbose) in erase_created_temporary_directories_parent()
1091 if (opts.verbose) in erase_created_temporary_directories_parent()
1103 const options &opts) in extract_package() argument
1109 if (!extract_rpm(package.path(), package.extracted_dir_path(), opts)) in extract_package()
1125 if (!extract_deb(package.path(), package.extracted_dir_path(), opts)) in extract_package()
1147 if (!extract_tar(package.path(), package.extracted_dir_path(), opts)) in extract_package()
1177 maybe_check_suppression_files(const options& opts) in maybe_check_suppression_files() argument
1179 for (vector<string>::const_iterator i = opts.suppression_paths.begin(); in maybe_check_suppression_files()
1180 i != opts.suppression_paths.end(); in maybe_check_suppression_files()
1182 if (!check_file(*i, cerr, opts.prog_name)) in maybe_check_suppression_files()
1186 opts.kabi_whitelist_paths.begin(); in maybe_check_suppression_files()
1187 i != opts.kabi_whitelist_paths.end(); in maybe_check_suppression_files()
1202 const options& opts) in set_diff_context_from_opts() argument
1207 ctxt->show_redundant_changes(opts.show_redundant_changes in set_diff_context_from_opts()
1208 || opts.leaf_changes_only); in set_diff_context_from_opts()
1209 ctxt->show_leaf_changes_only(opts.leaf_changes_only); in set_diff_context_from_opts()
1210 ctxt->show_impacted_interfaces(opts.show_impacted_interfaces); in set_diff_context_from_opts()
1211 ctxt->show_unreachable_types(opts.show_all_types); in set_diff_context_from_opts()
1212 ctxt->show_hex_values(opts.show_hexadecimal_values); in set_diff_context_from_opts()
1213 ctxt->show_offsets_sizes_in_bits(opts.show_offsets_sizes_in_bits); in set_diff_context_from_opts()
1214 ctxt->show_relative_offset_changes(opts.show_relative_offset_changes); in set_diff_context_from_opts()
1215 ctxt->show_locs(opts.show_locs); in set_diff_context_from_opts()
1216 ctxt->show_linkage_names(opts.show_linkage_names); in set_diff_context_from_opts()
1217 ctxt->show_added_fns(opts.show_added_syms); in set_diff_context_from_opts()
1218 ctxt->show_added_vars(opts.show_added_syms); in set_diff_context_from_opts()
1220 (opts.show_added_syms); in set_diff_context_from_opts()
1222 (opts.show_symbols_not_referenced_by_debug_info); in set_diff_context_from_opts()
1224 if (!opts.show_harmless_changes) in set_diff_context_from_opts()
1228 for (vector<string>::const_iterator i = opts.suppression_paths.begin(); in set_diff_context_from_opts()
1229 i != opts.suppression_paths.end(); in set_diff_context_from_opts()
1242 set_generic_options(abigail::elf_based_reader& rdr, const options& opts) in set_generic_options() argument
1244 if (!opts.kabi_suppressions.empty()) in set_generic_options()
1245 rdr.add_suppressions(opts.kabi_suppressions); in set_generic_options()
1248 opts.leverage_dwarf_factorization; in set_generic_options()
1250 opts.assume_odr_for_cplusplus; in set_generic_options()
1288 const options& opts, in compare() argument
1301 if (opts.verbose) in compare()
1313 set_diff_context_from_opts(ctxt, opts); in compare()
1320 if (opts.verbose) in compare()
1343 if (opts.verbose) in compare()
1354 if (opts.use_ctf) in compare()
1361 opts.show_all_types); in compare()
1365 set_generic_options(*reader, opts); in compare()
1372 if (opts.verbose) in compare()
1384 if (opts.fail_if_no_debug_info) in compare()
1389 if (opts.verbose) in compare()
1406 if (opts.verbose) in compare()
1414 if (opts.use_ctf) in compare()
1437 if (opts.verbose) in compare()
1443 if (opts.verbose) in compare()
1453 if (opts.use_ctf) in compare()
1460 opts.show_all_types); in compare()
1464 set_generic_options(*reader, opts); in compare()
1471 if (opts.verbose) in compare()
1483 if (opts.fail_if_no_debug_info) in compare()
1488 if (opts.verbose) in compare()
1505 if (opts.verbose) in compare()
1513 if (opts.use_ctf) in compare()
1536 if (opts.verbose) in compare()
1540 if (opts.verbose) in compare()
1548 if (opts.verbose) in compare()
1588 const options& opts, in compare_to_self() argument
1601 if (opts.verbose) in compare_to_self()
1607 if (opts.verbose) in compare_to_self()
1618 if (opts.use_ctf) in compare_to_self()
1625 opts.show_all_types); in compare_to_self()
1632 if (opts.verbose) in compare_to_self()
1644 if (opts.verbose) in compare_to_self()
1657 if (!opts.pkg1->create_abi_file_path(elf.path, abi_file_path)) in compare_to_self()
1659 if (opts.verbose) in compare_to_self()
1673 if (opts.verbose) in compare_to_self()
1681 if (opts.verbose) in compare_to_self()
1692 if (opts.verbose) in compare_to_self()
1703 if (opts.verbose) in compare_to_self()
1711 if (opts.verbose) in compare_to_self()
1721 if (opts.verbose) in compare_to_self()
1729 if (opts.verbose) in compare_to_self()
1738 set_diff_context_from_opts(ctxt, opts); in compare_to_self()
1740 if (opts.verbose) in compare_to_self()
1747 if (opts.verbose) in compare_to_self()
1757 if (opts.verbose) in compare_to_self()
1785 create_private_types_suppressions(const package& pkg, const options &opts) in create_private_types_suppressions() argument
1810 if (opts.drop_private_types) in create_private_types_suppressions()
1831 maybe_create_public_dso_sonames_set(package& pkg, const options &opts) in maybe_create_public_dso_sonames_set() argument
1833 if (opts.compare_private_dsos || !pkg.public_dso_sonames().empty()) in maybe_create_public_dso_sonames_set()
1849 must_compare_public_dso_only(package& pkg, options& opts) in must_compare_public_dso_only() argument
1852 && !opts.compare_private_dsos) in must_compare_public_dso_only()
1936 maybe_handle_kabi_whitelist_pkg(const package& pkg, options &opts) in maybe_handle_kabi_whitelist_pkg() argument
1938 if (opts.kabi_whitelist_packages.empty() in maybe_handle_kabi_whitelist_pkg()
1939 || !opts.kabi_whitelist_paths.empty() in maybe_handle_kabi_whitelist_pkg()
1973 opts.kabi_whitelist_paths.push_back(whitelist_paths.back()); in maybe_handle_kabi_whitelist_pkg()
1993 const options &opts; member in pkg_extraction_task
1997 : opts(o), is_ok(true) in pkg_extraction_task()
2001 : pkgs(packages), opts(o), is_ok(true) in pkg_extraction_task()
2013 is_ok &= extract_package(**p, opts); in perform()
2034 options &opts; member in pkg_prepare_task
2038 : pkg(p), opts(o), is_ok(false) in pkg_prepare_task()
2045 is_ok = pkg && extract_package_and_map_its_content(pkg, opts); in perform()
2085 if (args->opts.exported_interfaces_only.has_value()) in perform()
2087 (*args->opts.exported_interfaces_only); in perform()
2091 args->opts, env, diff, ctxt, &detailed_status); in perform()
2108 if (args->opts.show_identical_binaries) in perform()
2155 if (args->opts.exported_interfaces_only.has_value()) in perform()
2157 (*args->opts.exported_interfaces_only); in perform()
2163 args->opts, env, diff, ctxt, in perform()
2230 options &opts, in maybe_update_package_content() argument
2254 else if (opts.abignore && string_ends_with(path, ".abignore")) in maybe_update_package_content()
2255 opts.suppression_paths.push_back(path); in maybe_update_package_content()
2275 options& opts, in get_interesting_files_under_dir() argument
2293 maybe_update_package_content(entry, opts, file_name_to_look_for, files); in get_interesting_files_under_dir()
2320 create_maps_of_package_content(package& package, options& opts) in create_maps_of_package_content() argument
2322 if (opts.verbose) in create_maps_of_package_content()
2345 if (opts.verbose) in create_maps_of_package_content()
2353 opts, elf_file_paths); in create_maps_of_package_content()
2355 if (opts.verbose) in create_maps_of_package_content()
2363 package.load_elf_file_paths(opts); in create_maps_of_package_content()
2365 maybe_create_public_dso_sonames_set(package, opts); in create_maps_of_package_content()
2372 if (opts.compare_dso_only) in create_maps_of_package_content()
2376 if (opts.verbose) in create_maps_of_package_content()
2396 else if (opts.verbose) in create_maps_of_package_content()
2410 && must_compare_public_dso_only(package, opts)) in create_maps_of_package_content()
2415 if (opts.verbose) in create_maps_of_package_content()
2428 if (opts.verbose) in create_maps_of_package_content()
2441 if (must_compare_public_dso_only(package, opts)) in create_maps_of_package_content()
2448 if (opts.verbose) in create_maps_of_package_content()
2462 if (opts.verbose) in create_maps_of_package_content()
2469 if (opts.verbose) in create_maps_of_package_content()
2493 extract_package_and_map_its_content(const package_sptr &pkg, options &opts) in extract_package_and_map_its_content() argument
2504 main_pkg_extraction.reset(new pkg_extraction_task(pkg, opts)); in extract_package_and_map_its_content()
2509 opts)); in extract_package_and_map_its_content()
2515 devel_extraction.reset(new pkg_extraction_task(devel_pkg, opts)); in extract_package_and_map_its_content()
2522 opts)); in extract_package_and_map_its_content()
2526 size_t num_workers = (opts.parallel in extract_package_and_map_its_content()
2527 ? std::min(opts.num_workers, NUM_EXTRACTIONS) in extract_package_and_map_its_content()
2543 is_ok = create_maps_of_package_content(*pkg, opts); in extract_package_and_map_its_content()
2546 maybe_handle_kabi_whitelist_pkg(*pkg, opts); in extract_package_and_map_its_content()
2571 options &opts) in prepare_packages() argument
2577 first_pkg_prepare.reset(new pkg_prepare_task(first_package, opts)); in prepare_packages()
2578 second_pkg_prepare.reset(new pkg_prepare_task(second_package, opts)); in prepare_packages()
2580 size_t num_workers = (opts.parallel in prepare_packages()
2581 ? std::min(opts.num_workers, NUM_PREPARATIONS) in prepare_packages()
2605 prepare_package(package_sptr& pkg, options &opts) in prepare_package() argument
2606 {return extract_package_and_map_its_content(pkg, opts);} in prepare_package()
2696 options& opts) in maybe_erase_temp_dirs() argument
2698 if (opts.keep_tmp_files) in maybe_erase_temp_dirs()
2701 erase_created_temporary_directories(first_package, second_package, opts); in maybe_erase_temp_dirs()
2702 erase_created_temporary_directories_parent(opts); in maybe_erase_temp_dirs()
2727 abi_diff& diff, options& opts) in compare_prepared_userspace_packages() argument
2762 if (opts.verbose) in compare_prepared_userspace_packages()
2770 (first_package, opts), in compare_prepared_userspace_packages()
2774 (second_package, opts), opts)); in compare_prepared_userspace_packages()
2782 if (opts.verbose) in compare_prepared_userspace_packages()
2802 size_t num_workers = (opts.parallel in compare_prepared_userspace_packages()
2803 ? std::min(opts.num_workers, compare_tasks.size()) in compare_prepared_userspace_packages()
2856 if (opts.show_added_binaries && diff.added_binaries.size()) in compare_prepared_userspace_packages()
2876 maybe_erase_temp_dirs(first_package, second_package, opts); in compare_prepared_userspace_packages()
2898 options& opts) in self_compare_prepared_userspace_package() argument
2932 opts)); in self_compare_prepared_userspace_package()
2941 maybe_erase_temp_dirs(pkg, pkg, opts); in self_compare_prepared_userspace_package()
2954 size_t num_workers = (opts.parallel in self_compare_prepared_userspace_package()
2955 ? std::min(opts.num_workers, self_compare_tasks.size()) in self_compare_prepared_userspace_package()
2982 maybe_erase_temp_dirs(pkg, pkg, opts); in self_compare_prepared_userspace_package()
3011 options& opts) in compare_prepared_linux_kernel_packages() argument
3041 if (opts.exported_interfaces_only.has_value()) in compare_prepared_linux_kernel_packages()
3043 (*opts.exported_interfaces_only); in compare_prepared_linux_kernel_packages()
3050 opts.suppression_paths, in compare_prepared_linux_kernel_packages()
3051 opts.kabi_whitelist_paths, in compare_prepared_linux_kernel_packages()
3053 opts.verbose, in compare_prepared_linux_kernel_packages()
3062 opts.suppression_paths, in compare_prepared_linux_kernel_packages()
3063 opts.kabi_whitelist_paths, in compare_prepared_linux_kernel_packages()
3065 opts.verbose, in compare_prepared_linux_kernel_packages()
3072 set_diff_context_from_opts(diff_ctxt, opts); in compare_prepared_linux_kernel_packages()
3116 abi_diff& diff, options& opts) in compare_prepared_package() argument
3123 opts.show_symbols_not_referenced_by_debug_info = false; in compare_prepared_package()
3126 opts); in compare_prepared_package()
3131 diff, opts); in compare_prepared_package()
3150 options& opts) in self_compare_prepared_package() argument
3154 status = self_compare_prepared_userspace_package(pkg, diff, opts); in self_compare_prepared_package()
3176 abi_diff& diff, options& opts) in compare() argument
3182 if (!prepare_packages(first_package, second_package, opts)) in compare()
3184 maybe_erase_temp_dirs(*first_package, *second_package, opts); in compare()
3188 return compare_prepared_package(*first_package, *second_package, diff, opts); in compare()
3200 compare_to_self(package_sptr& pkg, options& opts) in compare_to_self() argument
3202 if (!prepare_package(pkg, opts)) in compare_to_self()
3206 return self_compare_prepared_package(*pkg, diff, opts); in compare_to_self()
3221 options& opts) in compare() argument
3224 return compare(first_package, second_package, diff, opts); in compare()
3238 parse_command_line(int argc, char* argv[], options& opts) in parse_command_line() argument
3247 if (opts.package1.empty()) in parse_command_line()
3249 opts.package1 = make_path_absolute(argv[i]).get(); in parse_command_line()
3250 opts.nonexistent_file = !file_exists(opts.package1); in parse_command_line()
3252 else if (opts.package2.empty()) in parse_command_line()
3254 opts.package2 = make_path_absolute(argv[i]).get(); in parse_command_line()
3255 opts.nonexistent_file = !file_exists(opts.package2); in parse_command_line()
3259 opts.wrong_arg = argv[i]; in parse_command_line()
3263 if (opts.nonexistent_file) in parse_command_line()
3265 opts.wrong_option = argv[i]; in parse_command_line()
3275 opts.missing_operand = true; in parse_command_line()
3276 opts.wrong_option = argv[i]; in parse_command_line()
3279 opts.debug_packages1.push_back in parse_command_line()
3289 opts.missing_operand = true; in parse_command_line()
3290 opts.wrong_option = argv[i]; in parse_command_line()
3293 opts.debug_packages2.push_back in parse_command_line()
3303 opts.missing_operand = true; in parse_command_line()
3304 opts.wrong_option = argv[i]; in parse_command_line()
3307 opts.devel_package1 = in parse_command_line()
3317 opts.missing_operand = true; in parse_command_line()
3318 opts.wrong_option = argv[i]; in parse_command_line()
3321 opts.devel_package2 = in parse_command_line()
3326 opts.drop_private_types = true; in parse_command_line()
3328 opts.no_default_suppression = true; in parse_command_line()
3330 opts.keep_tmp_files = true; in parse_command_line()
3332 opts.compare_dso_only = true; in parse_command_line()
3334 opts.compare_private_dsos = true; in parse_command_line()
3337 opts.leaf_changes_only = true; in parse_command_line()
3340 opts.show_impacted_interfaces = true; in parse_command_line()
3343 opts.show_all_types = true; in parse_command_line()
3346 opts.show_full_impact_report = true; in parse_command_line()
3348 opts.exported_interfaces_only = true; in parse_command_line()
3350 opts.exported_interfaces_only = false; in parse_command_line()
3352 opts.show_linkage_names = false; in parse_command_line()
3354 opts.show_redundant_changes = true; in parse_command_line()
3356 opts.show_harmless_changes = true; in parse_command_line()
3358 opts.show_locs = false; in parse_command_line()
3360 opts.show_offsets_sizes_in_bits = false; in parse_command_line()
3362 opts.show_offsets_sizes_in_bits = true; in parse_command_line()
3364 opts.show_hexadecimal_values = true; in parse_command_line()
3366 opts.show_hexadecimal_values = false; in parse_command_line()
3368 opts.show_relative_offset_changes = false; in parse_command_line()
3370 opts.show_added_syms = false; in parse_command_line()
3372 opts.show_symbols_not_referenced_by_debug_info = false; in parse_command_line()
3374 opts.show_added_binaries = false; in parse_command_line()
3376 opts.fail_if_no_debug_info = true; in parse_command_line()
3378 opts.leverage_dwarf_factorization = false; in parse_command_line()
3380 opts.assume_odr_for_cplusplus = false; in parse_command_line()
3382 opts.verbose = true; in parse_command_line()
3384 opts.abignore = false; in parse_command_line()
3386 opts.parallel = false; in parse_command_line()
3388 opts.show_identical_binaries = true; in parse_command_line()
3390 opts.self_check = true; in parse_command_line()
3397 opts.suppression_paths.push_back(argv[j]); in parse_command_line()
3406 opts.missing_operand = true; in parse_command_line()
3407 opts.wrong_option = argv[i]; in parse_command_line()
3413 opts.kabi_whitelist_packages.push_back in parse_command_line()
3418 opts.kabi_whitelist_paths.push_back(argv[j]); in parse_command_line()
3426 opts.missing_operand = true; in parse_command_line()
3427 opts.wrong_option = argv[i]; in parse_command_line()
3430 opts.kabi_whitelist_packages.push_back in parse_command_line()
3436 opts.use_ctf = true; in parse_command_line()
3441 opts.display_usage = true; in parse_command_line()
3447 opts.display_version = true; in parse_command_line()
3453 opts.wrong_option = argv[i]; in parse_command_line()
3464 options opts(argv[0]); in main() local
3466 if (!parse_command_line(argc, argv, opts)) in main()
3468 if (!opts.wrong_option.empty()) in main()
3470 << "unrecognized option: " << opts.wrong_option in main()
3474 << "unrecognized argument: " << opts.wrong_arg in main()
3480 if (opts.missing_operand) in main()
3489 if (opts.nonexistent_file) in main()
3492 base_name(opts.wrong_option, input_file); in main()
3500 if (opts.kabi_whitelist_packages.size() > 2) in main()
3508 if (opts.display_usage) in main()
3515 if (opts.display_version) in main()
3523 if (!opts.no_default_suppression && opts.suppression_paths.empty()) in main()
3529 opts.suppression_paths.push_back(default_system_suppr_file); in main()
3534 opts.suppression_paths.push_back(default_user_suppr_file); in main()
3537 if (!maybe_check_suppression_files(opts)) in main()
3541 bool need_just_one_input_package = opts.self_check; in main()
3546 if (!opts.package2.empty()) in main()
3552 if (opts.package1.empty()) in main()
3562 else if(opts.package1.empty() || opts.package2.empty()) in main()
3570 package_sptr first_package(new package(opts.package1, "package1")); in main()
3572 package_sptr second_package(new package(opts.package2, "package2")); in main()
3573 opts.pkg1 = first_package; in main()
3574 opts.pkg2 = second_package; in main()
3576 for (vector<string>::const_iterator p = opts.debug_packages1.begin(); in main()
3577 p != opts.debug_packages1.end(); in main()
3584 for (vector<string>::const_iterator p = opts.debug_packages2.begin(); in main()
3585 p != opts.debug_packages2.end(); in main()
3592 if (!opts.devel_package1.empty()) in main()
3594 (package_sptr(new package(opts.devel_package1, in main()
3599 if (!opts.devel_package2.empty()) in main()
3601 (package_sptr(new package(opts.devel_package2, in main()
3605 if (!opts.kabi_whitelist_packages.empty()) in main()
3609 (opts.kabi_whitelist_packages[0], in main()
3612 if (opts.kabi_whitelist_packages.size() >= 2) in main()
3615 (opts.kabi_whitelist_packages[1], in main()
3627 base_name(opts.package2, package_name); in main()
3667 if (opts.show_full_impact_report) in main()
3668 opts.leaf_changes_only = false; in main()
3670 opts.leaf_changes_only = true; in main()
3679 base_name(opts.package2, package_name); in main()
3691 base_name(opts.package2, package_name); in main()
3703 base_name(opts.package2, package_name); in main()
3712 base_name(opts.package1, package_name); in main()
3719 if (opts.self_check) in main()
3720 return compare_to_self(first_package, opts); in main()
3722 return compare(first_package, second_package, opts); in main()