Lines Matching refs:arg

49 dt_opt_agg(dtrace_hdl_t *dtp, const char *arg, uintptr_t option)  in dt_opt_agg()  argument
53 if (arg != NULL) in dt_opt_agg()
62 dt_opt_amin(dtrace_hdl_t *dtp, const char *arg, uintptr_t option) in dt_opt_amin() argument
67 if (arg == NULL || dtrace_str2attr(arg, &attr) == -1) in dt_opt_amin()
109 dt_opt_core(dtrace_hdl_t *dtp, const char *arg, uintptr_t option) in dt_opt_core() argument
113 if (arg != NULL) in dt_opt_core()
124 dt_opt_cpp_hdrs(dtrace_hdl_t *dtp, const char *arg, uintptr_t option) in dt_opt_cpp_hdrs() argument
126 if (arg != NULL) in dt_opt_cpp_hdrs()
140 dt_opt_cpp_path(dtrace_hdl_t *dtp, const char *arg, uintptr_t option) in dt_opt_cpp_path() argument
144 if (arg == NULL) in dt_opt_cpp_path()
150 if ((cpp = strdup(arg)) == NULL) in dt_opt_cpp_path()
161 dt_opt_cpp_opts(dtrace_hdl_t *dtp, const char *arg, uintptr_t option) in dt_opt_cpp_opts() argument
167 if (opt == NULL || arg == NULL) in dt_opt_cpp_opts()
173 len = strlen(opt) + strlen(arg) + 1; in dt_opt_cpp_opts()
177 (void) strcat(buf, arg); in dt_opt_cpp_opts()
187 dt_opt_ctypes(dtrace_hdl_t *dtp, const char *arg, uintptr_t option) in dt_opt_ctypes() argument
191 if (arg == NULL) in dt_opt_ctypes()
194 if ((fd = open64(arg, O_CREAT | O_WRONLY, 0666)) == -1) in dt_opt_ctypes()
204 dt_opt_droptags(dtrace_hdl_t *dtp, const char *arg, uintptr_t option) in dt_opt_droptags() argument
212 dt_opt_dtypes(dtrace_hdl_t *dtp, const char *arg, uintptr_t option) in dt_opt_dtypes() argument
216 if (arg == NULL) in dt_opt_dtypes()
219 if ((fd = open64(arg, O_CREAT | O_WRONLY, 0666)) == -1) in dt_opt_dtypes()
229 dt_opt_debug(dtrace_hdl_t *dtp, const char *arg, uintptr_t option) in dt_opt_debug() argument
231 if (arg != NULL) in dt_opt_debug()
240 dt_opt_iregs(dtrace_hdl_t *dtp, const char *arg, uintptr_t option) in dt_opt_iregs() argument
244 if (arg == NULL || (n = atoi(arg)) <= 0) in dt_opt_iregs()
253 dt_opt_lazyload(dtrace_hdl_t *dtp, const char *arg, uintptr_t option) in dt_opt_lazyload() argument
262 dt_opt_ld_path(dtrace_hdl_t *dtp, const char *arg, uintptr_t option) in dt_opt_ld_path() argument
266 if (arg == NULL) in dt_opt_ld_path()
272 if ((ld = strdup(arg)) == NULL) in dt_opt_ld_path()
283 dt_opt_libdir(dtrace_hdl_t *dtp, const char *arg, uintptr_t option) in dt_opt_libdir() argument
287 if (arg == NULL) in dt_opt_libdir()
291 (dp->dir_path = strdup(arg)) == NULL) { in dt_opt_libdir()
302 dt_opt_linkmode(dtrace_hdl_t *dtp, const char *arg, uintptr_t option) in dt_opt_linkmode() argument
304 if (arg == NULL) in dt_opt_linkmode()
307 if (strcmp(arg, "kernel") == 0) in dt_opt_linkmode()
309 else if (strcmp(arg, "primary") == 0) in dt_opt_linkmode()
311 else if (strcmp(arg, "dynamic") == 0) in dt_opt_linkmode()
313 else if (strcmp(arg, "static") == 0) in dt_opt_linkmode()
323 dt_opt_linktype(dtrace_hdl_t *dtp, const char *arg, uintptr_t option) in dt_opt_linktype() argument
325 if (arg == NULL) in dt_opt_linktype()
328 if (strcasecmp(arg, "elf") == 0) in dt_opt_linktype()
330 else if (strcasecmp(arg, "dof") == 0) in dt_opt_linktype()
340 dt_opt_encoding(dtrace_hdl_t *dtp, const char *arg, uintptr_t option) in dt_opt_encoding() argument
342 if (arg == NULL) in dt_opt_encoding()
345 if (strcmp(arg, "ascii") == 0) in dt_opt_encoding()
347 else if (strcmp(arg, "utf8") == 0) in dt_opt_encoding()
357 dt_opt_evaltime(dtrace_hdl_t *dtp, const char *arg, uintptr_t option) in dt_opt_evaltime() argument
359 if (arg == NULL) in dt_opt_evaltime()
362 if (strcmp(arg, "exec") == 0) in dt_opt_evaltime()
364 else if (strcmp(arg, "preinit") == 0) in dt_opt_evaltime()
366 else if (strcmp(arg, "postinit") == 0) in dt_opt_evaltime()
368 else if (strcmp(arg, "main") == 0) in dt_opt_evaltime()
378 dt_opt_pgmax(dtrace_hdl_t *dtp, const char *arg, uintptr_t option) in dt_opt_pgmax() argument
382 if (arg == NULL || (n = atoi(arg)) < 0) in dt_opt_pgmax()
390 dt_opt_setenv(dtrace_hdl_t *dtp, const char *arg, uintptr_t option) in dt_opt_setenv() argument
403 if (arg == NULL) in dt_opt_setenv()
406 if (!option && strchr(arg, '=') != NULL) in dt_opt_setenv()
416 if (strncmp(*p, arg, var - *p) == 0) { in dt_opt_setenv()
425 if ((var = strdup(arg)) == NULL) in dt_opt_setenv()
446 dt_opt_stdc(dtrace_hdl_t *dtp, const char *arg, uintptr_t option) in dt_opt_stdc() argument
448 if (arg == NULL) in dt_opt_stdc()
454 if (strcmp(arg, "a") == 0) in dt_opt_stdc()
456 else if (strcmp(arg, "c") == 0) in dt_opt_stdc()
458 else if (strcmp(arg, "s") == 0) in dt_opt_stdc()
460 else if (strcmp(arg, "t") == 0) in dt_opt_stdc()
470 dt_opt_syslibdir(dtrace_hdl_t *dtp, const char *arg, uintptr_t option) in dt_opt_syslibdir() argument
475 if (arg == NULL) in dt_opt_syslibdir()
478 if ((path = strdup(arg)) == NULL) in dt_opt_syslibdir()
489 dt_opt_tree(dtrace_hdl_t *dtp, const char *arg, uintptr_t option) in dt_opt_tree() argument
493 if (arg == NULL || (m = atoi(arg)) <= 0) in dt_opt_tree()
502 dt_opt_tregs(dtrace_hdl_t *dtp, const char *arg, uintptr_t option) in dt_opt_tregs() argument
506 if (arg == NULL || (n = atoi(arg)) <= 0) in dt_opt_tregs()
515 dt_opt_xlate(dtrace_hdl_t *dtp, const char *arg, uintptr_t option) in dt_opt_xlate() argument
517 if (arg == NULL) in dt_opt_xlate()
520 if (strcmp(arg, "dynamic") == 0) in dt_opt_xlate()
522 else if (strcmp(arg, "static") == 0) in dt_opt_xlate()
532 dt_opt_cflags(dtrace_hdl_t *dtp, const char *arg, uintptr_t option) in dt_opt_cflags() argument
534 if (arg != NULL) in dt_opt_cflags()
546 dt_opt_dflags(dtrace_hdl_t *dtp, const char *arg, uintptr_t option) in dt_opt_dflags() argument
548 if (arg != NULL) in dt_opt_dflags()
556 dt_opt_invcflags(dtrace_hdl_t *dtp, const char *arg, uintptr_t option) in dt_opt_invcflags() argument
558 if (arg != NULL) in dt_opt_invcflags()
571 dt_opt_version(dtrace_hdl_t *dtp, const char *arg, uintptr_t option) in dt_opt_version() argument
575 if (arg == NULL) in dt_opt_version()
578 if (dt_version_str2num(arg, &v) == -1) in dt_opt_version()
588 dt_opt_runtime(dtrace_hdl_t *dtp, const char *arg, uintptr_t option) in dt_opt_runtime() argument
607 if (arg != NULL) { in dt_opt_runtime()
608 if (arg[0] == '\0') { in dt_opt_runtime()
614 if (strcasecmp(couples[i].positive, arg) == 0) { in dt_opt_runtime()
619 if (strcasecmp(couples[i].negative, arg) == 0) { in dt_opt_runtime()
626 val = strtoull(arg, &end, 0); in dt_opt_runtime()
638 dt_optval_parse(const char *arg, dtrace_optval_t *rval) in dt_optval_parse() argument
644 len = strlen(arg); in dt_optval_parse()
647 switch (arg[len - 1]) { in dt_optval_parse()
669 *rval = strtoull(arg, &end, 0) * mul; in dt_optval_parse()
671 if ((mul > 1 && end != &arg[len - 1]) || (mul == 1 && *end != '\0') || in dt_optval_parse()
679 dt_opt_size(dtrace_hdl_t *dtp, const char *arg, uintptr_t option) in dt_opt_size() argument
683 if (arg != NULL && dt_optval_parse(arg, &val) != 0) in dt_opt_size()
691 dt_opt_rate(dtrace_hdl_t *dtp, const char *arg, uintptr_t option) in dt_opt_rate() argument
719 if (arg != NULL) { in dt_opt_rate()
721 val = strtoull(arg, &end, 0); in dt_opt_rate()
755 dt_opt_strsize(dtrace_hdl_t *dtp, const char *arg, uintptr_t option) in dt_opt_strsize() argument
762 if (dt_opt_size(dtp, arg, option) != 0) in dt_opt_strsize()
800 dt_opt_bufpolicy(dtrace_hdl_t *dtp, const char *arg, uintptr_t option) in dt_opt_bufpolicy() argument
805 if (arg == NULL) in dt_opt_bufpolicy()
809 if (strcmp(_dtrace_bufpolicies[i].dtbp_name, arg) == 0) { in dt_opt_bufpolicy()
834 dt_opt_bufresize(dtrace_hdl_t *dtp, const char *arg, uintptr_t option) in dt_opt_bufresize() argument
839 if (arg == NULL) in dt_opt_bufresize()
843 if (strcmp(_dtrace_bufresize[i].dtbr_name, arg) == 0) { in dt_opt_bufresize()