Linux heracles.o2switch.net 4.18.0-553.62.1.lve.el8.x86_64 #1 SMP Mon Jul 21 17:50:35 UTC 2025 x86_64
/
lib
/
python3.6
/
site-packages
/
bcc
/
__pycache__
/
//lib/python3.6/site-packages/bcc/__pycache__/utils.cpython-36.opt-1.pyc
3 :�)g � @ s� d dl Zd dlZd dlZd dlZd dlZddlmZ dd� Zdd� Z dd � Z d d� Zej� Z ejdfdd �ZG dd� de�Zddd�ZdZdd� ZG dd� de�ZdS )� N� )�libc C s� g }t | d��|}|j� }xl|jd�D ]^}|jd�}|dkrJ|jt|�� q$t|d |� �}t||d d � �}|jt||d �� q$W W d Q R X |S )N�r�,�-r ���)�open�read�split�find�append�int�extend�range)�pathZcpus�fZcpus_range_strZ cpu_rangeZrangeop�start�end� r �/usr/lib/python3.6/utils.py�_read_cpu_range s "r c C s t d�S )Nz/sys/devices/system/cpu/online)r r r r r �get_online_cpus$ s r c C s t d�S )Nz /sys/devices/system/cpu/possible)r r r r r �get_possible_cpus'