<div dir="ltr"><div class="gmail_quote"><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
> + switch (tst_arch.type) {<br>
> + case TST_X86:<br>
> + case TST_X86_64:<br>
> + /* On x86, there's an old compat vsyscall page */<br>
> + if (!strcmp(buf, "[vsyscall]"))<br>
> + return true;<br>
> + break;<br>
> + case TST_IA64:<br>
> + /* On ia64, the vdso is not a proper mapping */<br>
> + if (!strcmp(buf, "[vdso]"))<br>
> + return true;<br>
> + break;<br>
> + case TST_ARM:<br>
> + /* Skip it when run it in aarch64 */<br>
> + if ((!strcmp(un.machine, "aarch64"))<br>
> + || (!strcmp(un.machine, "aarch64_be")))<br>
> + return false;<br>
<br>
I wonder if this would be better as:<br>
<br>
if (tst_kernel_bits() == 64)<br>
return false;<br></blockquote><div><br></div><div><div class="gmail_default" style="font-size:small">Actually, we have TST_AARCH64 already, I'd go with switch to that.</div></div></div><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div>Regards,<br></div><div>Li Wang<br></div></div></div></div>