✏️ 编辑:unix_socket_exporter.cpython-39.pyc
路径:
/usr/lib/python3.9/site-packages/tuned/exports/__pycache__/unix_socket_exporter.cpython-39.pyc
大小:8.57 KB · 修改:2026-07-21 16:54:01 · 权限:0644 · 只读(保存会失败)
← 返回目录
👁 查看
⬇ 下载
检测到二进制内容,直接保存可能损坏文件。请改用「上传替换」。
a �]�i� � @ s� d dl Z d dlZd dlZd dlZddlmZ d dlZd dlm Z d dl mZ d dlZd dl Z d dlZej�� ZG dd� dej�ZdS )� N� )� interfaces)�ismethodc @ s� e Zd ZdZejejejejej fdd�Z dd� Zdd� Zdd � Z d d� Zdd � Zdd� Zdd� Zdd� Zdd� Zd$dd�Zd%dd�Zdd� Zdd� Zd d!� Zd"d#� ZdS )&�UnixSocketExportera9 Export method calls through Unix Domain Socket Interface. We take a method to be exported and create a simple wrapper function to call it. This is required as we need the original function to be bound to the original object instance. While the wrapper will be bound to an object we dynamically construct. c C s� || _ d | _|| _g | _ddg| _|r�|�� }t|d d� �D ]�\}}zt|�| j|<