a ”ˆ«hã@s`ddlmZddlTddlZddlmZddlZddlZddl Z ej   ¡Z Gdd„dej ƒZdS)é)Úbase)Ú*éN)Úcommandsc@s eZdZdZdd„Zdd„ZdS)Ú RTENTSKPluginzõ A plug-in for avoiding inter-processor interrupts caused by enabling or disabling static keys. The plug-in has no options; when included, **TuneD** will keep an open socket with timestamping enabled, thus keeping the static key enabled. cCsLd|_d|_d}d}t tjtjtj¡}| tj||¡||_t   d¡dS)NTFéi@z*opened SOF_TIMESTAMPING_OPT_TX_SWHW socket) 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.9/site-packages/tuned/plugins/plugin_rtentsk.pyÚ_instance_initszRTENTSKPlugin._instance_initcCs|j}| ¡dS)N)r Úclose)r r rrrrÚ_instance_cleanup$szRTENTSKPlugin._instance_cleanupN)Ú__name__Ú __module__Ú __qualname__Ú__doc__rrrrrrr sr)ÚrZ decoratorsZ tuned.logsZtunedZtuned.utils.commandsrÚglobrÚtimeZlogsÚgetr ZPluginrrrrrÚs