[LTP] [PATCH 3/6] sched_football: Re-add the crazy fans to interrupt everyone

Martin Doucha mdoucha@suse.cz
Thu Jun 27 15:25:19 CEST 2024


On 29. 04. 24 11:10, Cyril Hrubis wrote:
> Hi!
>> @@ -107,6 +111,38 @@ int parse_args(int c, char *v)
>>   	return handled;
>>   }
>>   
>> +#define NSEC_PER_SEC 1000000000ULL
>> +unsigned long long ts_delta(struct timespec *start, struct timespec *stop)
>> +{
>> +	unsigned long long a, b;
>> +
>> +	a = start->tv_sec * NSEC_PER_SEC + start->tv_nsec;
>> +	b = stop->tv_sec * NSEC_PER_SEC + stop->tv_nsec;
>> +	return b - a;
>> +}
> 
> This is tst_timespec_diff() from include/tst_timer.h

... which cannot be used in this test without porting it to new LTP API 
first. Otherwise you'll get undefined reference to tst_brk_().

-- 
Martin Doucha   mdoucha@suse.cz
SW Quality Engineer
SUSE LINUX, s.r.o.
CORSO IIa
Krizikova 148/34
186 00 Prague 8
Czech Republic



More information about the ltp mailing list