Lines Matching refs:hde

2917 static int hde_width(struct hpp_dynamic_entry *hde)  in hde_width()  argument
2919 if (!hde->hpp.len) { in hde_width()
2920 int len = hde->dynamic_len; in hde_width()
2921 int namelen = strlen(hde->field->name); in hde_width()
2922 int fieldlen = hde->field->size; in hde_width()
2927 if (!(hde->field->flags & TEP_FIELD_IS_STRING)) { in hde_width()
2929 fieldlen = hde->field->size * 2 + 2; in hde_width()
2934 hde->hpp.len = len; in hde_width()
2936 return hde->hpp.len; in hde_width()
2939 static void update_dynamic_len(struct hpp_dynamic_entry *hde, in update_dynamic_len() argument
2943 struct tep_format_field *field = hde->field; in update_dynamic_len()
2947 if (hde->raw_trace) in update_dynamic_len()
2970 if (len > hde->dynamic_len) in update_dynamic_len()
2971 hde->dynamic_len = len; in update_dynamic_len()
2987 struct hpp_dynamic_entry *hde; in __sort__hde_header() local
2990 hde = container_of(fmt, struct hpp_dynamic_entry, hpp); in __sort__hde_header()
2993 len = hde_width(hde); in __sort__hde_header()
2995 return scnprintf(hpp->buf, hpp->size, "%*.*s", len, len, hde->field->name); in __sort__hde_header()
3002 struct hpp_dynamic_entry *hde; in __sort__hde_width() local
3005 hde = container_of(fmt, struct hpp_dynamic_entry, hpp); in __sort__hde_width()
3008 len = hde_width(hde); in __sort__hde_width()
3015 struct hpp_dynamic_entry *hde; in perf_hpp__defined_dynamic_entry() local
3017 hde = container_of(fmt, struct hpp_dynamic_entry, hpp); in perf_hpp__defined_dynamic_entry()
3019 return hists_to_evsel(hists) == hde->evsel; in perf_hpp__defined_dynamic_entry()
3025 struct hpp_dynamic_entry *hde; in __sort__hde_entry() local
3033 hde = container_of(fmt, struct hpp_dynamic_entry, hpp); in __sort__hde_entry()
3036 len = hde_width(hde); in __sort__hde_entry()
3038 if (hde->raw_trace) in __sort__hde_entry()
3044 field = hde->field; in __sort__hde_entry()
3075 tep_print_field(&seq, he->raw_data, hde->field); in __sort__hde_entry()
3087 struct hpp_dynamic_entry *hde; in __sort__hde_cmp() local
3091 hde = container_of(fmt, struct hpp_dynamic_entry, hpp); in __sort__hde_cmp()
3093 field = hde->field; in __sort__hde_cmp()
3103 if (size > hde->dynamic_len) in __sort__hde_cmp()
3104 hde->dynamic_len = size; in __sort__hde_cmp()
3134 struct hpp_dynamic_entry *hde; in hde_free() local
3136 hde = container_of(fmt, struct hpp_dynamic_entry, hpp); in hde_free()
3137 free(hde); in hde_free()
3142 struct hpp_dynamic_entry *hde; in __sort__hde_init() local
3147 hde = container_of(fmt, struct hpp_dynamic_entry, hpp); in __sort__hde_init()
3148 update_dynamic_len(hde, he); in __sort__hde_init()
3155 struct hpp_dynamic_entry *hde; in __alloc_dynamic_entry() local
3157 hde = malloc(sizeof(*hde)); in __alloc_dynamic_entry()
3158 if (hde == NULL) { in __alloc_dynamic_entry()
3163 hde->evsel = evsel; in __alloc_dynamic_entry()
3164 hde->field = field; in __alloc_dynamic_entry()
3165 hde->dynamic_len = 0; in __alloc_dynamic_entry()
3167 hde->hpp.name = field->name; in __alloc_dynamic_entry()
3168 hde->hpp.header = __sort__hde_header; in __alloc_dynamic_entry()
3169 hde->hpp.width = __sort__hde_width; in __alloc_dynamic_entry()
3170 hde->hpp.entry = __sort__hde_entry; in __alloc_dynamic_entry()
3171 hde->hpp.color = NULL; in __alloc_dynamic_entry()
3173 hde->hpp.init = __sort__hde_init; in __alloc_dynamic_entry()
3174 hde->hpp.cmp = __sort__hde_cmp; in __alloc_dynamic_entry()
3175 hde->hpp.collapse = __sort__hde_cmp; in __alloc_dynamic_entry()
3176 hde->hpp.sort = __sort__hde_cmp; in __alloc_dynamic_entry()
3177 hde->hpp.equal = __sort__hde_equal; in __alloc_dynamic_entry()
3178 hde->hpp.free = hde_free; in __alloc_dynamic_entry()
3180 INIT_LIST_HEAD(&hde->hpp.list); in __alloc_dynamic_entry()
3181 INIT_LIST_HEAD(&hde->hpp.sort_list); in __alloc_dynamic_entry()
3182 hde->hpp.elide = false; in __alloc_dynamic_entry()
3183 hde->hpp.len = 0; in __alloc_dynamic_entry()
3184 hde->hpp.user_len = 0; in __alloc_dynamic_entry()
3185 hde->hpp.level = level; in __alloc_dynamic_entry()
3187 return hde; in __alloc_dynamic_entry()
3204 struct hpp_dynamic_entry *hde, *new_hde; in perf_hpp_fmt__dup() local
3206 hde = container_of(fmt, struct hpp_dynamic_entry, hpp); in perf_hpp_fmt__dup()
3207 new_hde = memdup(hde, sizeof(*hde)); in perf_hpp_fmt__dup()
3295 struct hpp_dynamic_entry *hde; in __dynamic_dimension__add() local
3297 hde = __alloc_dynamic_entry(evsel, field, level); in __dynamic_dimension__add()
3298 if (hde == NULL) in __dynamic_dimension__add()
3301 hde->raw_trace = raw_trace; in __dynamic_dimension__add()
3303 perf_hpp__register_sort_field(&hde->hpp); in __dynamic_dimension__add()