Lines Matching defs:arg

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