Lines Matching refs:hde
1892 static int hde_width(struct hpp_dynamic_entry *hde) in hde_width() argument
1894 if (!hde->hpp.len) { in hde_width()
1895 int len = hde->dynamic_len; in hde_width()
1896 int namelen = strlen(hde->field->name); in hde_width()
1897 int fieldlen = hde->field->size; in hde_width()
1902 if (!(hde->field->flags & FIELD_IS_STRING)) { in hde_width()
1904 fieldlen = hde->field->size * 2 + 2; in hde_width()
1909 hde->hpp.len = len; in hde_width()
1911 return hde->hpp.len; in hde_width()
1914 static void update_dynamic_len(struct hpp_dynamic_entry *hde, in update_dynamic_len() argument
1918 struct format_field *field = hde->field; in update_dynamic_len()
1922 if (hde->raw_trace) in update_dynamic_len()
1945 if (len > hde->dynamic_len) in update_dynamic_len()
1946 hde->dynamic_len = len; in update_dynamic_len()
1962 struct hpp_dynamic_entry *hde; in __sort__hde_header() local
1965 hde = container_of(fmt, struct hpp_dynamic_entry, hpp); in __sort__hde_header()
1968 len = hde_width(hde); in __sort__hde_header()
1970 return scnprintf(hpp->buf, hpp->size, "%*.*s", len, len, hde->field->name); in __sort__hde_header()
1977 struct hpp_dynamic_entry *hde; in __sort__hde_width() local
1980 hde = container_of(fmt, struct hpp_dynamic_entry, hpp); in __sort__hde_width()
1983 len = hde_width(hde); in __sort__hde_width()
1990 struct hpp_dynamic_entry *hde; in perf_hpp__defined_dynamic_entry() local
1992 hde = container_of(fmt, struct hpp_dynamic_entry, hpp); in perf_hpp__defined_dynamic_entry()
1994 return hists_to_evsel(hists) == hde->evsel; in perf_hpp__defined_dynamic_entry()
2000 struct hpp_dynamic_entry *hde; in __sort__hde_entry() local
2008 hde = container_of(fmt, struct hpp_dynamic_entry, hpp); in __sort__hde_entry()
2011 len = hde_width(hde); in __sort__hde_entry()
2013 if (hde->raw_trace) in __sort__hde_entry()
2019 field = hde->field; in __sort__hde_entry()
2050 tep_print_field(&seq, he->raw_data, hde->field); in __sort__hde_entry()
2062 struct hpp_dynamic_entry *hde; in __sort__hde_cmp() local
2066 hde = container_of(fmt, struct hpp_dynamic_entry, hpp); in __sort__hde_cmp()
2069 update_dynamic_len(hde, a); in __sort__hde_cmp()
2073 field = hde->field; in __sort__hde_cmp()
2082 if (size > hde->dynamic_len) in __sort__hde_cmp()
2083 hde->dynamic_len = size; in __sort__hde_cmp()
2113 struct hpp_dynamic_entry *hde; in hde_free() local
2115 hde = container_of(fmt, struct hpp_dynamic_entry, hpp); in hde_free()
2116 free(hde); in hde_free()
2123 struct hpp_dynamic_entry *hde; in __alloc_dynamic_entry() local
2125 hde = malloc(sizeof(*hde)); in __alloc_dynamic_entry()
2126 if (hde == NULL) { in __alloc_dynamic_entry()
2131 hde->evsel = evsel; in __alloc_dynamic_entry()
2132 hde->field = field; in __alloc_dynamic_entry()
2133 hde->dynamic_len = 0; in __alloc_dynamic_entry()
2135 hde->hpp.name = field->name; in __alloc_dynamic_entry()
2136 hde->hpp.header = __sort__hde_header; in __alloc_dynamic_entry()
2137 hde->hpp.width = __sort__hde_width; in __alloc_dynamic_entry()
2138 hde->hpp.entry = __sort__hde_entry; in __alloc_dynamic_entry()
2139 hde->hpp.color = NULL; in __alloc_dynamic_entry()
2141 hde->hpp.cmp = __sort__hde_cmp; in __alloc_dynamic_entry()
2142 hde->hpp.collapse = __sort__hde_cmp; in __alloc_dynamic_entry()
2143 hde->hpp.sort = __sort__hde_cmp; in __alloc_dynamic_entry()
2144 hde->hpp.equal = __sort__hde_equal; in __alloc_dynamic_entry()
2145 hde->hpp.free = hde_free; in __alloc_dynamic_entry()
2147 INIT_LIST_HEAD(&hde->hpp.list); in __alloc_dynamic_entry()
2148 INIT_LIST_HEAD(&hde->hpp.sort_list); in __alloc_dynamic_entry()
2149 hde->hpp.elide = false; in __alloc_dynamic_entry()
2150 hde->hpp.len = 0; in __alloc_dynamic_entry()
2151 hde->hpp.user_len = 0; in __alloc_dynamic_entry()
2152 hde->hpp.level = level; in __alloc_dynamic_entry()
2154 return hde; in __alloc_dynamic_entry()
2169 struct hpp_dynamic_entry *hde, *new_hde; in perf_hpp_fmt__dup() local
2171 hde = container_of(fmt, struct hpp_dynamic_entry, hpp); in perf_hpp_fmt__dup()
2172 new_hde = memdup(hde, sizeof(*hde)); in perf_hpp_fmt__dup()
2258 struct hpp_dynamic_entry *hde; in __dynamic_dimension__add() local
2260 hde = __alloc_dynamic_entry(evsel, field, level); in __dynamic_dimension__add()
2261 if (hde == NULL) in __dynamic_dimension__add()
2264 hde->raw_trace = raw_trace; in __dynamic_dimension__add()
2266 perf_hpp__register_sort_field(&hde->hpp); in __dynamic_dimension__add()