[PATCH 5.4 264/313] tracing/histograms: Add histograms to hist_vars if they have referenced variables