Lines Matching refs:string
77 struct bt_ctf_field_type *string; member
161 static int string_set_value(struct bt_ctf_field *field, const char *string);
164 const char *name, const char *string) in value_set_string() argument
166 struct bt_ctf_field_type *type = cw->data.string; in value_set_string()
176 ret = string_set_value(field, string); in value_set_string()
197 return cw->data.string; in get_tracepoint_field_type()
255 static int string_set_value(struct bt_ctf_field *field, const char *string) in string_set_value() argument
258 size_t len = strlen(string), i, p; in string_set_value()
262 if (isprint(string[i])) { in string_set_value()
265 buffer[p] = string[i]; in string_set_value()
270 (unsigned int)(string[i]) & 0xff); in string_set_value()
275 pr_err("failed to set unprintable string '%s'\n", string); in string_set_value()
279 strncpy(buffer, string, i); in string_set_value()
287 return bt_ctf_field_string_set_value(field, string); in string_set_value()
912 __NON_SAMPLE_SET_FIELD(comm, string, comm); argument
933 __NON_SAMPLE_SET_FIELD(mmap, string, filename);
939 __NON_SAMPLE_SET_FIELD(mmap2, string, filename);
1261 __NON_SAMPLE_ADD_FIELD(string, comm);
1284 __NON_SAMPLE_ADD_FIELD(string, filename);
1291 __NON_SAMPLE_ADD_FIELD(string, filename);
1485 cw->data.string = bt_ctf_field_type_string_create(); in ctf_writer__init_data()
1486 if (cw->data.string) in ctf_writer__init_data()