3 À<×eUã@s`ddlmZddlTddlZddlmZddlZddlZddl Z ej j ƒZ Gdd„dej ƒZdS)é)Úbase)Ú*éN)Úcommandsc@s eZdZdZdd„Zdd„ZdS)Ú RTENTSKPluginzË `rtentsk`:: Plugin for avoiding interruptions due to static key IPIs due to opening socket with timestamping enabled (by opening a socket ourselves the static key is kept enabled). cCsLd|_d|_d}d}tjtjtjtjƒ}|jtj||ƒ||_t j dƒdS)NTFéréz*opened SOF_TIMESTAMPING_OPT_TX_SWHW socketi@) Z_has_static_tuningZ_has_dynamic_tuningÚsocketZAF_INETZ SOCK_DGRAMZ IPPROTO_UDPZ setsockoptZ SOL_SOCKETÚrtentsk_socketÚlogÚinfo)ÚselfÚinstanceZ SO_TIMESTAMPZSOF_TIMESTAMPING_OPT_TX_SWHWÚs©rú$/usr/lib/python3.6/plugin_rtentsk.pyÚ_instance_initszRTENTSKPlugin._instance_initcCs|j}|jƒdS)N)r Úclose)r rrrrrÚ_instance_cleanup$szRTENTSKPlugin._instance_cleanupN)Ú__name__Ú __module__Ú __qualname__Ú__doc__rrrrrrr sr)ÚrZ decoratorsZ tuned.logsZtunedZtuned.utils.commandsrZglobr ZtimeZlogsÚgetr ZPluginrrrrrÚs