160
160
hists__new_col_len(hists, HISTC_MEM_LVL, 21 + 3);
161
161
hists__new_col_len(hists, HISTC_LOCAL_WEIGHT, 12);
162
162
hists__new_col_len(hists, HISTC_GLOBAL_WEIGHT, 12);
165
hists__new_col_len(hists, HISTC_TRANSACTION,
166
hist_entry__transaction_len());
165
169
void hists__output_recalc_col_len(struct hists *hists, int max_rows)
405
struct hist_entry *__hists__add_mem_entry(struct hists *self,
406
struct addr_location *al,
407
struct symbol *sym_parent,
410
struct hist_entry *__hists__add_entry(struct hists *hists,
411
struct addr_location *al,
412
struct symbol *sym_parent,
413
struct branch_info *bi,
415
u64 period, u64 weight, u64 transaction)
412
417
struct hist_entry entry = {
413
418
.thread = al->thread,
419
.comm = thread__comm(al->thread),
419
429
.period = period,
420
430
.weight = weight,
426
432
.parent = sym_parent,
427
433
.filtered = symbol__parent_filter(sym_parent),
432
return add_hist_entry(self, &entry, al, period, weight);
435
struct hist_entry *__hists__add_branch_entry(struct hists *self,
436
struct addr_location *al,
437
struct symbol *sym_parent,
438
struct branch_info *bi,
442
struct hist_entry entry = {
443
.thread = al->thread,
456
.parent = sym_parent,
457
.filtered = symbol__parent_filter(sym_parent),
463
return add_hist_entry(self, &entry, al, period, weight);
466
struct hist_entry *__hists__add_entry(struct hists *self,
467
struct addr_location *al,
468
struct symbol *sym_parent, u64 period,
471
struct hist_entry entry = {
472
.thread = al->thread,
485
.parent = sym_parent,
486
.filtered = symbol__parent_filter(sym_parent),
492
return add_hist_entry(self, &entry, al, period, weight);
437
.transaction = transaction,
440
return add_hist_entry(hists, &entry, al, period, weight);