Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

host: add support for linux/loong64 #1228

Merged
merged 2 commits into from
Feb 12, 2023
Merged

host: add support for linux/loong64 #1228

merged 2 commits into from
Feb 12, 2023

Conversation

abner-chenc
Copy link
Contributor

Signed-off-by: Guoqi Chen chenguoqi@loongson.cn
Co-authored-by: Jiantao Shan shanjiantao@loongson.cn

@abner-chenc
Copy link
Contributor Author

There is already a pull request for loong64 support, but it has been turned off. see #1080. by @merore

go version && go test ./...

go version devel go1.18-9dfe8c02b8 Mon Jan 10 21:40:35 2022 +0800 linux/loong64
?       github.com/shirou/gopsutil/v3   [no test files]
ok      github.com/shirou/gopsutil/v3/cpu       0.160s
ok      github.com/shirou/gopsutil/v3/disk      0.010s
ok      github.com/shirou/gopsutil/v3/docker    0.025s
ok      github.com/shirou/gopsutil/v3/host      0.020s
ok      github.com/shirou/gopsutil/v3/internal/common   0.066s
ok      github.com/shirou/gopsutil/v3/load      0.021s
ok      github.com/shirou/gopsutil/v3/mem       0.013s
ok      github.com/shirou/gopsutil/v3/net       0.028s
ok      github.com/shirou/gopsutil/v3/process   2.532s

@shirou
Copy link
Owner

shirou commented Aug 6, 2022

go1.19 which supports LoongArch 64-bit has been released. I will merge when 1.18 becomes EoL. Otherwise, test will fail.

@irwinsun
Copy link

go1.19 which supports LoongArch 64-bit has been released. I will merge when 1.18 becomes EoL. Otherwise, test will fail.

too long. . At least 7 months to wait until v1.20 release...

abner-chenc and others added 2 commits January 14, 2023 07:05
This is to fix the error of running TestCpuInfo on Linux/long64. In loong64
/proc/cpuinfo, the model name is capitalize the first letter

Reference:
  https://github.com/torvalds/linux/blob/master/arch/loongarch/kernel/proc.c

Signed-off-by: Guoqi Chen <chenguoqi@loongson.cn>
Updates #1338.

Signed-off-by: Guoqi Chen <chenguoqi@loongson.cn>
Co-authored-by: Jiantao Shan <shanjiantao@loongson.cn>
@yjagdale
Copy link

When we can expect this PR in the master?

@shirou
Copy link
Owner

shirou commented Feb 12, 2023

Since go1.20 has been released, I merge this PR. Thank you for your contribution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants