summaryrefslogtreecommitdiffstats
path: root/mof
diff options
context:
space:
mode:
authorPeter Schiffer <pschiffe@redhat.com>2013-03-06 13:16:25 +0100
committerPeter Schiffer <pschiffe@redhat.com>2013-03-06 13:16:25 +0100
commit7a0b251bcd55a26679bb99480f02948105947d05 (patch)
tree5b836c12b12ff900d1a069d44306b09189cb70c7 /mof
parent72f6010fc7dd68ea2ecd9431f906d077a7c20181 (diff)
downloadopenlmi-providers-7a0b251bcd55a26679bb99480f02948105947d05.tar.gz
openlmi-providers-7a0b251bcd55a26679bb99480f02948105947d05.tar.xz
openlmi-providers-7a0b251bcd55a26679bb99480f02948105947d05.zip
Created LMI_ProcessorProvider providing basic information about CPU. Main source
of information is dmidecode program, with additional information from lscpu program and /proc/cpuinfo file. If no output from dmidecode program is available, fallback with only lscpu and /proc/cpuinfo is used.
Diffstat (limited to 'mof')
-rw-r--r--mof/LMI_Hardware.mof111
1 files changed, 103 insertions, 8 deletions
diff --git a/mof/LMI_Hardware.mof b/mof/LMI_Hardware.mof
index 87d5741..4848ef1 100644
--- a/mof/LMI_Hardware.mof
+++ b/mof/LMI_Hardware.mof
@@ -16,20 +16,115 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*
* Authors: Tomas Smetana <tsmetana@redhat.com>
+ * Peter Schiffer <pschiffe@redhat.com>
*/
+[ Provider("cmpi:cmpiLMI_Processor") ]
+class LMI_Processor: CIM_Processor
+{
+ [ Description("System architecture.") ]
+ string Architecture;
+
+ /* Added "Multi-Core" characteristic from dmidecode program. */
+ [ Override("Characteristics"),
+ ValueMap { "0", "1", "2", "3", "4", "5", "6", "7", "8", "9..32567",
+ "32568", "32569..65535" },
+ Values { "Unknown", "DMTF Reserved", "64-bit Capable", "32-bit Capable",
+ "Enhanced Virtualization", "Hardware Thread", "NX-bit",
+ "Power/Performance Control", "Core Frequency Boosting",
+ "DMTF Reserved", "Multi-Core", "Vendor Reserved" } ]
+ uint16 Characteristics[];
+
+ /* Flag IDs and names are based on:
+ linux-3.8/arch/x86/include/asm/cpufeature.h */
+ [ Description ("Flags supported by Processor. "
+ "(Available only for x86 architecture.)"),
+ ValueMap {
+ /* 0*32 */
+ "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "11", "12", "13",
+ "14", "15", "16", "17", "18", "19", "21", "22", "23", "24", "25", "26",
+ "27", "28", "29", "30", "31",
+ /* 1*32 */
+ "43", "51", "52", "54", "57", "58", "59", "61", "62", "63",
+ /* 2*32 */
+ "64", "65", "67",
+ /* 3*32 */
+ "96", "97", "98", "99", "100", "101", "102", "103", "104", "105",
+ "106", "107", "108", "109", "110", "111", "112", "113", "114", "115",
+ "116", "118", "119", "120", "121", "122", "123", "124", "125",
+ /* 4*32 */
+ "128", "129", "130", "131", "132", "133", "134", "135", "136", "137",
+ "138", "140", "141", "142", "143", "145", "146", "147", "148", "149",
+ "150", "151", "152", "153", "154", "155", "156", "157", "158", "159",
+ /* 5*32 */
+ "162", "163", "166", "167", "168", "169", "170", "171", "172", "173",
+ /* 6*32 */
+ "192", "193", "194", "195", "196", "197", "198", "199", "200", "201",
+ "202", "203", "204", "205", "207", "208", "209", "211", "213", "214",
+ "215",
+ /* 7*32 */
+ "224", "225", "226", "227", "228", "229", "230", "231", "232",
+ /* 8*32 */
+ "256", "257", "258", "259", "260", "261", "262", "263", "264", "265",
+ "266", "267", "268", "269", "270",
+ /* 9*32 */
+ "288", "289", "291", "292", "293", "295", "296", "297", "298", "299",
+ "306", "307", "308" },
+ Values {
+ /* 0*32 */
+ "fpu", "vme", "de", "pse", "tsc", "msr", "pae", "mce", "cx8", "apic",
+ "sep", "mtrr", "pge", "mca", "cmov", "pat", "pse36", "pn", "clflush",
+ "dts", "acpi", "mmx", "fxsr", "sse", "sse2", "ss", "ht", "tm", "ia64",
+ "pbe",
+ /* 1*32 */
+ "syscall", "mp", "nx", "mmxext", "fxsr_opt", "pdpe1gb", "rdtscp", "lm",
+ "3dnowext", "3dnow",
+ /* 2*32 */
+ "recovery", "longrun", "lrti",
+ /* 3*32 */
+ "cxmmx", "k6_mtrr", "cyrix_arr", "centaur_mcr", "k8", "k7", "p3", "p4",
+ "constant_tsc", "up", "fxsave_leak", "arch_perfmon", "pebs", "bts",
+ "syscall32", "sysenter32", "rep_good", "mfence_rdtsc", "lfence_rdtsc",
+ "11ap", "nopl", "xtopology", "tsc_reliable", "nonstop_tsc",
+ "clflush_monitor", "extd_apicid", "amd_dcm", "aperfmperf", "eagerfpu",
+ /* 4*32 */
+ "pni", "pclmulqdq", "dtes64", "monitor", "ds_cpl", "vmx", "smx", "est",
+ "tm2", "ssse3", "cid", "fma", "cx16", "xtpr", "pdcm", "pcid", "dca",
+ "sse4_1", "sse4_2", "x2apic", "movbe", "popcnt", "tsc_deadline_timer",
+ "aes", "xsave", "osxsave", "avx", "f16c", "rdrand", "hypervisor",
+ /* 5*32 */
+ "rng", "rng_en", "ace", "ace_en", "ace2","ace2_en", "phe", "phe_en",
+ "pmm", "pmm_en",
+ /* 6*32 */
+ "lahf_lm", "cmp_legacy", "svm", "extapic", "cr8_legacy", "abm",
+ "sse4a", "misalignsse", "3dnowprefetch", "osvw", "ibs", "xop",
+ "skinit", "wdt", "lwp", "fma4", "tce", "nodeid_msr", "tbm", "topoext",
+ "perfctr_core",
+ /* 7*32 */
+ "ida", "arat", "cpb", "epb", "xsaveopt", "pln", "pts", "dtherm",
+ "hw_pstate",
+ /* 8*32 */
+ "tpr_shadow", "vnmi", "flexpriority", "ept", "vpid", "npt", "lbrv",
+ "svm_lock", "nrip_save", "tsc_scale", "vmcb_clean", "flushbyasid",
+ "decodeassists", "pausefilter", "pfthreshold",
+ /* 9*32 */
+ "fsgsbase", "tsc_adjust", "bmi1", "hle", "avx2", "smep", "bmi2",
+ "erms", "invpcid", "rtm", "rdseed", "adx", "smap" } ]
+ uint16 Flags[];
+};
+
[ Provider("cmpi:cmpiLMI_PCIDevice") ]
class LMI_PCIDevice: CIM_PCIDevice
{
- [ Description("Name of the subsystem") ]
- string SubsystemName;
+ [ Description("Name of the subsystem") ]
+ string SubsystemName;
- [ Description("Name of the subsystem vendor") ]
- string SubsystemVendorName;
+ [ Description("Name of the subsystem vendor") ]
+ string SubsystemVendorName;
- [ Description("Name of the device") ]
- string PCIDeviceName;
+ [ Description("Name of the device") ]
+ string PCIDeviceName;
- [ Description("Name of the vendor") ]
- string VendorName;
+ [ Description("Name of the vendor") ]
+ string VendorName;
};