Lines Matching defs:opts
141 /// @param opts the options resulting from the command line parsing.
145 parse_command_line(int argc, char* argv[], options& opts)
154 if (opts.kernel_dist_root1.empty())
155 opts.kernel_dist_root1 = argv[i];
156 else if (opts.kernel_dist_root2.empty())
157 opts.kernel_dist_root2 = argv[i];
162 opts.verbose = true;
166 opts.display_version = true;
172 opts.display_usage = true;
181 opts.missing_operand = true;
182 opts.wrong_option = argv[i];
187 opts.di_root_path1 =
197 opts.missing_operand = true;
198 opts.wrong_option = argv[i];
203 opts.di_root_path2 =
213 opts.missing_operand = true;
214 opts.wrong_option = argv[i];
217 opts.vmlinux1 = argv[j];
226 opts.missing_operand = true;
227 opts.wrong_option = argv[i];
230 opts.vmlinux2 = argv[j];
239 opts.missing_operand = true;
240 opts.wrong_option = argv[i];
243 opts.kabi_whitelist_paths.push_back(argv[j]);
252 opts.missing_operand = true;
253 opts.wrong_option = argv[i];
256 opts.suppression_paths.push_back(argv[j]);
261 opts.use_ctf = true;
265 opts.show_impacted_interfaces = true;
268 opts.leaf_changes_only = false;
270 opts.exported_interfaces_only = true;
272 opts.exported_interfaces_only = false;
274 opts.show_offsets_sizes_in_bits = false;
276 opts.show_offsets_sizes_in_bits = true;
278 opts.show_hexadecimal_values = true;
280 opts.show_hexadecimal_values = false;
283 opts.wrong_option = argv[i];
294 /// @param opts the options instance to use.
299 maybe_check_suppression_files(const options& opts)
301 for (vector<string>::const_iterator i = opts.suppression_paths.begin();
302 i != opts.suppression_paths.end();
308 opts.kabi_whitelist_paths.begin();
309 i != opts.kabi_whitelist_paths.end();
321 /// @param opts the options to set the context.
323 set_diff_context(diff_context_sptr ctxt, const options& opts)
333 ctxt->show_leaf_changes_only(opts.leaf_changes_only);
334 ctxt->show_impacted_interfaces(opts.show_impacted_interfaces);
335 ctxt->show_hex_values(opts.show_hexadecimal_values);
336 ctxt->show_offsets_sizes_in_bits(opts.show_offsets_sizes_in_bits);
340 if (!opts.diff_time_supprs.empty())
341 ctxt->add_suppressions(opts.diff_time_supprs);
352 /// @param opts the options to use during the search.
354 print_kernel_dist_binary_paths_under(const string& root, const options &opts)
359 if (opts.verbose)
382 options opts;
383 if (!parse_command_line(argc, argv, opts))
387 << opts.wrong_option << "\n"
392 if (opts.missing_operand)
395 << "missing operand to option: " << opts.wrong_option <<"\n"
400 if (!maybe_check_suppression_files(opts))
403 if (opts.display_usage)
409 if (opts.display_version)
419 if (opts.exported_interfaces_only.has_value())
420 env.analyze_exported_interfaces_only(*opts.exported_interfaces_only);
426 opts.use_ctf ? corpus::CTF_ORIGIN :
430 if (!opts.kernel_dist_root1.empty())
432 file_type ftype = guess_file_type(opts.kernel_dist_root1);
435 debug_info_root_dir = opts.di_root_path1.get()
436 ? opts.di_root_path1.get()
440 build_corpus_group_from_kernel_dist_under(opts.kernel_dist_root1,
442 opts.vmlinux1,
443 opts.suppression_paths,
444 opts.kabi_whitelist_paths,
445 opts.read_time_supprs,
446 opts.verbose, env,
448 print_kernel_dist_binary_paths_under(opts.kernel_dist_root1, opts);
452 abixml::read_corpus_group_from_abixml_file(opts.kernel_dist_root1,
457 if (!opts.kernel_dist_root2.empty())
459 file_type ftype = guess_file_type(opts.kernel_dist_root2);
462 debug_info_root_dir = opts.di_root_path2.get()
463 ? opts.di_root_path2.get()
466 build_corpus_group_from_kernel_dist_under(opts.kernel_dist_root2,
468 opts.vmlinux2,
469 opts.suppression_paths,
470 opts.kabi_whitelist_paths,
471 opts.read_time_supprs,
472 opts.verbose, env,
474 print_kernel_dist_binary_paths_under(opts.kernel_dist_root2, opts);
478 abixml::read_corpus_group_from_abixml_file(opts.kernel_dist_root2,
486 set_diff_context(diff_ctxt, opts);