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
168 if (opt == NULL || arg == NULL) { in dt_opt_cpp_opts()
178 len = strlen(opt) + strlen(arg) + 1; in dt_opt_cpp_opts()
185 (void) strcat(buf, arg); in dt_opt_cpp_opts()
201 dt_opt_ctypes(dtrace_hdl_t *dtp, const char *arg, uintptr_t option) in dt_opt_ctypes() argument
205 if (arg == NULL) in dt_opt_ctypes()
208 if ((fd = open64(arg, O_CREAT | O_WRONLY, 0666)) == -1) in dt_opt_ctypes()
218 dt_opt_droptags(dtrace_hdl_t *dtp, const char *arg, uintptr_t option) in dt_opt_droptags() argument
226 dt_opt_dtypes(dtrace_hdl_t *dtp, const char *arg, uintptr_t option) in dt_opt_dtypes() argument
230 if (arg == NULL) in dt_opt_dtypes()
233 if ((fd = open64(arg, O_CREAT | O_WRONLY, 0666)) == -1) in dt_opt_dtypes()
243 dt_opt_debug(dtrace_hdl_t *dtp, const char *arg, uintptr_t option) in dt_opt_debug() argument
245 if (arg != NULL) in dt_opt_debug()
254 dt_opt_iregs(dtrace_hdl_t *dtp, const char *arg, uintptr_t option) in dt_opt_iregs() argument
258 if (arg == NULL || (n = atoi(arg)) <= 0) in dt_opt_iregs()
267 dt_opt_lazyload(dtrace_hdl_t *dtp, const char *arg, uintptr_t option) in dt_opt_lazyload() argument
276 dt_opt_ld_path(dtrace_hdl_t *dtp, const char *arg, uintptr_t option) in dt_opt_ld_path() argument
280 if (arg == NULL) in dt_opt_ld_path()
286 if ((ld = strdup(arg)) == NULL) in dt_opt_ld_path()
297 dt_opt_objcopy_path(dtrace_hdl_t *dtp, const char *arg, uintptr_t option) in dt_opt_objcopy_path() argument
301 if (arg == NULL) in dt_opt_objcopy_path()
307 if ((objcopy = strdup(arg)) == NULL) in dt_opt_objcopy_path()
319 dt_opt_libdir(dtrace_hdl_t *dtp, const char *arg, uintptr_t option) in dt_opt_libdir() argument
323 if (arg == NULL) in dt_opt_libdir()
327 (dp->dir_path = strdup(arg)) == NULL) { in dt_opt_libdir()
338 dt_opt_linkmode(dtrace_hdl_t *dtp, const char *arg, uintptr_t option) in dt_opt_linkmode() argument
340 if (arg == NULL) in dt_opt_linkmode()
343 if (strcmp(arg, "kernel") == 0) in dt_opt_linkmode()
345 else if (strcmp(arg, "primary") == 0) in dt_opt_linkmode()
347 else if (strcmp(arg, "dynamic") == 0) in dt_opt_linkmode()
349 else if (strcmp(arg, "static") == 0) in dt_opt_linkmode()
359 dt_opt_linktype(dtrace_hdl_t *dtp, const char *arg, uintptr_t option) in dt_opt_linktype() argument
361 if (arg == NULL) in dt_opt_linktype()
364 if (strcasecmp(arg, "elf") == 0) in dt_opt_linktype()
366 else if (strcasecmp(arg, "dof") == 0) in dt_opt_linktype()
376 dt_opt_encoding(dtrace_hdl_t *dtp, const char *arg, uintptr_t option) in dt_opt_encoding() argument
378 if (arg == NULL) in dt_opt_encoding()
381 if (strcmp(arg, "ascii") == 0) in dt_opt_encoding()
383 else if (strcmp(arg, "utf8") == 0) in dt_opt_encoding()
393 dt_opt_evaltime(dtrace_hdl_t *dtp, const char *arg, uintptr_t option) in dt_opt_evaltime() argument
395 if (arg == NULL) in dt_opt_evaltime()
398 if (strcmp(arg, "exec") == 0) in dt_opt_evaltime()
400 else if (strcmp(arg, "preinit") == 0) in dt_opt_evaltime()
402 else if (strcmp(arg, "postinit") == 0) in dt_opt_evaltime()
404 else if (strcmp(arg, "main") == 0) in dt_opt_evaltime()
414 dt_opt_pgmax(dtrace_hdl_t *dtp, const char *arg, uintptr_t option) in dt_opt_pgmax() argument
418 if (arg == NULL || (n = atoi(arg)) < 0) in dt_opt_pgmax()
426 dt_opt_setenv(dtrace_hdl_t *dtp, const char *arg, uintptr_t option) in dt_opt_setenv() argument
439 if (arg == NULL) in dt_opt_setenv()
442 if (!option && strchr(arg, '=') != NULL) in dt_opt_setenv()
452 if (strncmp(*p, arg, var - *p) == 0) { in dt_opt_setenv()
461 if ((var = strdup(arg)) == NULL) in dt_opt_setenv()
483 dt_opt_stdc(dtrace_hdl_t *dtp, const char *arg, uintptr_t option) in dt_opt_stdc() argument
485 if (arg == NULL) in dt_opt_stdc()
491 if (strcmp(arg, "a") == 0) in dt_opt_stdc()
493 else if (strcmp(arg, "c") == 0) in dt_opt_stdc()
495 else if (strcmp(arg, "s") == 0) in dt_opt_stdc()
497 else if (strcmp(arg, "t") == 0) in dt_opt_stdc()
507 dt_opt_syslibdir(dtrace_hdl_t *dtp, const char *arg, uintptr_t option) in dt_opt_syslibdir() argument
512 if (arg == NULL) in dt_opt_syslibdir()
515 if ((path = strdup(arg)) == NULL) in dt_opt_syslibdir()
526 dt_opt_tree(dtrace_hdl_t *dtp, const char *arg, uintptr_t option) in dt_opt_tree() argument
530 if (arg == NULL || (m = atoi(arg)) <= 0) in dt_opt_tree()
539 dt_opt_tregs(dtrace_hdl_t *dtp, const char *arg, uintptr_t option) in dt_opt_tregs() argument
543 if (arg == NULL || (n = atoi(arg)) <= 0) in dt_opt_tregs()
552 dt_opt_xlate(dtrace_hdl_t *dtp, const char *arg, uintptr_t option) in dt_opt_xlate() argument
554 if (arg == NULL) in dt_opt_xlate()
557 if (strcmp(arg, "dynamic") == 0) in dt_opt_xlate()
559 else if (strcmp(arg, "static") == 0) in dt_opt_xlate()
569 dt_opt_cflags(dtrace_hdl_t *dtp, const char *arg, uintptr_t option) in dt_opt_cflags() argument
571 if (arg != NULL) in dt_opt_cflags()
583 dt_opt_dflags(dtrace_hdl_t *dtp, const char *arg, uintptr_t option) in dt_opt_dflags() argument
585 if (arg != NULL) in dt_opt_dflags()
593 dt_opt_invcflags(dtrace_hdl_t *dtp, const char *arg, uintptr_t option) in dt_opt_invcflags() argument
595 if (arg != NULL) in dt_opt_invcflags()
608 dt_opt_version(dtrace_hdl_t *dtp, const char *arg, uintptr_t option) in dt_opt_version() argument
612 if (arg == NULL) in dt_opt_version()
615 if (dt_version_str2num(arg, &v) == -1) in dt_opt_version()
625 dt_opt_runtime(dtrace_hdl_t *dtp, const char *arg, uintptr_t option) in dt_opt_runtime() argument
644 if (arg != NULL) { in dt_opt_runtime()
645 if (arg[0] == '\0') { in dt_opt_runtime()
651 if (strcasecmp(couples[i].positive, arg) == 0) { in dt_opt_runtime()
656 if (strcasecmp(couples[i].negative, arg) == 0) { in dt_opt_runtime()
663 val = strtoull(arg, &end, 0); in dt_opt_runtime()
675 dt_optval_parse(const char *arg, dtrace_optval_t *rval) in dt_optval_parse() argument
681 len = strlen(arg); in dt_optval_parse()
684 switch (arg[len - 1]) { in dt_optval_parse()
706 *rval = strtoull(arg, &end, 0) * mul; in dt_optval_parse()
708 if ((mul > 1 && end != &arg[len - 1]) || (mul == 1 && *end != '\0') || in dt_optval_parse()
716 dt_opt_size(dtrace_hdl_t *dtp, const char *arg, uintptr_t option) in dt_opt_size() argument
720 if (arg != NULL && dt_optval_parse(arg, &val) != 0) in dt_opt_size()
728 dt_opt_oformat(dtrace_hdl_t *dtp, const char *arg, uintptr_t option __unused) in dt_opt_oformat() argument
730 if (arg == NULL) in dt_opt_oformat()
733 if (xo_set_options(NULL, arg) < 0) in dt_opt_oformat()
740 dt_opt_rate(dtrace_hdl_t *dtp, const char *arg, uintptr_t option) in dt_opt_rate() argument
768 if (arg != NULL) { in dt_opt_rate()
770 val = strtoull(arg, &end, 0); in dt_opt_rate()
804 dt_opt_strsize(dtrace_hdl_t *dtp, const char *arg, uintptr_t option) in dt_opt_strsize() argument
811 if (dt_opt_size(dtp, arg, option) != 0) in dt_opt_strsize()
849 dt_opt_bufpolicy(dtrace_hdl_t *dtp, const char *arg, uintptr_t option) in dt_opt_bufpolicy() argument
854 if (arg == NULL) in dt_opt_bufpolicy()
858 if (strcmp(_dtrace_bufpolicies[i].dtbp_name, arg) == 0) { in dt_opt_bufpolicy()
883 dt_opt_bufresize(dtrace_hdl_t *dtp, const char *arg, uintptr_t option) in dt_opt_bufresize() argument
888 if (arg == NULL) in dt_opt_bufresize()
892 if (strcmp(_dtrace_bufresize[i].dtbr_name, arg) == 0) { in dt_opt_bufresize()