Bug 7922 - [Anolis23.1][RC1][loongarch64][Tone]Tone平台测试性能lmbench失败,lmbench编译不通过,需要适配下系统
Summary: [Anolis23.1][RC1][loongarch64][Tone]Tone平台测试性能lmbench失败,lmbench编译不通过,需要适配下系统
Status: CLOSED FIXED
Alias: None
Product: Anolis OS 23
Classification: Anolis OS
Component: Others (show other bugs) Others
Version: 23.1
Hardware: loongarch Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: happy_orange
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-01-17 09:48 UTC by liqianwen
Modified: 2024-03-29 09:39 UTC (History)
3 users (show)

See Also:


Attachments
lmbench测试日志 (18.10 KB, text/x-log)
2024-01-17 09:48 UTC, liqianwen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description liqianwen loongson_group 2024-01-17 09:48:11 UTC
Created attachment 954 [details]
lmbench测试日志

Description of problem:
Tone平台测试性能lmbench失败,lmbench编译不通过,需要适配下系统

软件环境:
#内核版本:
# uname -r
5.10.134-16.2_rc1.an23.loongarch64

#系统版本
# cat /etc/os-release 
NAME="Anolis OS"
VERSION="23"
ID="anolis"
VERSION_ID="23"
PLATFORM_ID="platform:an23"
PRETTY_NAME="Anolis OS 23"
ANSI_COLOR="0;31"
HOME_URL="https://openanolis.cn/"
BUG_REPORT_URL="https://bugzilla.openanolis.cn/"


Steps to Reproduce:
1.在社区Tone平台上跑性能测试lmbench


Actual results:
测试性能lmbench失败,lmbench编译不通过
查看日志,报错如下:
Jan 16 15:19:44 [ERROR]: Unsupported Distribution
Jan 16 15:19:44 [ERROR]: Unsupported Distribution

Expected results:
lmbench在loongarch64上可正常编译通过

Additional info:
Comment 1 wenlong loongson_group 2024-01-17 10:27:32 UTC
该问题由于uname -p显示为unknown,并且lmbench无法识别loongarch64导致,对应修复如下

https://gitee.com/anolis/tone-cli/pulls/483

https://gitee.com/src-anolis-os/coreutils/pulls/19

代码合并后再进行验证
Comment 2 gaochang alibaba_cloud_group 2024-01-20 14:41:47 UTC
修复pr已合入,待回归验证
Comment 3 liqianwen loongson_group 2024-01-30 09:43:24 UTC
已验证,已解决
目前可正常在Tone平台上跑lmbench性能数据