HEX
Server: Apache
System: Linux nc-ph-4101.simplemoneygoals.com 5.14.0-503.21.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Sun Jan 12 09:45:05 EST 2025 x86_64
User: dailygoldindex (1004)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: //lib/python3.9/site-packages/tuned/plugins/__pycache__/plugin_rtentsk.cpython-39.opt-1.pyc
a

,�g�@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_DGRAMZIPPROTO_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__rrrrrrrsr)�rZ
decoratorsZ
tuned.logsZtunedZtuned.utils.commandsr�globr�timeZlogs�getr
ZPluginrrrrr�<module>s