Re: [PATCH v2 00/25] Enable FRED with KVM VMX

2024-03-27 Thread Kang, Shan
On Wed, 2024-02-07 at 09:26 -0800, Xin Li wrote: > This patch set enables the Intel flexible return and event delivery > (FRED) architecture with KVM VMX to allow guests to utilize FRED. > We tested this FRED KVM patch set on a 7th Intel(R) Core(TM) CPU and the Intel Simics® Simulator with the fo

Re: [RFC PATCH net-next v7 06/14] page_pool: convert to use netmem

2024-03-27 Thread Mina Almasry
On Tue, Mar 26, 2024 at 3:51 PM Mina Almasry wrote: > > Abstrace the memory type from the page_pool so we can later add support > for new memory types. Convert the page_pool to use the new netmem type > abstraction, rather than use struct page directly. > > As of this patch the netmem type is a no

Re: [RFC PATCH net-next v7 07/14] page_pool: devmem support

2024-03-27 Thread Mina Almasry
On Tue, Mar 26, 2024 at 3:51 PM Mina Almasry wrote: > > Convert netmem to be a union of struct page and struct netmem. Overload > the LSB of struct netmem* to indicate that it's a net_iov, otherwise > it's a page. > > Currently these entries in struct page are rented by the page_pool and > used ex

Re: [PATCH] selftests: iommu: add config needed for iommufd_fail_nth

2024-03-27 Thread Muhammad Usama Anjum
On 3/26/24 8:03 PM, Jason Gunthorpe wrote: > On Tue, Mar 26, 2024 at 06:09:34PM +0500, Muhammad Usama Anjum wrote: >> Even after applying this config patch and following snippet (which doesn't >> terminate the program if mmap doesn't allocate exactly as the hint), I'm >> finding failed tests. >> >>

Re: [BUG] seltests/iommu: runaway ./iommufd consuming 99% CPU after a failed assert()

