[PATCH openEuler-1.0-LTS 077/316] perf scripting python: Avoid declaring function pointers with a visibility attribute