[LTP] [PATCH v3] mem/hugetlb: shift an empty region to use in hugemmap02.c
Cyril Hrubis
chrubis@suse.cz
Tue Oct 13 18:40:31 CEST 2015
Hi!
> int main(int ac, char **av)
> {
> @@ -127,15 +130,29 @@ int main(int ac, char **av)
> addrlist[i] = addr;
> }
>
> + while (range_is_mapped(low_addr, low_addr + 0x1000) == 1) {
^ + map_sz?
> + low_addr = low_addr + 0x10000000;
> +
> + if (low_addr < LOW_ADDR)
> + tst_brkm(TBROK | TERRNO, cleanup,
> + "no empty region to use");
> + }
Well, if we do not call tst_brkm() in the range_is_mapped() function we
should check here that the return value wasn't -1 and exit the test
accordingly...
--
Cyril Hrubis
chrubis@suse.cz
More information about the Ltp
mailing list