Re: [LTP] (no subject)

路斐
2024-04-26T09:42:46Z

I tried using NULL, but met `TBROK: Test killed by SIGSEGV!`.&nbsp;

And the last time you mentioned in response to using `supported_archs`, this seems not work properly by now, the ltp document(section of writing_tests) says "not applicable".
&nbsp;

路斐 Fei.Lu
平台测试部 高级测试开发工程师
统信软件
企业官网：www.uniontech.com
联系方式：18501012352
办公地址：西安市雁塔区云水一路与天谷八路口软件新城二期C2-20层

&nbsp;
&nbsp;
&nbsp;
------------------&nbsp;Original&nbsp;------------------
From: "Cyril&nbsp;Hrubis";
Date: 2024年4月26日(星期五) 上午8:37
To: "lufei";
Cc: "ltp";
Subject: Re:

&nbsp;
Hi!
&gt; Some of your point has been fixed. Some are not:
&gt; 1. I'm using gcc (GCC) 11.4.1 20230605, `addr` without initialization would output some warnings.
&gt; 2. I read the manpage of arch_prctl, the ARCH_GET_CPUID seems return the flag, instead of storing `addr`:
&gt; ```
&gt; ARCH_GET_CPUID (since Linux 4.12)
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Return the setting of the flag manipulated by ARCH_SET_CPUID as the result of the system call (1&nbsp; for&nbsp; enabled,&nbsp; 0&nbsp; for
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; disabled).&nbsp; addr is ignored.
&gt; ```

Ah right, if addr is ignored just pass NULL there instead.

--
Cyril Hrubis
chrubis@suse.cz