[PATCH openEuler-1.0-LTS 2/2] tracing/histograms: Return an error if we fail to add histogram to hist_vars list