[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <1d7a945c-70db-4446-85ab-19f5af88e204@gmail.com>
Date: Mon, 8 Sep 2025 11:40:30 -0400
From: Usama Arif <usamaarif642@...il.com>
To: Mark Brown <broonie@...nel.org>
Cc: Zi Yan <ziy@...dia.com>, Andrew Morton <akpm@...ux-foundation.org>,
david@...hat.com, linux-mm@...ck.org, linux-fsdevel@...r.kernel.org,
corbet@....net, rppt@...nel.org, surenb@...gle.com, mhocko@...e.com,
hannes@...xchg.org, baohua@...nel.org, shakeel.butt@...ux.dev,
riel@...riel.com, laoar.shao@...il.com, dev.jain@....com,
baolin.wang@...ux.alibaba.com, npache@...hat.com,
lorenzo.stoakes@...cle.com, Liam.Howlett@...cle.com, ryan.roberts@....com,
vbabka@...e.cz, jannh@...gle.com, Arnd Bergmann <arnd@...db.de>,
sj@...nel.org, linux-kernel@...r.kernel.org, linux-doc@...r.kernel.org,
kernel-team@...a.com, Aishwarya.TCV@....com
Subject: Re: [PATCH v5 6/7] selftests: prctl: introduce tests for disabling
THPs completely
On 08/09/2025 16:38, Mark Brown wrote:
> On Fri, Sep 05, 2025 at 08:40:25PM +0100, Usama Arif wrote:
>
>> diff --git a/tools/testing/selftests/mm/prctl_thp_disable.c b/tools/testing/selftests/mm/prctl_thp_disable.c
>> index 89ed0d7db1c16..0afcdbad94f3d 100644
>> --- a/tools/testing/selftests/mm/prctl_thp_disable.c
>> +++ b/tools/testing/selftests/mm/prctl_thp_disable.c
>> @@ -9,6 +9,7 @@
>> #include <string.h>
>> #include <unistd.h>
>> #include <sys/mman.h>
>> +#include <linux/mman.h>
>> #include <sys/prctl.h>
>> #include <sys/wait.h>
>
>> should fix this issue?
>
> That seems to do the right thing for me, I'm slightly nervous about
> collisions with glibc in future (it's been an issue in the past when
> they're not using our headers) but I guess we can deal with that if it
> actually comes up.
I have seen this included in another selftest as well with MADV_COLLAPSE.
I think best to have it. I will send a patch with it.
Thanks for confirming!
Powered by blists - more mailing lists