Lines Matching refs:len
64 int len = *(u32 *)data >> 16; in PRINT_TYPE_FUNC_NAME() local
66 if (!len) in PRINT_TYPE_FUNC_NAME()
166 int i, len = 0, pos = 0; in __trace_probe_log_err() local
174 pos = len; in __trace_probe_log_err()
175 len += strlen(trace_probe_log.argv[i]) + 1; in __trace_probe_log_err()
177 command = kzalloc(len, GFP_KERNEL); in __trace_probe_log_err()
187 pos = len; in __trace_probe_log_err()
194 len = strlen(trace_probe_log.argv[i]); in __trace_probe_log_err()
196 p[len] = ' '; in __trace_probe_log_err()
197 p += len + 1; in __trace_probe_log_err()
233 int len; in traceprobe_parse_event_name() local
255 len = strlen(event); in traceprobe_parse_event_name()
256 if (len == 0) { in traceprobe_parse_event_name()
259 } else if (len > MAX_EVENT_NAME_LEN) { in traceprobe_parse_event_name()
277 int len; in parse_probe_vars() local
286 } else if ((len = str_has_prefix(arg, "stack"))) { in parse_probe_vars()
287 if (arg[len] == '\0') { in parse_probe_vars()
289 } else if (isdigit(arg[len])) { in parse_probe_vars()
290 ret = kstrtoul(arg + len, 10, ¶m); in parse_probe_vars()
308 (len = str_has_prefix(arg, "arg"))) { in parse_probe_vars()
309 ret = kstrtoul(arg + len, 10, ¶m); in parse_probe_vars()
342 size_t len = strlen(str); in __parse_imm_string() local
344 if (str[len - 1] != '"') { in __parse_imm_string()
345 trace_probe_log_err(offs + len, IMMSTR_NO_CLOSE); in __parse_imm_string()
348 *pbuf = kstrndup(str, len - 1, GFP_KERNEL); in __parse_imm_string()
548 int ret, len; in traceprobe_parse_probe_arg_body() local
550 len = strlen(arg); in traceprobe_parse_probe_arg_body()
551 if (len > MAX_ARGSTR_LEN) { in traceprobe_parse_probe_arg_body()
554 } else if (len == 0) { in traceprobe_parse_probe_arg_body()
613 len = strlen(parg->type->fmttype) + 6; in traceprobe_parse_probe_arg_body()
614 parg->fmt = kmalloc(len, GFP_KERNEL); in traceprobe_parse_probe_arg_body()
617 snprintf(parg->fmt, len, "%s[%d]", parg->type->fmttype, in traceprobe_parse_probe_arg_body()
840 #define LEN_OR_ZERO (len ? len - pos : 0)
841 static int __set_print_fmt(struct trace_probe *tp, char *buf, int len, in __set_print_fmt() argument
904 int len; in traceprobe_set_print_fmt() local
908 len = __set_print_fmt(tp, NULL, 0, is_return); in traceprobe_set_print_fmt()
909 print_fmt = kmalloc(len + 1, GFP_KERNEL); in traceprobe_set_print_fmt()
914 __set_print_fmt(tp, print_fmt, len + 1, is_return); in traceprobe_set_print_fmt()