Open derekhsu opened 7 years ago
host/host_linux_ppc64le.go
to host/host_linux_ppc64.go
and change // +build ppc64le
to // +build ppc64
?/proc/cpuinfo
?Hi @shirou ,
Yes I tried but I met a same problem in #230
# github.com/shirou/gopsutil/process
../../shirou/gopsutil/process/process_linux.go:559: undefined: PageSize
../../shirou/gopsutil/process/process_linux.go:560: undefined: PageSize
../../shirou/gopsutil/process/process_linux.go:581: undefined: PageSize
../../shirou/gopsutil/process/process_linux.go:582: undefined: PageSize
../../shirou/gopsutil/process/process_linux.go:583: undefined: PageSize
../../shirou/gopsutil/process/process_linux.go:584: undefined: PageSize
../../shirou/gopsutil/process/process_linux.go:585: undefined: PageSize
../../shirou/gopsutil/process/process_linux.go:586: undefined: PageSize
../../shirou/gopsutil/process/process_linux.go:723: undefined: ClockTicks
../../shirou/gopsutil/process/process_linux.go:724: undefined: ClockTicks
../../shirou/gopsutil/process/process_linux.go:724: too many errors
CPU info is listed below:
processor : 0
cpu : POWER7 (architected), altivec supported
clock : 4228.000000MHz
revision : 2.1 (pvr 004a 0201)
processor : 1
cpu : POWER7 (architected), altivec supported
clock : 4228.000000MHz
revision : 2.1 (pvr 004a 0201)
processor : 2
cpu : POWER7 (architected), altivec supported
clock : 4228.000000MHz
revision : 2.1 (pvr 004a 0201)
processor : 3
cpu : POWER7 (architected), altivec supported
clock : 4228.000000MHz
revision : 2.1 (pvr 004a 0201)
processor : 4
cpu : POWER7 (architected), altivec supported
clock : 4228.000000MHz
revision : 2.1 (pvr 004a 0201)
processor : 5
cpu : POWER7 (architected), altivec supported
clock : 4228.000000MHz
revision : 2.1 (pvr 004a 0201)
processor : 6
cpu : POWER7 (architected), altivec supported
clock : 4228.000000MHz
revision : 2.1 (pvr 004a 0201)
processor : 7
cpu : POWER7 (architected), altivec supported
clock : 4228.000000MHz
revision : 2.1 (pvr 004a 0201)
processor : 8
cpu : POWER7 (architected), altivec supported
clock : 4228.000000MHz
revision : 2.1 (pvr 004a 0201)
processor : 9
cpu : POWER7 (architected), altivec supported
clock : 4228.000000MHz
revision : 2.1 (pvr 004a 0201)
processor : 10
cpu : POWER7 (architected), altivec supported
clock : 4228.000000MHz
revision : 2.1 (pvr 004a 0201)
processor : 11
cpu : POWER7 (architected), altivec supported
clock : 4228.000000MHz
revision : 2.1 (pvr 004a 0201)
processor : 12
cpu : POWER7 (architected), altivec supported
clock : 4228.000000MHz
revision : 2.1 (pvr 004a 0201)
processor : 13
cpu : POWER7 (architected), altivec supported
clock : 4228.000000MHz
revision : 2.1 (pvr 004a 0201)
processor : 14
cpu : POWER7 (architected), altivec supported
clock : 4228.000000MHz
revision : 2.1 (pvr 004a 0201)
processor : 15
cpu : POWER7 (architected), altivec supported
clock : 4228.000000MHz
revision : 2.1 (pvr 004a 0201)
processor : 16
cpu : POWER7 (architected), altivec supported
clock : 4228.000000MHz
revision : 2.1 (pvr 004a 0201)
processor : 17
cpu : POWER7 (architected), altivec supported
clock : 4228.000000MHz
revision : 2.1 (pvr 004a 0201)
processor : 18
cpu : POWER7 (architected), altivec supported
clock : 4228.000000MHz
revision : 2.1 (pvr 004a 0201)
processor : 19
cpu : POWER7 (architected), altivec supported
clock : 4228.000000MHz
revision : 2.1 (pvr 004a 0201)
processor : 20
cpu : POWER7 (architected), altivec supported
clock : 4228.000000MHz
revision : 2.1 (pvr 004a 0201)
processor : 21
cpu : POWER7 (architected), altivec supported
clock : 4228.000000MHz
revision : 2.1 (pvr 004a 0201)
processor : 22
cpu : POWER7 (architected), altivec supported
clock : 4228.000000MHz
revision : 2.1 (pvr 004a 0201)
processor : 23
cpu : POWER7 (architected), altivec supported
clock : 4228.000000MHz
revision : 2.1 (pvr 004a 0201)
timebase : 512000000
platform : pSeries
model : IBM,8246-L1T
machine : CHRP IBM,8246-L1T
Thank you.
feature/ppc64
branch/proc/stat
to $GOPATH/src/github.com/shirou/gopsutil/cpu/expected/linux_ppc64/proc/stat
$GOPATH/src/github.com/shirou/gopsutil/cpu
HOST_PROC=expected/linux_ppc64/proc go test -run TestCpuInfo
Could you tell me what happend, or paste your /proc/stat
?
I just had the same problem with undefined: sizeOfUtmp
while building telegraf on ppc64.
I got it fixed by copying host/host_linux_ppc64.go
into the master branch.
Is there a chance to get the branch merged into master? Do you still need some information?
@thechristschn I can not confirm the PR works. If you can, please report on that PR branch, not just a coping. After that, I will merge it. thank you.
I am trying making gopsutil on PPC64 linux, but I got these error message:
I am not sure do you want support PPC64 arch.