[LTP] [PATCH] max_map_count: fix error by using runtime check

Cyril Hrubis chrubis@suse.cz
Mon Apr 11 19:03:59 CEST 2016


Hi!
> 2. Now we only find the problem in aarch64, we just fix it:
> 
> #elif defined(__arm__)
> 	/* Skip it when run it in aarch64 */
> 	if(strcmp(un.machine, "aarch64"))
> 		return false;
> 
> 	/* Older arm kernels didn't label their vdso maps */
> 	if (!strncmp(line, "ffff0000-ffff1000", 17))
> 		return true;
> 
> And I think the second is better :-D

Let's go with this one for now and if we find more special cases later
we can relax the conditions as Jan suggested.

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list