From: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
To: Stefan Roesch <shr@devkernel.io>,
Andrew Morton <akpm@linux-foundation.org>
Cc: kernel-team@fb.com, linux-mm@kvack.org, riel@surriel.com,
mhocko@suse.com, david@redhat.com,
linux-kselftest@vger.kernel.org, linux-doc@vger.kernel.org,
hannes@cmpxchg.org
Subject: Re: [PATCH v3 3/3] selftests/mm: add new selftests for KSM
Date: Mon, 27 Feb 2023 12:24:39 -0500 [thread overview]
Message-ID: <e2132ff7-51de-b91f-37b5-b0c182ea86fb@efficios.com> (raw)
In-Reply-To: <qvqwa60zhvpw.fsf@dev0134.prn3.facebook.com>
On 2023-02-27 12:19, Stefan Roesch wrote:
>
> Andrew Morton <akpm@linux-foundation.org> writes:
>
>> On Thu, 23 Feb 2023 20:40:00 -0800 Stefan Roesch <shr@devkernel.io> wrote:
>>
>>> This adds three new tests to the selftests for KSM. These tests use the
>>> new prctl API's to enable and disable KSM.
>>>
>>> ...
>>>
>>> diff --git a/tools/testing/selftests/mm/Makefile b/tools/testing/selftests/mm/Makefile
>>> index d90cdc06aa59..507cb22bdebd 100644
>>> --- a/tools/testing/selftests/mm/Makefile
>>> +++ b/tools/testing/selftests/mm/Makefile
>>> @@ -29,7 +29,8 @@ MACHINE ?= $(shell echo $(uname_M) | sed -e 's/aarch64.*/arm64/' -e 's/ppc64.*/p
>>> # LDLIBS.
>>> MAKEFLAGS += --no-builtin-rules
>>>
>>> -CFLAGS = -Wall -I $(top_srcdir) -I $(top_srcdir)/usr/include $(EXTRA_CFLAGS) $(KHDR_INCLUDES)
>>> +CFLAGS = -Wall -I $(top_srcdir)/tools/include/uapi
>>> +CFLAGS += -I $(top_srcdir) -I $(top_srcdir)/usr/include $(EXTRA_CFLAGS) $(KHDR_INCLUDES)
>>> LDLIBS = -lrt -lpthread
>>> TEST_GEN_FILES = cow
>>> TEST_GEN_FILES += compaction_test
>>
>> This change runs afoul of the recently merged 8eb3751c73bec
>> ("selftests: vm: Fix incorrect kernel headers search path").
>>
>> I did this:
>>
>> --- a/tools/testing/selftests/mm/Makefile~selftests-mm-add-new-selftests-for-ksm
>> +++ b/tools/testing/selftests/mm/Makefile
>> @@ -29,7 +29,7 @@ MACHINE ?= $(shell echo $(uname_M) | sed -e 's/aarch64.*/arm64/' -e 's/ppc64.*/p
>> # LDLIBS.
>> MAKEFLAGS += --no-builtin-rules
>>
>> -CFLAGS = -Wall -I $(top_srcdir) $(EXTRA_CFLAGS) $(KHDR_INCLUDES)
>> +CFLAGS = -Wall -I $(top_srcdir) -I $(top_srcdir)/tools/include/uapi $(EXTRA_CFLAGS) $(KHDR_INCLUDES)
>> LDLIBS = -lrt -lpthread
>> TEST_GEN_FILES = cow
>> TEST_GEN_FILES += compaction_test
>> _
>>
>> But I expect it's a bit wrong. Please check?
> This change looks good.
As the content of tools/include/uapi is indeed part of the kernel
sources and not generated as the result of 'make headers' in an output
directory which can be overridden by O=<...>, referring to it from
$(top_srcdir) seems appropriate.
lgtm
Thanks,
Mathieu
--
Mathieu Desnoyers
EfficiOS Inc.
https://www.efficios.com
next prev parent reply other threads:[~2023-02-27 17:24 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-24 4:39 [PATCH v3 0/3] mm: process/cgroup ksm support Stefan Roesch
2023-02-24 4:39 ` [PATCH v3 1/3] mm: add new api to enable ksm per process Stefan Roesch
2023-03-08 16:47 ` Johannes Weiner
2023-03-08 22:16 ` Stefan Roesch
2023-03-09 4:59 ` Johannes Weiner
2023-03-09 22:33 ` Stefan Roesch
2023-02-24 4:40 ` [PATCH v3 3/3] selftests/mm: add new selftests for KSM Stefan Roesch
2023-02-26 5:30 ` Andrew Morton
2023-02-27 17:19 ` Stefan Roesch
2023-02-27 17:24 ` Mathieu Desnoyers [this message]
2023-02-26 5:08 ` [PATCH v3 0/3] mm: process/cgroup ksm support Andrew Morton
2023-02-27 17:13 ` Stefan Roesch
2023-03-07 18:48 ` Stefan Roesch
2023-03-08 17:01 ` David Hildenbrand
2023-03-08 17:30 ` Johannes Weiner
2023-03-08 18:41 ` David Hildenbrand
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=e2132ff7-51de-b91f-37b5-b0c182ea86fb@efficios.com \
--to=mathieu.desnoyers@efficios.com \
--cc=akpm@linux-foundation.org \
--cc=david@redhat.com \
--cc=hannes@cmpxchg.org \
--cc=kernel-team@fb.com \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kselftest@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=mhocko@suse.com \
--cc=riel@surriel.com \
--cc=shr@devkernel.io \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox