<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstrap.min.css" rel="stylesheet"
        integrity="sha384-GLhlTQ8iRABdZLl6O3oVMWSktQOp6b7In1Zl3/Jr59b6EGGoI1aFkw7cmDA6j6gD" crossorigin="anonymous">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.3.0/css/all.min.css"
        integrity="sha512-SzlrxWUlpfuzQ+pcUCosxcglQRNAq/DZjVsC0lE40xsADsfeQoEypE+enwcOiGjk/bSuGGKHEyjSoQ1zVisanQ=="
        crossorigin="anonymous" referrerpolicy="no-referrer" />
</head>
</html>
3
À<×eU  ã               @   s`   d dl mZ d dlT ddlZddlmZ ddlZddlZddl	Z	ej
jƒ ZG dd„ dejƒZdS )é   )Úbase)Ú*é    N)Úcommandsc               @   s    e Zd ZdZdd„ Zdd„ ZdS )Ú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}tjtjtjtjƒ}|jtj||ƒ || _t	j
dƒ d S )NTFé   r   é   z*opened SOF_TIMESTAMPING_OPT_TX_SWHW socketi @  )Z_has_static_tuningZ_has_dynamic_tuningÚsocketZAF_INETZ
SOCK_DGRAMZIPPROTO_UDPZ
setsockoptZ
SOL_SOCKETÚrtentsk_socketÚlogÚinfo)ÚselfÚinstanceZSO_TIMESTAMPZSOF_TIMESTAMPING_OPT_TX_SWHWÚs© r   ú$/usr/lib/python3.6/plugin_rtentsk.pyÚ_instance_init   s    zRTENTSKPlugin._instance_initc             C   s   | j }|jƒ  d S )N)r
   Úclose)r   r   r   r   r   r   Ú_instance_cleanup$   s    zRTENTSKPlugin._instance_cleanupN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   r   r   r   r   r      s   r   )Ú r   Z
decoratorsZ
tuned.logsZtunedZtuned.utils.commandsr   Zglobr	   ZtimeZlogsÚgetr   ZPluginr   r   r   r   r   Ú<module>   s   
