a
Á]›i ã @ s` d dl mZ d dlT ddlZddlmZ ddlZddlZddl Z ej
¡ ZG dd„ dej
ƒZdS )é )Úbase)Ú*é N)Úcommandsc @ s e Zd ZdZdd„ 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.
c C sL d|_ d|_d}d}t tjtjtj¡}| tj||¡ || _t
d¡ d S )NTFé i @ z*opened SOF_TIMESTAMPING_OPT_TX_SWHW socket)Z_has_static_tuningZ_has_dynamic_tuningÚsocketZAF_INETZ
SOCK_DGRAMZIPPROTO_UDPZ
setsockoptZ
SOL_SOCKETÚrtentsk_socketÚlogÚinfo)ÚselfÚinstanceZSO_TIMESTAMPZSOF_TIMESTAMPING_OPT_TX_SWHWÚs© r ú@/usr/lib/python3.9/site-packages/tuned/plugins/plugin_rtentsk.pyÚ_instance_init s zRTENTSKPlugin._instance_initc C s | j }| ¡ d S )N)r Úclose)r r
r r r r Ú_instance_cleanup$ s zRTENTSKPlugin._instance_cleanupN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r r r r r r r s r )Ú r Z
decoratorsZ
tuned.logsZtunedZtuned.utils.commandsr Úglobr ÚtimeZlogsÚgetr
ZPluginr r r r r Ú