HEX
Server: Apache/2.4.62 (Unix) OpenSSL/1.1.1k
System: Linux ns565604.ip-54-39-133.net 4.18.0-553.50.1.el8_10.x86_64 #1 SMP Tue Apr 15 08:09:22 EDT 2025 x86_64
User: greer489 (1034)
PHP: 8.3.19
Disabled: NONE
Upload Files
File: //lib/python3.6/site-packages/tuned/plugins/__pycache__/plugin_rtentsk.cpython-36.pyc
3

�<�eU�@s`ddlmZddlTddlZddlmZddlZddlZddl	Z	ej
j�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}tjtjtjtj�}|jtj||�||_t	j
d�dS)NTF�r�z*opened SOF_TIMESTAMPING_OPT_TX_SWHW socketi@)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.6/plugin_rtentsk.py�_instance_initszRTENTSKPlugin._instance_initcCs|j}|j�dS)N)r
�close)r
rrrrr�_instance_cleanup$szRTENTSKPlugin._instance_cleanupN)�__name__�
__module__�__qualname__�__doc__rrrrrrrsr)�rZ
decoratorsZ
tuned.logsZtunedZtuned.utils.commandsrZglobr	ZtimeZlogs�getrZPluginrrrrr�<module>s