2024-03-27 Thread Joao Martins
On 25/03/2024 13:52, Jason Gunthorpe wrote: > On Mon, Mar 25, 2024 at 12:17:28PM +, Joao Martins wrote: >>> However, I am not smart enough to figure out why ... >>> >>> Apparently, from the source, mmap() fails to allocate pages on the desired >>> address: >>> >>>   1746 assert((uintpt

[PATCH][next] selftests/perf_events: Fix spelling mistake "sycnhronize" -> "synchronize"

2024-03-27 Thread Colin Ian King
There is a spelling mistake in an error message. Fix it. Signed-off-by: Colin Ian King --- tools/testing/selftests/perf_events/watermark_signal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/perf_events/watermark_signal.c b/tools/testing/selftests/

[PATCH v3] selftests: x86: skip the tests if prerequisites aren't fulfilled

2024-03-27 Thread Muhammad Usama Anjum
Skip instead of failing when prerequisite conditions aren't fulfilled, such as invalid xstate values etc. This patch would make the tests show as skip when run by: make -C tools/testing/selftests/ TARGETS=x86 run_tests ... # timeout set to 45 # selftests: x86: amx_64 # # xstate cpuid: in

Re: [PATCH v5 1/2] selftests/dmabuf-heap: conform test to TAP format output

2024-03-27 Thread Muhammad Usama Anjum
Hi Shuah, Thanks for reviewing. On 3/27/24 2:05 AM, Shuah Khan wrote: > On 3/4/24 23:08, Muhammad Usama Anjum wrote: >> Conform the layout, informational and status messages to TAP. No >> functional change is intended other than the layout of output messages. >> >> Reviewed-by: T.J. Mercier >> S

Re: [PATCH v1 2/3] KVM: selftests: Change __vm_create() to create a vm without in-kernel APIC

2024-03-27 Thread Andrew Jones
On Wed, Mar 27, 2024 at 05:42:54AM +, Manali Shukla wrote: ... > diff --git a/tools/testing/selftests/kvm/include/kvm_util_base.h > b/tools/testing/selftests/kvm/include/kvm_util_base.h > index 4a40b332115d..00e37c376cf3 100644 > --- a/tools/testing/selftests/kvm/include/kvm_util_base.h > +++

Re: [PATCH net] selftests: netdevsim: set test timeout to 10 minutes

2024-03-27 Thread patchwork-bot+netdevbpf
Hello: This patch was applied to netdev/net.git (main) by David S. Miller : On Mon, 25 Mar 2024 08:56:11 -0700 you wrote: > The longest running netdevsim test, nexthop.sh, currently takes > 5 min to finish. Around 260s to be exact, and 310s on a debug kernel. > The default timeout in selftest is

Re: [PATCH][next] selftests/perf_events: Fix spelling mistake "sycnhronize" -> "synchronize"

2024-03-27 Thread Kyle Huey
On Wed, Mar 27, 2024 at 7:06 AM Colin Ian King wrote: > > There is a spelling mistake in an error message. Fix it. > > Signed-off-by: Colin Ian King > --- > tools/testing/selftests/perf_events/watermark_signal.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/tools/testi

Re: [BUG] seltests/iommu: runaway ./iommufd consuming 99% CPU after a failed assert()

2024-03-27 Thread Jason Gunthorpe
On Wed, Mar 27, 2024 at 10:41:52AM +, Joao Martins wrote: > On 25/03/2024 13:52, Jason Gunthorpe wrote: > > On Mon, Mar 25, 2024 at 12:17:28PM +, Joao Martins wrote: > >>> However, I am not smart enough to figure out why ... > >>> > >>> Apparently, from the source, mmap() fails to allocate

Re: [PATCH] selftests: iommu: add config needed for iommufd_fail_nth

2024-03-27 Thread Jason Gunthorpe
On Wed, Mar 27, 2024 at 03:14:25PM +0500, Muhammad Usama Anjum wrote: > On 3/26/24 8:03 PM, Jason Gunthorpe wrote: > > On Tue, Mar 26, 2024 at 06:09:34PM +0500, Muhammad Usama Anjum wrote: > >> Even after applying this config patch and following snippet (which doesn't > >> terminate the program if

[PATCH v6] selftests/dmabuf-heap: conform test to TAP format output

2024-03-27 Thread Muhammad Usama Anjum
Conform the layout, informational and status messages to TAP. No functional change is intended other than the layout of output messages. Improve the TAP messages as well. Reviewed-by: T.J. Mercier Signed-off-by: Muhammad Usama Anjum --- Changes since v5: - Make the TAP messages more by adding mo

Re: [PATCH 1/2] selftests: x86: test_vsyscall: conform test to TAP format output

2024-03-27 Thread Muhammad Usama Anjum
On 3/27/24 1:00 AM, Shuah Khan wrote: > On 3/14/24 04:32, Muhammad Usama Anjum wrote: >> Conform the layout, informational and status messages to TAP. No >> functional change is intended other than the layout of output messages. >> Without using TAP messages, the passed/failed/skip test names canno

Re: [PATCH v2 12/14] sh: Add support for suppressing warning backtraces

2024-03-27 Thread Simon Horman
On Mon, Mar 25, 2024 at 10:52:46AM -0700, Guenter Roeck wrote: > Add name of functions triggering warning backtraces to the __bug_table > object section to enable support for suppressing WARNING backtraces. > > To limit image size impact, the pointer to the function name is only added > to the __b

Re: [PATCH] selftests: iommu: add config needed for iommufd_fail_nth

2024-03-27 Thread Joao Martins
On 27/03/2024 11:49, Jason Gunthorpe wrote: > On Wed, Mar 27, 2024 at 03:14:25PM +0500, Muhammad Usama Anjum wrote: >> On 3/26/24 8:03 PM, Jason Gunthorpe wrote: >>> On Tue, Mar 26, 2024 at 06:09:34PM +0500, Muhammad Usama Anjum wrote: Even after applying this config patch and following snippe

Re: [BUG] seltests/iommu: runaway ./iommufd consuming 99% CPU after a failed assert()

2024-03-27 Thread Joao Martins
On 27/03/2024 11:40, Jason Gunthorpe wrote: > On Wed, Mar 27, 2024 at 10:41:52AM +, Joao Martins wrote: >> On 25/03/2024 13:52, Jason Gunthorpe wrote: >>> On Mon, Mar 25, 2024 at 12:17:28PM +, Joao Martins wrote: > However, I am not smart enough to figure out why ... > > Apparen

Re: [PATCH v2 12/14] sh: Add support for suppressing warning backtraces

2024-03-27 Thread Guenter Roeck
On 3/27/24 07:44, Simon Horman wrote: On Mon, Mar 25, 2024 at 10:52:46AM -0700, Guenter Roeck wrote: Add name of functions triggering warning backtraces to the __bug_table object section to enable support for suppressing WARNING backtraces. To limit image size impact, the pointer to the functio

Re: [PATCH net-next v4 4/4] net: gro: move L3 flush checks to tcp_gro_receive

2024-03-27 Thread Richard Gobert
Paolo Abeni wrote: > On Tue, 2024-03-26 at 18:25 +0100, Richard Gobert wrote: >> Paolo Abeni wrote: >>> Hi, >>> >>> On Tue, 2024-03-26 at 16:02 +0100, Richard Gobert wrote: This patch is meaningful by itself - removing checks against non-relevant packets and making the flush/flush_id chec

Re: [PATCH 1/2] selftests: x86: test_vsyscall: conform test to TAP format output

2024-03-27 Thread Shuah Khan
On 3/27/24 06:16, Muhammad Usama Anjum wrote: On 3/27/24 1:00 AM, Shuah Khan wrote: On 3/14/24 04:32, Muhammad Usama Anjum wrote: Conform the layout, informational and status messages to TAP. No functional change is intended other than the layout of output messages. Without using TAP messages,

Re: [PATCH v2] selftests: x86: skip the tests if prerequisites aren't fulfilled

2024-03-27 Thread Shuah Khan
On 3/26/24 15:20, Chang S. Bae wrote: On 3/26/2024 1:51 PM, Shuah Khan wrote: show that there are bo backwards compatibility issues In older kernels lacking AMX support [1], arch_prctl() returns EINVAL. With AMX support, the kernel will properly set 'features'. It is also worth noting that t

Re: [PATCH] selftests/exec: execveat: Improve debug reporting

2024-03-27 Thread Shuah Khan
On 3/26/24 16:40, Kees Cook wrote: On Tue, Mar 26, 2024 at 02:46:02PM -0600, Shuah Khan wrote: On 3/14/24 02:54, Muhammad Usama Anjum wrote: On 3/13/24 11:56 PM, Kees Cook wrote: Children processes were reporting their status, duplicating the parent's. Remove that, and add some additional deta

Re: [BUG] seltests/iommu: runaway ./iommufd consuming 99% CPU after a failed assert()

2024-03-27 Thread Jason Gunthorpe
On Wed, Mar 27, 2024 at 03:04:09PM +, Joao Martins wrote: > On 27/03/2024 11:40, Jason Gunthorpe wrote: > > On Wed, Mar 27, 2024 at 10:41:52AM +, Joao Martins wrote: > >> On 25/03/2024 13:52, Jason Gunthorpe wrote: > >>> On Mon, Mar 25, 2024 at 12:17:28PM +, Joao Martins wrote: > >

Re: [PATCH bpf-next v5 1/6] bpf/helpers: introduce sleepable bpf_timers

2024-03-27 Thread Benjamin Tissoires
On Mon, Mar 25, 2024 at 1:50 AM Alexei Starovoitov wrote: > > On Fri, Mar 22, 2024 at 7:56 AM Benjamin Tissoires wrote: > > > > They are implemented as a workqueue, which means that there are no > > guarantees of timing nor ordering. > > > > Signed-off-by: Benjamin Tissoires > > > > --- > > > >

Re: [PATCH] selftests: iommu: add config needed for iommufd_fail_nth

2024-03-27 Thread Joao Martins
On 27/03/2024 17:49, Muhammad Usama Anjum wrote: > On 3/27/24 7:59 PM, Joao Martins wrote: >> On 27/03/2024 11:49, Jason Gunthorpe wrote: >>> On Wed, Mar 27, 2024 at 03:14:25PM +0500, Muhammad Usama Anjum wrote: On 3/26/24 8:03 PM, Jason Gunthorpe wrote: > On Tue, Mar 26, 2024 at 06:09:34P

Re: [PATCH] selftests: iommu: add config needed for iommufd_fail_nth

2024-03-27 Thread Muhammad Usama Anjum
On 3/27/24 11:09 PM, Joao Martins wrote: > On 27/03/2024 17:49, Muhammad Usama Anjum wrote: >> On 3/27/24 7:59 PM, Joao Martins wrote: >>> On 27/03/2024 11:49, Jason Gunthorpe wrote: On Wed, Mar 27, 2024 at 03:14:25PM +0500, Muhammad Usama Anjum wrote: > On 3/26/24 8:03 PM, Jason Gunthorpe

Re: [PATCH] selftests: iommu: add config needed for iommufd_fail_nth

2024-03-27 Thread Jason Gunthorpe
On Wed, Mar 27, 2024 at 06:09:37PM +, Joao Martins wrote: > On 27/03/2024 17:49, Muhammad Usama Anjum wrote: > > On 3/27/24 7:59 PM, Joao Martins wrote: > >> On 27/03/2024 11:49, Jason Gunthorpe wrote: > >>> On Wed, Mar 27, 2024 at 03:14:25PM +0500, Muhammad Usama Anjum wrote: > On 3/26/24

Re: [PATCH] selftests: iommu: add config needed for iommufd_fail_nth

2024-03-27 Thread Joao Martins
On 27/03/2024 18:17, Muhammad Usama Anjum wrote: > On 3/27/24 11:09 PM, Joao Martins wrote: >> On 27/03/2024 17:49, Muhammad Usama Anjum wrote: >>> On 3/27/24 7:59 PM, Joao Martins wrote: On 27/03/2024 11:49, Jason Gunthorpe wrote: > On Wed, Mar 27, 2024 at 03:14:25PM +0500, Muhammad Usama

Re: [PATCH] selftests: iommu: add config needed for iommufd_fail_nth

2024-03-27 Thread Joao Martins
On 27/03/2024 18:20, Jason Gunthorpe wrote: > On Wed, Mar 27, 2024 at 06:09:37PM +, Joao Martins wrote: >> On 27/03/2024 17:49, Muhammad Usama Anjum wrote: >>> On 3/27/24 7:59 PM, Joao Martins wrote: On 27/03/2024 11:49, Jason Gunthorpe wrote: > On Wed, Mar 27, 2024 at 03:14:25PM +0500

[PATCH v2 1/3] selftests: x86: test_vsyscall: reorder code to reduce #ifdef blocks

2024-03-27 Thread Muhammad Usama Anjum
There are multiple #ifdef blocks inside functions where they return just 0 if #ifdef is false. This makes number of tests counting difficult. Move those functions inside one #ifdef block and move all of them together. This is preparatory patch for next patch to convert this into TAP format. So in t

[PATCH v2 2/3] selftests: x86: test_vsyscall: conform test to TAP format output

2024-03-27 Thread Muhammad Usama Anjum
Conform the layout, informational and status messages to TAP. No functional change is intended other than the layout of output messages. Add more logic code to skip the tests if particular configuration isn't available to make sure that either we skip each test or mark it pass/fail. Signed-off-by:

[PATCH v2 3/3] selftests: x86: test_mremap_vdso: conform test to TAP format output

2024-03-27 Thread Muhammad Usama Anjum
Conform the layout, informational and status messages to TAP. No functional change is intended other than the layout of output messages. Signed-off-by: Muhammad Usama Anjum --- .../testing/selftests/x86/test_mremap_vdso.c | 43 +-- 1 file changed, 21 insertions(+), 22 deletions(

Re: [PATCH v2 12/14] sh: Add support for suppressing warning backtraces

2024-03-27 Thread Simon Horman
On Wed, Mar 27, 2024 at 08:10:51AM -0700, Guenter Roeck wrote: > On 3/27/24 07:44, Simon Horman wrote: > > On Mon, Mar 25, 2024 at 10:52:46AM -0700, Guenter Roeck wrote: > > > Add name of functions triggering warning backtraces to the __bug_table > > > object section to enable support for suppressi

Re: [BUG] seltests/iommu: runaway ./iommufd consuming 99% CPU after a failed assert()

2024-03-27 Thread Mirsad Todorovac
On 3/27/24 11:41, Joao Martins wrote: On 25/03/2024 13:52, Jason Gunthorpe wrote: On Mon, Mar 25, 2024 at 12:17:28PM +, Joao Martins wrote: However, I am not smart enough to figure out why ... Apparently, from the source, mmap() fails to allocate pages on the desired address:   1746 

Re: [PATCH] selftests: iommu: add config needed for iommufd_fail_nth

2024-03-27 Thread Muhammad Usama Anjum
On 3/27/24 11:20 PM, Jason Gunthorpe wrote: > On Wed, Mar 27, 2024 at 06:09:37PM +, Joao Martins wrote: >> On 27/03/2024 17:49, Muhammad Usama Anjum wrote: >>> On 3/27/24 7:59 PM, Joao Martins wrote: On 27/03/2024 11:49, Jason Gunthorpe wrote: > On Wed, Mar 27, 2024 at 03:14:25PM +0500

[RFC PATCH v3 0/8] mm: workingset reporting

2024-03-27 Thread Yuanchu Xie
This patch series provides workingset reporting of user pages in lruvecs, of which coldness can be tracked by accessed bits and fd references. However, the concept of workingset applies generically to all types of memory, which could be kernel slab caches, discardable userspace caches (databases),

[RFC PATCH v3 1/8] mm: multi-gen LRU: ignore non-leaf pmd_young for force_scan=true

2024-03-27 Thread Yuanchu Xie
When non-leaf pmd accessed bits are available, MGLRU page table walks can clear the accessed bit and promptly ignore the accessed bit on the pte because it's on a different node, so the walk does not update the generation of said page. When the next scan comes around on the right node, the non-leaf

[RFC PATCH v3 2/8] mm: aggregate working set information into histograms

2024-03-27 Thread Yuanchu Xie
Hierarchically aggregate all memcgs' MGLRU generations and their page counts into working set page age histograms. The histograms break down the system's working set per-node, per-anon/file. The sysfs interfaces are as follows: /sys/devices/system/node/nodeX/page_age A per-node page age hi

[RFC PATCH v3 3/8] mm: use refresh interval to rate-limit workingset report aggregation

2024-03-27 Thread Yuanchu Xie
The refresh interval is a rate limiting factor to workingset page age histogram reads. When a workingset report is generated, a timestamp is noted, and the same report will be read until it expires beyond the refresh interval, at which point a new report is generated. Sysfs interface /sys/devices/

[RFC PATCH v3 4/8] mm: report workingset during memory pressure driven scanning

2024-03-27 Thread Yuanchu Xie
When a node reaches its low watermarks and wakes up kswapd, notify all userspace programs waiting on the workingset page age histogram of the memory pressure, so a userspace agent can read the workingset report in time and make policy decisions, such as logging, oom-killing, or migration. Sysfs in

[RFC PATCH v3 5/8] mm: extend working set reporting to memcgs

2024-03-27 Thread Yuanchu Xie
Break down the system-wide working set reporting into per-memcg reports, which aggregages its children hierarchically. The per-node working set reporting histograms and refresh/report threshold files are presented as memcg files, showing a report containing all the nodes. Memcg interface: /sys/fs/

[RFC PATCH v3 6/8] mm: add per-memcg reaccess histogram

2024-03-27 Thread Yuanchu Xie
A reaccess refers to detecting an access on a page via refault or access bit harvesting after the initial access. Similar to the working set histogram, the reaccess histogram breaks down reaccesses into user-defined bins. It tracks reaccesses from MGLRU walks, where a move from older generations t

[RFC PATCH v3 7/8] mm: add kernel aging thread for workingset reporting

2024-03-27 Thread Yuanchu Xie
For reliable and timely aging on memcgs, one has to read the page age histograms on time. A kernel thread makes it easier by aging memcgs with valid page_age_intervals and refresh_interval when they can be refreshed, and also reduces the latency of any userspace consumers of the page age histogram.

[RFC PATCH v3 8/8] mm: test system-wide workingset reporting

2024-03-27 Thread Yuanchu Xie
A basic test that verifies the working set size of a simple memory accessor. It should work with or without the aging thread. Question: I don't know how to best test file memory in selftests. Is there a place where I should put the temporary file? /tmp can be tmpfs mounted in many distros. Signed

Re: [RFC PATCH v3 0/8] mm: workingset reporting

2024-03-27 Thread Gregory Price
On Wed, Mar 27, 2024 at 02:30:59PM -0700, Yuanchu Xie wrote: > > Promotion/Demotion > Similar to proactive reclaim, a workingset report enables demotion to a > slower tier of memory. > For promotion, the workingset report interfaces need to be extended to > report hotness and gather hotness inform

Re: [RFC PATCH v3 0/8] mm: workingset reporting

2024-03-27 Thread Yuanchu Xie
On Wed, Mar 27, 2024 at 2:44 PM Gregory Price wrote: > > On Wed, Mar 27, 2024 at 02:30:59PM -0700, Yuanchu Xie wrote: > > I realize this does not generalize well to hotness information, but I > > lack the intuition for an abstraction that presents hotness in a useful > > way. Based on a recent pro

[RFC PATCH bpf-next 0/3] bpf: freeze a task cgroup from bpf

2024-03-27 Thread Djalal Harouni
This patch series adds support to freeze the task cgroup hierarchy that is on a default cgroup v2 without going through kernfs interface. For some cases we want to freeze the cgroup of a task based on some signals, doing so from bpf is better than user space which could be too late. Planned users

[RFC PATCH bpf-next 1/3] cgroup: add cgroup_freeze_no_kn() to freeze a cgroup from bpf

2024-03-27 Thread Djalal Harouni
This patch adds a new cgroup helper cgroup_freeze_no_kn() to freeze a cgroup hierarchy that is on a default cgroup v2 without going through kernfs interface. For some cases we want to freeze the cgroup of a task based on some signals, doing so from bpf is better than user space which could be too

[RFC PATCH bpf-next 2/3] bpf: add bpf_task_freeze_cgroup() to freeze the cgroup of a task

2024-03-27 Thread Djalal Harouni
This patch adds a new bpf helper bpf_task_freeze_cgroup() to freeze a cgroup of a task and all its descendant cgroups. It requires the task to be on the default cgroup v2 hierarchy. For some cases we want to freeze the cgroup of a task based on some signals, doing so from bpf is better than user s

[RFC PATCH bpf-next 3/3] selftests/bpf: add selftest for bpf_task_freeze_cgroup

2024-03-27 Thread Djalal Harouni
This adds a selftest for `bpf_task_freeze_cgroup` kfunc. The test works by forking a child then: 1. Child: - Migrate to a new cgroup - Loads bpf programs - Trigger the 'lsm_freeze_cgroup' bpf program so it freeze itself. by calling "bpf_task_freeze_cgroup(child, 1)" <- wait for parent to

Re: [PATCH v5 0/3] selftests/resctrl: Simplify test cleanup functions

2024-03-27 Thread Reinette Chatre
Hi Shuah, On 2/27/2024 8:36 AM, Reinette Chatre wrote: > Hi Shuah, > > Could you please consider this series for inclusion? I do admit that > there has been a lot of resctrl selftest work recently. This should be > it for a while as new work is still being worked on. > > Thank you very much. >

Re: [PATCH] kunit: configs: Enable CONFIG_DAMON_DBGFS_DEPRECATED for --alltests

2024-03-27 Thread Rae Moar
On Tue, Mar 26, 2024 at 6:07 AM David Gow wrote: > > This is required, as CONFIG_DAMON_DEBUGFS is enabled, and --alltests UML > builds will fail due to the missing config option otherwise. > > Fixes: f4cba4bf6777 ("mm/damon: rename CONFIG_DAMON_DBGFS to > DAMON_DBGFS_DEPRECATED") > Signed-off-by:

Re: [BUG] seltests/iommu: runaway ./iommufd consuming 99% CPU after a failed assert()

2024-03-27 Thread Shuah Khan
On 3/27/24 10:38, Jason Gunthorpe wrote: On Wed, Mar 27, 2024 at 03:04:09PM +, Joao Martins wrote: On 27/03/2024 11:40, Jason Gunthorpe wrote: On Wed, Mar 27, 2024 at 10:41:52AM +, Joao Martins wrote: On 25/03/2024 13:52, Jason Gunthorpe wrote: On Mon, Mar 25, 2024 at 12:17:28PM +

[PATCH 0/2] Fix selftests/mm build without requiring "make headers"

2024-03-27 Thread John Hubbard
Hi, As mentioned in each patch, this implements the solution that we discussed in December 2023, in [1]. This turned out to be very clean and easy. It should also be quite easy to maintain. This should also make Peter Zijlstra happy, because it directly addresses the root cause of his "NAK NAK NA

[PATCH 1/2] selftests: break the dependency upon local header files

2024-03-27 Thread John Hubbard
Use tools/include/uapi/ files instead. These are obtained by taking a snapshot: run "make headers" at the top level, then copy the desired header file into the appropriate subdir in tools/uapi/. This was discussed and solved in [1]. However, even before copying any additional files there, there a

[PATCH 2/2] selftests/mm: fix additional build errors for selftests

2024-03-27 Thread John Hubbard
These build errors only occur if one fails to first run "make headers". However, that is a non-obvious and instrusive requirement, and so there was a discussion on how to get rid of it [1]. This uses that solution. These two files were created by taking a snapshot of the generated header files tha