Lines Matching refs:argv
49 static int __trace_eprobe_create(int argc, const char *argv[]);
129 int argc, const char **argv, struct dyn_event *ev) in eprobe_dyn_event_match() argument
166 slash = strchr(argv[0], '/'); in eprobe_dyn_event_match()
168 slash = strchr(argv[0], '.'); in eprobe_dyn_event_match()
172 if (strncmp(ep->event_system, argv[0], slash - argv[0])) in eprobe_dyn_event_match()
178 argv++; in eprobe_dyn_event_match()
184 return trace_probe_match_command_args(&ep->tp, argc, argv); in eprobe_dyn_event_match()
804 static int trace_eprobe_tp_update_arg(struct trace_eprobe *ep, const char *argv[], int i) in trace_eprobe_tp_update_arg() argument
815 ret = traceprobe_parse_probe_arg(&ep->tp, i, argv[i], ctx); in trace_eprobe_tp_update_arg()
823 static int trace_eprobe_parse_filter(struct trace_eprobe *ep, int argc, const char *argv[]) in trace_eprobe_parse_filter() argument
836 len += strlen(argv[i]) + 1; in trace_eprobe_parse_filter()
845 ret = snprintf(p, len, " %s", argv[i]); in trace_eprobe_parse_filter()
847 ret = snprintf(p, len, "%s", argv[i]); in trace_eprobe_parse_filter()
869 static int __trace_eprobe_create(int argc, const char *argv[]) in __trace_eprobe_create() argument
887 if (argc < 2 || argv[0][0] != 'e') in __trace_eprobe_create()
890 trace_probe_log_init("event_probe", argc, argv); in __trace_eprobe_create()
892 event = strchr(&argv[0][1], ':'); in __trace_eprobe_create()
899 event - argv[0]); in __trace_eprobe_create()
905 sys_event = argv[1]; in __trace_eprobe_create()
925 if (!strcmp(argv[i], "if")) { in __trace_eprobe_create()
957 ret = trace_eprobe_parse_filter(ep, filter_cnt, argv + filter_idx); in __trace_eprobe_create()
963 argc -= 2; argv += 2; in __trace_eprobe_create()
967 ret = trace_eprobe_tp_update_arg(ep, argv, i); in __trace_eprobe_create()