[PATCH 5.15 510/532] tracing/histograms: Add histograms to hist_vars if they have referenced variables