/usr/lib/python3.9/site-packages/tuned/profiles/functions/__pycache__
a ,�g� � @ s\ d dl Z d dlZddlmZ d dlmZ d dlmZ e�� Z e� Z dZG dd� dej�Z dS ) � N� )�base)�commands)�logsz/sys/devices/system/cpu/c s, e Zd ZdZ� fdd�Z� fdd�Z� ZS )�package2cpusz3 Provides cpu device list for a package (socket) c s t t| ��dd� d S )Nr r )�superr �__init__)�self�� __class__� �R/usr/lib/python3.9/site-packages/tuned/profiles/functions/function_package2cpus.pyr s zpackage2cpus.__init__c s8 t t| ��|�sd S t|�dkr$d S zt�t�t�d�}W n t yN Y d S 0 g }|D ]�}t| d }tj �|�s�t� d| � qXt�|�}zt|�}W n( ty� t� d||f � Y qXY n0 |D ]P}zt|�} W n, t�y t�||��r |�|� Y q�0 || kr�|�|� q�qXt|�dk�r4d�|�S d S )Nr z cpu[0-9]*z/topology/physical_package_idzFile '%s' does not existz$Invalid package id '%s' for cpu '%s'�,)r r �execute�len�fnmatch�filter�os�listdir� SYSFS_DIR�OSError�path�exists�logZwarning�cmdZ read_file�int� ValueError�append�join) r �argsZall_cpusZdevicesZcpu�f�valueZ package_idZpackage_patternZthis_package_idr r r r s: zpackage2cpus.execute)�__name__� __module__�__qualname__�__doc__r r � __classcell__r r r r r s r )r r � r Ztuned.utils.commandsr Ztunedr �getr r r ZFunctionr r r r r �<module> s
.
Edit
..
Edit
__init__.cpython-39.opt-1.pyc
Edit
__init__.cpython-39.pyc
Edit
base.cpython-39.opt-1.pyc
Edit
base.cpython-39.pyc
Edit
function_assertion.cpython-39.opt-1.pyc
Edit
function_assertion.cpython-39.pyc
Edit
function_assertion_non_equal.cpython-39.opt-1.pyc
Edit
function_assertion_non_equal.cpython-39.pyc
Edit
function_calc_isolated_cores.cpython-39.opt-1.pyc
Edit
function_calc_isolated_cores.cpython-39.pyc
Edit
function_check_net_queue_count.cpython-39.opt-1.pyc
Edit
function_check_net_queue_count.cpython-39.pyc
Edit
function_cpuinfo_check.cpython-39.opt-1.pyc
Edit
function_cpuinfo_check.cpython-39.pyc
Edit
function_cpulist2devs.cpython-39.opt-1.pyc
Edit
function_cpulist2devs.cpython-39.pyc
Edit
function_cpulist2hex.cpython-39.opt-1.pyc
Edit
function_cpulist2hex.cpython-39.pyc
Edit
function_cpulist2hex_invert.cpython-39.opt-1.pyc
Edit
function_cpulist2hex_invert.cpython-39.pyc
Edit
function_cpulist_invert.cpython-39.opt-1.pyc
Edit
function_cpulist_invert.cpython-39.pyc
Edit
function_cpulist_online.cpython-39.opt-1.pyc
Edit
function_cpulist_online.cpython-39.pyc
Edit
function_cpulist_pack.cpython-39.opt-1.pyc
Edit
function_cpulist_pack.cpython-39.pyc
Edit
function_cpulist_present.cpython-39.opt-1.pyc
Edit
function_cpulist_present.cpython-39.pyc
Edit
function_cpulist_unpack.cpython-39.opt-1.pyc
Edit
function_cpulist_unpack.cpython-39.pyc
Edit
function_exec.cpython-39.opt-1.pyc
Edit
function_exec.cpython-39.pyc
Edit
function_hex2cpulist.cpython-39.opt-1.pyc
Edit
function_hex2cpulist.cpython-39.pyc
Edit
function_intel_recommended_pstate.cpython-39.opt-1.pyc
Edit
function_intel_recommended_pstate.cpython-39.pyc
Edit
function_kb2s.cpython-39.opt-1.pyc
Edit
function_kb2s.cpython-39.pyc
Edit
function_log.cpython-39.opt-1.pyc
Edit
function_log.cpython-39.pyc
Edit
function_lscpu_check.cpython-39.opt-1.pyc
Edit
function_lscpu_check.cpython-39.pyc
Edit
function_package2cpus.cpython-39.opt-1.pyc
Edit
function_package2cpus.cpython-39.pyc
Edit
function_package2uncores.cpython-39.opt-1.pyc
Edit
function_package2uncores.cpython-39.pyc
Edit
function_regex_search_ternary.cpython-39.opt-1.pyc
Edit
function_regex_search_ternary.cpython-39.pyc
Edit
function_s2kb.cpython-39.opt-1.pyc
Edit
function_s2kb.cpython-39.pyc
Edit
function_strip.cpython-39.opt-1.pyc
Edit
function_strip.cpython-39.pyc
Edit
function_virt_check.cpython-39.opt-1.pyc
Edit
function_virt_check.cpython-39.pyc
Edit
parser.cpython-39.opt-1.pyc
Edit
parser.cpython-39.pyc
Edit
repository.cpython-39.opt-1.pyc
Edit
repository.cpython-39.pyc
Edit