]> www.infradead.org Git - users/jedix/linux-maple.git/commit
selftests/proc: add PROCMAP_QUERY ioctl tests
authorAndrii Nakryiko <andrii@kernel.org>
Thu, 27 Jun 2024 17:08:58 +0000 (10:08 -0700)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 12 Jul 2024 22:52:12 +0000 (15:52 -0700)
commit81510a0eaa6916c2fbb0b2639f3e617a296979a3
treeb2f5cafb649d441ae27d7ddd9b3fb0f6424eeb6c
parent77179b6f30811bf0bd2f62fcdf235997123e70dc
selftests/proc: add PROCMAP_QUERY ioctl tests

Extend existing proc-pid-vm.c tests with PROCMAP_QUERY ioctl() API.  Test
a few successful and negative cases, validating querying filtering and
exact vs next VMA logic works as expected.

Link: https://lkml.kernel.org/r/20240627170900.1672542-7-andrii@kernel.org
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Acked-by: Liam R. Howlett <Liam.Howlett@Oracle.com>
Cc: Alexey Dobriyan <adobriyan@gmail.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: Christian Brauner <brauner@kernel.org>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Mike Rapoport (IBM) <rppt@kernel.org>
Cc: Suren Baghdasaryan <surenb@google.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
tools/testing/selftests/proc/Makefile
tools/testing/selftests/proc/proc-pid-vm.c