perf ui hists: Pass evsel to hpp->header/width functions explicitly
[deliverable/linux.git] / tools / perf / ui / gtk / hists.c
index 7912dab6e5fb8a42ca6b5bc60daa6983acf629fa..e395ef9b0ae00494187c089fde8c6b6a7a5259c4 100644 (file)
@@ -165,7 +165,6 @@ static void perf_gtk__show_hists(GtkWidget *window, struct hists *hists,
        struct perf_hpp hpp = {
                .buf            = s,
                .size           = sizeof(s),
-               .ptr            = hists_to_evsel(hists),
        };
 
        nr_cols = 0;
@@ -192,7 +191,7 @@ static void perf_gtk__show_hists(GtkWidget *window, struct hists *hists,
        col_idx = 0;
 
        perf_hpp__for_each_format(fmt) {
-               fmt->header(fmt, &hpp);
+               fmt->header(fmt, &hpp, hists_to_evsel(hists));
 
                gtk_tree_view_insert_column_with_attributes(GTK_TREE_VIEW(view),
                                                            -1, ltrim(s),
This page took 0.029981 seconds and 5 git commands to generate.