Home
last modified time | relevance | path

Searched refs:argv (Results 1 – 25 of 48) sorted by relevance

12

/tools/security/fuzzing/measure_sandbox/
Dmeasure_sandbox.cpp95 void print_usage(char** argv) { in print_usage() argument
96 fprintf(stderr, "usage: %s <app|system> <file>\n", argv[0]); in print_usage()
99 int main(int argc, char** argv) { in main() argument
101 print_usage(argv); in main()
105 if (!strcmp(argv[1], "app")) { in main()
109 } else if (!strcmp(argv[1], "system")) { in main()
114 print_usage(argv); in main()
118 if (open(argv[2], O_RDONLY) == -1) { in main()
119 fprintf(stderr, "failed to open %s\n", argv[2]); in main()
/tools/security/sanitizer-status/
Dsanitizer-status.cpp165 int have_option(const char* option, const char** argv, const int argc) { in have_option() argument
167 if (!strcmp(option, argv[i])) in have_option()
172 int main(int argc, const char** argv) { in main() argument
179 if (test_everything || have_option("asan", argv, argc)) { in main()
198 if (test_everything || have_option("hwasan", argv, argc)) { in main()
217 if (test_everything || have_option("msan", argv, argc)) { in main()
228 if (test_everything || have_option("kasan", argv, argc)) { in main()
239 if (test_everything || have_option("kcov", argv, argc)) { in main()
250 if (test_everything || have_option("ubsan", argv, argc)) { in main()
261 if (test_everything || have_option("gwp_asan", argv, argc)) { in main()
[all …]
/tools/security/fuzzing/orphans/libufdt/
Dmkcorpus.c56 int main(int argc, char *argv[]) { in main() argument
69 if (strcmp(argv[3], "-") == 0) { in main()
72 out = fopen(argv[3], "wbe"); in main()
74 fprintf(stderr, "fopen(%s) failed: %m\n", argv[1]); in main()
79 uint32_t len = htonl(get_file_length(argv[1])); in main()
86 append_file(out, argv[1]); in main()
87 append_file(out, argv[2]); in main()
/tools/acloud/metrics/
Dmetrics.py27 def LogUsage(argv): argument
46 if _NO_METRICS in argv:
48 if len(argv) > 0 and argv[0] in _NO_METRICS_COMMANDS:
55 command_line=' '.join(argv),
56 test_references=[argv[0]])
Dmetrics_test.py35 argv = ["create", "--local-instance"]
36 self.assertTrue(metrics.LogUsage(argv))
39 argv = ["create", "--no-metrics"]
40 self.assertFalse(metrics.LogUsage(argv))
43 argv = ["delete", "--all"]
44 self.assertFalse(metrics.LogUsage(argv))
/tools/asuite/atest/
Dbug_detector_unittest.py74 argv = ['test2', 'test1']
76 dtr = bug_detector.BugDetector(argv, 0)
77 self.assertEqual(dtr.get_detect_key(argv), want_key)
80 argv = ['-v', 'test2', 'test1']
82 dtr = bug_detector.BugDetector(argv, 0)
83 self.assertEqual(dtr.get_detect_key(argv), want_key)
86 argv = ['--verbose', 'test2', 'test3', 'test1']
88 dtr = bug_detector.BugDetector(argv, 0)
89 self.assertEqual(dtr.get_detect_key(argv), want_key)
Dbug_detector.py40 def __init__(self, argv, exit_code, history_file=None): argument
48 self.detect_key = self.get_detect_key(argv)
55 def get_detect_key(self, argv): argument
67 argv_without_option = [x for x in argv if x not in _DETECT_OPTION_FILTER]
Datest_main.py220 def _parse_args(argv: List[Any]) -> Tuple[argparse.ArgumentParser, List[str]]:
230 pruned_argv = argv
232 if CUSTOM_ARG_FLAG in argv:
233 custom_args_index = argv.index(CUSTOM_ARG_FLAG)
234 pruned_argv = argv[:custom_args_index]
238 for arg in argv[custom_args_index + 1 :]:
911 def _send_start_event(argv: List[Any], tests: List[str]):
919 command_line=' '.join(argv),
978 argv: List[Any],
998 argv,
[all …]
/tools/netsim/testing/tests/wifi/nsd/
Dinstrumentation_test.py47 if '--' in sys.argv:
48 index = sys.argv.index('--')
49 sys.argv = sys.argv[:1] + sys.argv[index + 1 :]
/tools/netsim/rust/
Dnetsimd.cc1 extern "C" void rust_main(int argc, char *argv[]);
3 int main(int argc, char *argv[]) { rust_main(argc, argv); } in main() argument
/tools/netsim/rust/daemon/src/
Drust_main.rs51 pub unsafe extern "C" fn rust_main(argc: c_int, argv: *const *const c_char) { in rust_main()
55 let netsimd_args = get_netsimd_args(argc, argv); in rust_main()
61 fn get_netsimd_args(argc: c_int, argv: *const *const c_char) -> NetsimdArgs { in get_netsimd_args()
68 let mut argv: Vec<_> = (0..argc) in get_netsimd_args() localVariable
72 std::ffi::CStr::from_ptr(*argv.add(i as usize)).to_str().unwrap().to_owned() in get_netsimd_args()
76 env_args.split(' ').for_each(|arg| argv.push(arg.to_string())); in get_netsimd_args()
78 NetsimdArgs::parse_from(argv) in get_netsimd_args()
82 let mut argv = env::args().collect::<Vec<String>>(); in get_netsimd_args() localVariable
84 env_args.split(' ').for_each(|arg| argv.push(arg.to_string())); in get_netsimd_args()
86 NetsimdArgs::parse_from(argv) in get_netsimd_args()
/tools/asuite/team_build_scripts/
Dfilter_teams.py63 def parse_args(argv) -> argparse.Namespace: argument
71 return parser.parse_args(argv)
74 def main(argv): argument
75 args = parse_args(argv)
159 main(sys.argv[1:])
/tools/netsim/src/util/
Dini_file.cc43 auto argv = stringutils::Split(line, "="); in Read() local
45 if (argv.size() != 2) continue; in Read()
46 auto key = stringutils::Trim(argv[0]); in Read()
47 auto val = stringutils::Trim(argv[1]); in Read()
/tools/test/graphicsbenchmark/functional_tests/native/
Dmain.cpp32 int main(int argc, char **argv) { in main() argument
34 testing::InitGoogleTest(&argc, argv); in main()
42 int c = getopt_long(argc, argv, "", long_options, nullptr); in main()
/tools/dexter/dexter/
Dmain.cc19 int main(int argc, char* argv[]) { in main() argument
20 Dexter dexter(argc, argv); in main()
Ddexter.h32 Dexter(int argc, char* argv[]) : argc_(argc), argv_(argv) {} in Dexter() argument
/tools/repohooks/tools/
Dgoogle-java-format.py58 def main(argv): argument
61 opts = parser.parse_args(argv)
93 sys.exit(main(sys.argv[1:]))
Dpylint.py81 def main(argv): argument
84 opts, unknown = parser.parse_known_args(argv)
129 sys.exit(main(sys.argv[1:]))
Dclang-format.py67 def main(argv): argument
70 opts = parser.parse_args(argv)
145 sys.exit(main(sys.argv[1:]))
Dandroid_test_mapping_format.py178 def main(argv): argument
181 opts = parser.parse_args(argv)
198 sys.exit(main(sys.argv[1:]))
/tools/repohooks/rh/
Dconfig_test.py87 def main(argv): argument
90 opts = parser.parse_args(argv)
110 sys.exit(main(sys.argv[1:]))
/tools/acloud/public/acloud_kernel/
Dacloud_kernel.py67 def main(argv): argument
76 args = _ParseArgs(argv)
/tools/asuite/atest/integration_tests/
Dsplit_build_test_script.py679 argv: list[str],
756 return parser.parse_known_args(argv)
761 argv: list[str],
825 argv=argv,
860 argv: list[str] = None,
881 if not argv:
882 argv = sys.argv
886 args, unittest_argv = _parse_known_args(argv, argparser_update_func)
/tools/doc_generation/
Dswitcher4.py236 def main(argv): argument
244 opts, args = getopt.getopt(argv,"",["work","verbose","solo","max="])
300 main(sys.argv[1:])
/tools/test/connectivity/wts-acts/
D__main__.py6 main(sys.argv[1:])

12