Lines Matching refs:string
73 struct bt_ctf_field_type *string; member
157 static int string_set_value(struct bt_ctf_field *field, const char *string);
160 const char *name, const char *string) in value_set_string() argument
162 struct bt_ctf_field_type *type = cw->data.string; in value_set_string()
172 ret = string_set_value(field, string); in value_set_string()
193 return cw->data.string; in get_tracepoint_field_type()
251 static int string_set_value(struct bt_ctf_field *field, const char *string) in string_set_value() argument
254 size_t len = strlen(string), i, p; in string_set_value()
258 if (isprint(string[i])) { in string_set_value()
261 buffer[p] = string[i]; in string_set_value()
266 (unsigned int)(string[i]) & 0xff); in string_set_value()
271 pr_err("failed to set unprintable string '%s'\n", string); in string_set_value()
275 strncpy(buffer, string, i); in string_set_value()
283 return bt_ctf_field_string_set_value(field, string); in string_set_value()
906 __NON_SAMPLE_SET_FIELD(comm, string, comm); argument
927 __NON_SAMPLE_SET_FIELD(mmap, string, filename);
933 __NON_SAMPLE_SET_FIELD(mmap2, string, filename);
1255 __NON_SAMPLE_ADD_FIELD(string, comm);
1278 __NON_SAMPLE_ADD_FIELD(string, filename);
1285 __NON_SAMPLE_ADD_FIELD(string, filename);
1479 cw->data.string = bt_ctf_field_type_string_create(); in ctf_writer__init_data()
1480 if (cw->data.string) in ctf_writer__init_data()