[LTP] Broken Fedora build

Yang Xu xuyang2018.jy@cn.fujitsu.com
Thu Oct 22 04:44:36 CEST 2020


Hi Li,Petr
> Petr Vorel<pvorel@suse.cz>  wrote:
>
>> Fedora build is broken due missing<sys/timeb.h>  [1].
>> Quick fix would probably be to use Fedora 33 instead of Rawhide. [2]
>> But we should port hugetlb.c and trace_sched.c (if used) to gettimeofday or
>> clock_gettime. [3]
>
> +1
> I prefer to go replace ftime() by gettimeofday() or clock_gettime()
> way to solve this from root.
+1

I have seen the hugetlb.c and trace_sched.c code, they all use the time 
to generate a random value for ftok or sched_priority. So using 
gettimeofday() also looks ok.

I will send a patch to use gettimeofday.

Best Regards
Yang Xu
>





More information about the ltp mailing list