Lines Matching refs:len
64 int len = *(u32 *)data >> 16; in PRINT_TYPE_FUNC_NAME() local
66 if (!len) in PRINT_TYPE_FUNC_NAME()
168 int i, len = 0, pos = 0; in __trace_probe_log_err() local
176 pos = len; in __trace_probe_log_err()
177 len += strlen(trace_probe_log.argv[i]) + 1; in __trace_probe_log_err()
179 command = kzalloc(len, GFP_KERNEL); in __trace_probe_log_err()
189 pos = len; in __trace_probe_log_err()
196 len = strlen(trace_probe_log.argv[i]); in __trace_probe_log_err()
198 p[len] = ' '; in __trace_probe_log_err()
199 p += len + 1; in __trace_probe_log_err()
235 int len; in traceprobe_parse_event_name() local
260 len = strlen(event); in traceprobe_parse_event_name()
261 if (len == 0) { in traceprobe_parse_event_name()
268 } else if (len > MAX_EVENT_NAME_LEN) { in traceprobe_parse_event_name()
286 int len; in parse_probe_vars() local
302 } else if ((len = str_has_prefix(arg, "stack"))) { in parse_probe_vars()
303 if (arg[len] == '\0') { in parse_probe_vars()
305 } else if (isdigit(arg[len])) { in parse_probe_vars()
306 ret = kstrtoul(arg + len, 10, ¶m); in parse_probe_vars()
324 (len = str_has_prefix(arg, "arg"))) { in parse_probe_vars()
325 ret = kstrtoul(arg + len, 10, ¶m); in parse_probe_vars()
358 size_t len = strlen(str); in __parse_imm_string() local
360 if (str[len - 1] != '"') { in __parse_imm_string()
361 trace_probe_log_err(offs + len, IMMSTR_NO_CLOSE); in __parse_imm_string()
364 *pbuf = kstrndup(str, len - 1, GFP_KERNEL); in __parse_imm_string()
572 int ret, len; in traceprobe_parse_probe_arg_body() local
579 len = strlen(arg); in traceprobe_parse_probe_arg_body()
580 if (len > MAX_ARGSTR_LEN) { in traceprobe_parse_probe_arg_body()
583 } else if (len == 0) { in traceprobe_parse_probe_arg_body()
647 len = strlen(parg->type->fmttype) + 6; in traceprobe_parse_probe_arg_body()
648 parg->fmt = kmalloc(len, GFP_KERNEL); in traceprobe_parse_probe_arg_body()
651 snprintf(parg->fmt, len, "%s[%d]", parg->type->fmttype, in traceprobe_parse_probe_arg_body()
889 #define LEN_OR_ZERO (len ? len - pos : 0)
890 static int __set_print_fmt(struct trace_probe *tp, char *buf, int len, in __set_print_fmt() argument
963 int len; in traceprobe_set_print_fmt() local
967 len = __set_print_fmt(tp, NULL, 0, ptype); in traceprobe_set_print_fmt()
968 print_fmt = kmalloc(len + 1, GFP_KERNEL); in traceprobe_set_print_fmt()
973 __set_print_fmt(tp, print_fmt, len + 1, ptype); in traceprobe_set_print_fmt()