We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9e879f1 + 8bfbc92 commit b2e06deCopy full SHA for b2e06de
pkg/cpu/cpu_linux.go
@@ -101,6 +101,12 @@ func processorsGet(ctx *context.Context) []*Processor {
101
}
102
if len(lp.Attrs["model name"]) != 0 {
103
proc.Model = lp.Attrs["model name"]
104
+ } else if len(lp.Attrs["Processor"]) != 0 { // ARM
105
+ proc.Model = lp.Attrs["Processor"]
106
+ } else if len(lp.Attrs["cpu model"]) != 0 { // MIPS, ARM
107
+ proc.Model = lp.Attrs["cpu model"]
108
+ } else if len(lp.Attrs["Model Name"]) != 0 { // LoongArch
109
+ proc.Model = lp.Attrs["Model Name"]
110
} else if len(lp.Attrs["uarch"]) != 0 { // SiFive
111
proc.Model = lp.Attrs["uarch"]
112
0 commit comments