[PATCH openEuler-5.10-LTS 331/427] perf c2c: Use stdio interface if slang is not supported