| Server IP : 23.254.227.96 / Your IP : 216.73.216.21 Web Server : Apache/2.4.62 (Unix) OpenSSL/1.1.1k System : Linux hwsrv-1277026.hostwindsdns.com 4.18.0-477.13.1.el8_8.x86_64 #1 SMP Tue May 30 14:53:41 EDT 2023 x86_64 User : viralblo ( 1001) PHP Version : 8.1.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/lib/python3.6/site-packages/tuned/plugins/__pycache__/ |
Upload File : |
3
��cU � @ s` d dl mZ d dlT ddlZddlmZ ddlZddlZddl Z ej
j� ZG dd� dej
�ZdS )� )�base)�*� N)�commandsc @ s e Zd ZdZdd� 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).
c C sL d|_ d|_d}d}tjtjtjtj�}|jtj||� || _t j
d� d S )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�instanceZSO_TIMESTAMPZSOF_TIMESTAMPING_OPT_TX_SWHW�s� r �$/usr/lib/python3.6/plugin_rtentsk.py�_instance_init s zRTENTSKPlugin._instance_initc C s | j }|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 Zglobr ZtimeZlogs�getr ZPluginr r r r r �<module> s