Server IP : 172.24.0.40 / Your IP : 216.73.216.10 Web Server : Apache System : Linux dbweb26.ust.edu.ph 4.18.0-513.5.1.el8_9.x86_64 #1 SMP Fri Sep 29 05:21:10 EDT 2023 x86_64 User : apache ( 48) PHP Version : 8.2.18 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /lib64/python3.6/site-packages/rhsmlib/facts/__pycache__/ |
Upload File : |
3 a�e�: � @ s~ d dl mZmZmZ d dlZd dlZd dlZd dlZejde �Z G dd� de�ZG dd� de�Z G dd � d e�ZG d d� de�ZG dd � d e�ZG dd� de�ZG dd� de�ZG dd� de�ZG dd� de�ZG dd� de�ZG dd� de�Zdd� Zdd� Zdd� Zd d!� Zd"d#� Zd$d%� Zd&d'� ZG d(d)� d)e�ZG d*d+� d+e�Z G d,d-� d-e�Z!G d.d/� d/e�Z"G d0d1� d1e�Z#dS )2� )�print_function�division�absolute_importNz rhsm-app.c @ s e Zd ZdZdZdZdS )�DefaultCpuFieldsa| Maps generic cpuinfo fields to the corresponding field from ProcessorModel. For, a cpu MODEL (a number or string that the cpu vendor assigns to that model of cpu, '45' for an intel Xeon for example) is in the 'model' field in /proc/cpuinfo, and the 'model' in the sluggified field in X86_64ProcessorModel. For aarch64, the field 'cpu_part' is it's MODEL. � model_name�modelN)�__name__� __module__�__qualname__�__doc__� MODEL_NAME�MODEL� r r �/usr/lib64/python3.6/cpuinfo.pyr p s r c @ s e Zd ZdZdZdS )�X86_64Fieldsr r N)r r r r r r r r r r } s r c @ s e Zd ZdZdZdS )� Aarch64FieldsZcpu_partr N)r r r r r r r r r r � s r c @ s e Zd ZdZdZdS )�Ppc64Fieldsr �machineN)r r r r r r r r r r � s r c @ sF e Zd ZeZddd�Zedd� �Zedd� �Zedd � �Z d d� Z dS ) �CpuinfoModelNc C s( || _ g | _g | _i | _d | _d | _d S )N)�cpuinfo_data� processors�other�common�_model_name�_model)�selfr r r r �__init__� s zCpuinfoModel.__init__c C s t | j�S )N)�lenr )r r r r �count� s zCpuinfoModel.countc C s( | j r| j S | jsd S | jj| jjd �S )N)r r �get�fields_classr )r r r r r � s zCpuinfoModel.model_namec C s( | j r| j S | jsd S | jj| jjd �S )N)r r r r r )r r r r r � s zCpuinfoModel.modelc C s� g }|j d| j � |j d| j � |j d� x.t| jj� �D ]}|j d|| j| f � q>W |j d� x$| jD ]\}}|j d||f � qpW |j d� dj|�S )NzProcessor count: %szmodel_name: %s� z%s: %s� )�appendr r �sortedr �keysr �join)r �lines�k�vr r r �__str__� s zCpuinfoModel.__str__)N)r r r r r r �propertyr r r r* r r r r r � s r c @ s e Zd ZdZdS )�Aarch64ProcessorModelzPThe info corresponding to the info about each aarch64 processor entry in cpuinfoN)r r r r r r r r r, � s r, c @ s e Zd ZdZdS )�X86_64ProcessorModelzOThe info corresponding to the info about each X86_64 processor entry in cpuinfoN)r r r r r r r r r- � s r- c @ s e Zd ZdZedd� �ZdS )�Ppc64ProcessorModelzNThe info corresponding to the info about each ppc64 processor entry in cpuinfoc C s"