[PATCH openEuler-1.0-LTS v4 235/292] intel_th: gth: Factor out trace start/stop