[PATCH 4.19.y] tracing/histograms: Add histograms to hist_vars if they have referenced variables