• Home
  • Raw
  • Download

Lines Matching refs:field

435 	struct ftrace_event_field *field, *next;  in user_event_destroy_fields()  local
438 list_for_each_entry_safe(field, next, head, link) { in user_event_destroy_fields()
439 list_del(&field->link); in user_event_destroy_fields()
440 kfree(field); in user_event_destroy_fields()
449 struct ftrace_event_field *field; in user_event_add_field() local
452 field = kmalloc(sizeof(*field), GFP_KERNEL); in user_event_add_field()
454 if (!field) in user_event_add_field()
474 kfree(field); in user_event_add_field()
485 field->type = type; in user_event_add_field()
486 field->name = name; in user_event_add_field()
487 field->offset = offset; in user_event_add_field()
488 field->size = size; in user_event_add_field()
489 field->is_signed = is_signed; in user_event_add_field()
490 field->filter_type = filter_type; in user_event_add_field()
492 list_add(&field->link, &user->fields); in user_event_add_field()
507 static int user_event_parse_field(char *field, struct user_event *user, in user_event_parse_field() argument
515 field = skip_spaces(field); in user_event_parse_field()
517 if (*field == '\0') in user_event_parse_field()
521 len = str_has_prefix(field, "unsigned "); in user_event_parse_field()
525 len = str_has_prefix(field, "struct "); in user_event_parse_field()
531 len = str_has_prefix(field, "__data_loc unsigned "); in user_event_parse_field()
535 len = str_has_prefix(field, "__data_loc "); in user_event_parse_field()
539 len = str_has_prefix(field, "__rel_loc unsigned "); in user_event_parse_field()
543 len = str_has_prefix(field, "__rel_loc "); in user_event_parse_field()
549 type = field; in user_event_parse_field()
550 field = strpbrk(field + len, " "); in user_event_parse_field()
552 if (field == NULL) in user_event_parse_field()
555 *field++ = '\0'; in user_event_parse_field()
560 while ((part = strsep(&field, " ")) != NULL) { in user_event_parse_field()
600 char *field; in user_event_parse_fields() local
607 while ((field = strsep(&args, ";")) != NULL) { in user_event_parse_fields()
608 ret = user_event_parse_field(field, user, &offset); in user_event_parse_fields()
701 static int user_field_set_string(struct ftrace_event_field *field, in user_field_set_string() argument
706 pos += snprintf(buf + pos, LEN_OR_ZERO, "%s", field->type); in user_field_set_string()
708 pos += snprintf(buf + pos, LEN_OR_ZERO, "%s", field->name); in user_field_set_string()
710 if (str_has_prefix(field->type, "struct ")) in user_field_set_string()
711 pos += snprintf(buf + pos, LEN_OR_ZERO, " %d", field->size); in user_field_set_string()
721 struct ftrace_event_field *field, *next; in user_event_set_print_fmt() local
728 list_for_each_entry_safe_reverse(field, next, head, link) { in user_event_set_print_fmt()
733 field->name, user_field_format(field->type)); in user_event_set_print_fmt()
740 list_for_each_entry_safe_reverse(field, next, head, link) { in user_event_set_print_fmt()
741 if (user_field_is_dyn_string(field->type, &str_func)) in user_event_set_print_fmt()
743 ", %s(%s)", str_func, field->name); in user_event_set_print_fmt()
746 ", REC->%s", field->name); in user_event_set_print_fmt()
1129 struct ftrace_event_field *field, *next; in user_event_show() local
1137 list_for_each_entry_safe_reverse(field, next, head, link) { in user_event_show()
1143 seq_printf(m, "%s %s", field->type, field->name); in user_event_show()
1145 if (str_has_prefix(field->type, "struct ")) in user_event_show()
1146 seq_printf(m, " %d", field->size); in user_event_show()
1173 static bool user_field_match(struct ftrace_event_field *field, int argc, in user_field_match() argument
1186 len = user_field_set_string(field, field_name, 0, colon); in user_field_match()
1200 user_field_set_string(field, field_name, len, colon); in user_field_match()
1213 struct ftrace_event_field *field, *next; in user_fields_match() local
1217 list_for_each_entry_safe_reverse(field, next, head, link) in user_fields_match()
1218 if (!user_field_match(field, argc, argv, &i)) in user_fields_match()