[PATCH openEuler-1.0-LTS 1/2] tracing/histograms: Add histograms to hist_vars if they have referenced variables