| 1 | // SPDX-License-Identifier: GPL-3.0-or-latercxx . . $ `<file>/src/core/info/common/cpuinfoproccpuinfo.h`/ |
| 2 | // Copyright 2019 Juan Palacios <[email protected]> |
| 3 | |
| 4 | #pragma once |
| 5 | |
| 6 | #include "../icpuinfo.h"cxx . . $ `<file>/src/core/info/icpuinfo.h`/ |
| 7 | #include "core/idatasource.h"cxx . . $ `<file>/src/core/idatasource.h`/ |
| 8 | #include <memory> |
| 9 | #include <string> |
| 10 | #include <string_view> |
| 11 | #include <utility> |
| 12 | #include <vector> |
| 13 | |
| 14 | class CPUInfoProcCpuInfocxx . . $ CPUInfoProcCpuInfo# final : public ICPUInfocxx . . $ ICPUInfo#::IProvidercxx . . $ ICPUInfo#IProvider# |
| 15 | { |
| 16 | public: |
| 17 | CPUInfoProcCpuInfocxx . . $ CPUInfoProcCpuInfo#CPUInfoProcCpuInfo(2fc9eef85304919b).(stdcxx . . $ std/::unique_ptrcxx . . $ std/unique_ptr#<IDataSourcecxx . . $ IDataSource#<stdcxx . . $ std/::vectorcxx . . $ std/vector#<stdcxx . . $ std/::stringcxx . . $ std/string#>>> |
| 18 | &&dataSource) noexcept; |
| 19 | |
| 20 | stdcxx . . $ std/::vectorcxx . . $ std/vector#<stdcxx . . $ std/::paircxx . . $ std/pair#<stdcxx . . $ std/::stringcxx . . $ std/string#, stdcxx . . $ std/::stringcxx . . $ std/string#>> provideInfocxx . . $ CPUInfoProcCpuInfo#provideInfo(ba0be1eb8c175b81).( |
| 21 | int physicalId, |
| 22 | stdcxx . . $ std/::vectorcxx . . $ std/vector#<ICPUInfocxx . . $ ICPUInfo#::ExecutionUnitcxx . . $ ICPUInfo#ExecutionUnit#> const &executionUnits) override; |
| 23 | |
| 24 | stdcxx . . $ std/::vectorcxx . . $ std/vector#<stdcxx . . $ std/::stringcxx . . $ std/string#> provideCapabilitiescxx . . $ CPUInfoProcCpuInfo#provideCapabilities(61866227792b2a60).( |
| 25 | int physicalId, |
| 26 | stdcxx . . $ std/::vectorcxx . . $ std/vector#<ICPUInfocxx . . $ ICPUInfo#::ExecutionUnitcxx . . $ ICPUInfo#ExecutionUnit#> const &executionUnits) override; |
| 27 | |
| 28 | private: |
| 29 | void addInfocxx . . $ CPUInfoProcCpuInfo#addInfo(11ee9c4fbcc7b2ce).(stdcxx . . $ std/::string_viewcxx . . $ std/string_view# target, stdcxx . . $ std/::string_viewcxx . . $ std/string_view# key, int cpuId, |
| 30 | stdcxx . . $ std/::vectorcxx . . $ std/vector#<stdcxx . . $ std/::paircxx . . $ std/pair#<stdcxx . . $ std/::stringcxx . . $ std/string#, stdcxx . . $ std/::stringcxx . . $ std/string#>> &info, |
| 31 | stdcxx . . $ std/::vectorcxx . . $ std/vector#<stdcxx . . $ std/::stringcxx . . $ std/string#> const &lines) const; |
| 32 | |
| 33 | stdcxx . . $ std/::unique_ptrcxx . . $ std/unique_ptr#<IDataSourcecxx . . $ IDataSource#<stdcxx . . $ std/::vectorcxx . . $ std/vector#<stdcxx . . $ std/::stringcxx . . $ std/string#>>> const dataSource_cxx . . $ CPUInfoProcCpuInfo#dataSource_.; |
| 34 | static bool registered_cxx . . $ CPUInfoProcCpuInfo#registered_.; |
| 35 | }; |