Your IP : 18.119.166.34
3
�<�eU � @ 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