HEX
Server: Apache
System: Linux insrv.serversdaddy.com 5.14.0-362.24.2.el9_3.x86_64 #1 SMP PREEMPT_DYNAMIC Sat Mar 30 14:11:54 EDT 2024 x86_64
User: jsaha (1066)
PHP: 8.3.6
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //lib/python3.9/site-packages/tuned/plugins/__pycache__/plugin_rtentsk.cpython-39.opt-1.pyc
a

Y��dU�@s`ddlmZddlTddlZddlmZddlZddlZddl	Z	ej
��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}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