Lines Matching refs:len
168 unsigned int len; in synth_field_string_size() local
180 len = end - start; in synth_field_string_size()
181 if (len > 3) in synth_field_string_size()
184 if (len == 0) in synth_field_string_size()
187 strncpy(buf, start, len); in synth_field_string_size()
188 buf[len] = '\0'; in synth_field_string_size()
401 unsigned int len = 0; in trace_string() local
413 len = strlen(str_val) + 1; in trace_string()
414 strscpy(str_field, str_val, len); in trace_string()
416 data_offset |= len << 16; in trace_string()
427 return len; in trace_string()
434 unsigned int i, n_u64, val_idx, len, data_size = 0; in trace_event_raw_event_synth() local
456 len = strlen(str_val) + 1; in trace_event_raw_event_synth()
458 fields_size += len; in trace_event_raw_event_synth()
478 len = trace_string(entry, event, str_val, in trace_event_raw_event_synth()
481 data_size += len; /* only dynamic string increments */ in trace_event_raw_event_synth()
521 char *buf, int len) in __set_synth_event_print_fmt() argument
528 #define LEN_OR_ZERO (len ? len - pos : 0) in __set_synth_event_print_fmt()
559 int len; in set_synth_event_print_fmt() local
562 len = __set_synth_event_print_fmt(event, NULL, 0); in set_synth_event_print_fmt()
564 print_fmt = kmalloc(len + 1, GFP_KERNEL); in set_synth_event_print_fmt()
569 __set_synth_event_print_fmt(event, print_fmt, len + 1); in set_synth_event_print_fmt()
587 int len, ret = -ENOMEM; in parse_synth_field() local
612 len = strlen(field_name); in parse_synth_field()
615 len -= strlen(array); in parse_synth_field()
616 else if (field_name[len - 1] == ';') in parse_synth_field()
617 len--; in parse_synth_field()
619 field->name = kmemdup_nul(field_name, len, GFP_KERNEL); in parse_synth_field()
631 len = strlen(field_type) + 1; in parse_synth_field()
634 len += strlen(array); in parse_synth_field()
637 len += strlen(prefix); in parse_synth_field()
639 field->type = kzalloc(len, GFP_KERNEL); in parse_synth_field()
643 seq_buf_init(&s, field->type, len); in parse_synth_field()
649 if (s.buffer[s.len - 1] == ';') in parse_synth_field()
650 s.len--; in parse_synth_field()
655 s.buffer[s.len] = '\0'; in parse_synth_field()
666 len = sizeof("__data_loc ") + strlen(field->type) + 1; in parse_synth_field()
667 type = kzalloc(len, GFP_KERNEL); in parse_synth_field()
671 seq_buf_init(&s, type, len); in parse_synth_field()
677 s.buffer[s.len] = '\0'; in parse_synth_field()
1186 buf[s.len] = 0; in save_cmdstr()
1520 unsigned int i, n_u64, len, data_size = 0; in synth_event_trace() local
1569 len = trace_string(state.entry, state.event, str_val, in synth_event_trace()
1572 data_size += len; /* only dynamic string increments */ in synth_event_trace()
1625 unsigned int i, n_u64, field_pos, len, data_size = 0; in synth_event_trace_array() local
1641 len = strlen(str_val) + 1; in synth_event_trace_array()
1642 data_size += len; in synth_event_trace_array()
1661 len = trace_string(state.entry, state.event, str_val, in synth_event_trace_array()
1664 data_size += len; /* only dynamic string increments */ in synth_event_trace_array()
1942 int len; in create_synth_event() local
1950 len = str_has_prefix(name, SYNTH_SYSTEM "/"); in create_synth_event()
1951 if (len == 0) in create_synth_event()
1953 name += len; in create_synth_event()