Home
last modified time | relevance | path

Searched refs:struct_offset (Results 1 – 1 of 1) sorted by relevance

/linux/tools/perf/
H A Dbuiltin-trace.c3661 char *struct_offset, *tmp, name[32]; local
3677 struct_offset = strstr(field->type, "struct ");
3678 if (struct_offset == NULL)
3679 struct_offset = strstr(field->type, "union ");
3681 struct_offset++; // "union" is shorter
3683 …if (field->flags & TEP_FIELD_IS_POINTER && struct_offset) { /* struct or union (think BPF's attr a…
3684 struct_offset += 6;
3687 for (tmp = struct_offset, cnt = 0; *tmp != ' ' && *tmp != '\0'; ++tmp, ++cnt) {
3690 strncpy(name, struct_offset, cnt);