File: //lib/python3.12/site-packages/tuned/plugins/__pycache__/plugin_rtentsk.cpython-312.pyc
�
�]�i � � � d dl mZ d dl� ddlZddlmZ ddlZddlZddl Z ej j � Z G d� dej � Zy)� )�base)�*� N)�commandsc � � e Zd ZdZd� Zd� Zy)�
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 �$ � d|_ d|_ d}d}t j t j t j t j
� }|j
t j ||� || _ t j d� y )NTF� i @ z*opened SOF_TIMESTAMPING_OPT_TX_SWHW socket)�_has_static_tuning�_has_dynamic_tuning�socket�AF_INET�
SOCK_DGRAM�IPPROTO_UDP�
setsockopt�
SOL_SOCKET�rtentsk_socket�log�info)�self�instance�SO_TIMESTAMP�SOF_TIMESTAMPING_OPT_TX_SWHW�ss �A/usr/lib/python3.12/site-packages/tuned/plugins/plugin_rtentsk.py�_instance_initzRTENTSKPlugin._instance_init sm � � $�(��!&�(��
�,�"'���m�m�F�N�N�F�$5�$5�v�7I�7I�J�!��,�,�v� � �,�0L�M��$���(�(�7�8� c �<