|
@@ -1839,20 +1839,24 @@ static inline int valid_hitm_or_store(struct hist_entry *he)
|
|
|
return has_hitm || c2c_he->stats.store;
|
|
|
}
|
|
|
|
|
|
-static void calc_width(struct hist_entry *he)
|
|
|
+static void calc_width(struct c2c_hist_entry *c2c_he)
|
|
|
{
|
|
|
struct c2c_hists *c2c_hists;
|
|
|
|
|
|
- c2c_hists = container_of(he->hists, struct c2c_hists, hists);
|
|
|
- hists__calc_col_len(&c2c_hists->hists, he);
|
|
|
+ c2c_hists = container_of(c2c_he->he.hists, struct c2c_hists, hists);
|
|
|
+ hists__calc_col_len(&c2c_hists->hists, &c2c_he->he);
|
|
|
}
|
|
|
|
|
|
static int filter_cb(struct hist_entry *he)
|
|
|
{
|
|
|
+ struct c2c_hist_entry *c2c_he;
|
|
|
+
|
|
|
+ c2c_he = container_of(he, struct c2c_hist_entry, he);
|
|
|
+
|
|
|
if (c2c.show_src && !he->srcline)
|
|
|
he->srcline = hist_entry__get_srcline(he);
|
|
|
|
|
|
- calc_width(he);
|
|
|
+ calc_width(c2c_he);
|
|
|
|
|
|
if (!valid_hitm_or_store(he))
|
|
|
he->filtered = HIST_FILTER__C2C;
|
|
@@ -1869,7 +1873,7 @@ static int resort_cl_cb(struct hist_entry *he)
|
|
|
c2c_he = container_of(he, struct c2c_hist_entry, he);
|
|
|
c2c_hists = c2c_he->hists;
|
|
|
|
|
|
- calc_width(he);
|
|
|
+ calc_width(c2c_he);
|
|
|
|
|
|
if (display && c2c_hists) {
|
|
|
static unsigned int idx;
|