Lines Matching defs:string
77 struct bt_ctf_field_type *string;
161 static int string_set_value(struct bt_ctf_field *field, const char *string);
164 const char *name, const char *string)
166 struct bt_ctf_field_type *type = cw->data.string;
176 ret = string_set_value(field, string);
197 return cw->data.string;
255 static int string_set_value(struct bt_ctf_field *field, const char *string)
258 size_t len = strlen(string), i, p;
262 if (isprint(string[i])) {
265 buffer[p] = string[i];
270 (unsigned int)(string[i]) & 0xff);
275 pr_err("failed to set unprintable string '%s'\n", string);
279 strncpy(buffer, string, i);
287 return bt_ctf_field_string_set_value(field, string);
912 __NON_SAMPLE_SET_FIELD(comm, string, comm);
933 __NON_SAMPLE_SET_FIELD(mmap, string, filename);
939 __NON_SAMPLE_SET_FIELD(mmap2, string, filename);
1038 * A string is an array of chars. For this we use the string
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();
1486 if (cw->data.string)