Re: [PATCH v7 2/3] KVM: selftests: aarch64: Introduce pmu_event_filter_test

2024-05-09 Thread Shaoqin Huang
Hi Eric, On 5/7/24 16:45, Eric Auger wrote: Hi Shaoqin, On 4/9/24 05:03, Shaoqin Huang wrote: Introduce pmu_event_filter_test for arm64 platforms. The test configures PMUv3 for a vCPU, and sets different pmu event filters for the vCPU, and check if the guest can see those events which user all

Re: [PATCH v2] kunit: Cover 'assert.c' with tests

2024-05-09 Thread kernel test robot
kernel/git/shuah/linux-kselftest.git kunit patch link: https://lore.kernel.org/r/20240508132557.599213-1-ivan.orlov0322%40gmail.com patch subject: [PATCH v2] kunit: Cover 'assert.c' with tests config: i386-randconfig-004-20240509 (https://download.01.org/0day-ci/archive/20240509/2

Re: [PATCH v4 7/9] riscv: vector: adjust minimum Vector requirement to ZVE32X

2024-05-09 Thread Conor Dooley
On Thu, May 09, 2024 at 02:56:30PM +0800, Andy Chiu wrote: > Hi Conor, > > Should we check if "v" presents for vector crypto extensions in > riscv_isa_extension_check()? We are not checking this for now. So a > kernel compiled with RISCV_ISA_V still has a problem if its isa-string > includes any o

Re: [PATCH v6 03/17] riscv: vector: Use vlenb from DT

2024-05-09 Thread Conor Dooley
Hey Charlie, Just me being a pain again... On Fri, May 03, 2024 at 11:18:18AM -0700, Charlie Jenkins wrote: > @@ -671,6 +713,11 @@ void __init riscv_fill_hwcap(void) > pr_info("Falling back to deprecated \"riscv,isa\"\n"); > riscv_fill_hwcap_from_isa_st

Re: [PATCH v6 05/17] riscv: Extend cpufeature.c to detect vendor extensions

2024-05-09 Thread Conor Dooley
On Fri, May 03, 2024 at 11:18:20AM -0700, Charlie Jenkins wrote: > Separate vendor extensions out into one struct per vendor > instead of adding vendor extensions onto riscv_isa_ext. > > Add a hidden config RISCV_ISA_VENDOR_EXT to conditionally include this > code. > > The xtheadvector vendor ext

Re: [PATCH v4 7/9] riscv: vector: adjust minimum Vector requirement to ZVE32X

2024-05-09 Thread Conor Dooley
On Thu, May 09, 2024 at 08:48:09AM +0100, Conor Dooley wrote: > On Thu, May 09, 2024 at 02:56:30PM +0800, Andy Chiu wrote: > > Hi Conor, > > > > Should we check if "v" presents for vector crypto extensions in > > riscv_isa_extension_check()? We are not checking this for now. So a > > kernel compil

Re: [PATCH v7 2/3] KVM: selftests: aarch64: Introduce pmu_event_filter_test

2024-05-09 Thread Shaoqin Huang
Hi Oliver, On 5/7/24 22:49, Oliver Upton wrote: Hi, On Tue, May 07, 2024 at 10:45:24AM +0200, Eric Auger wrote: On 4/9/24 05:03, Shaoqin Huang wrote: +#define GICD_BASE_GPA 0x800ULL +#define GICR_BASE_GPA 0x80AULL in v4 Oliver suggested "Shouldn't a standardized layout of the GIC f

Re: [PATCH net] selftests: net: avoid waiting for server in amt.sh forever when it fails.

2024-05-09 Thread Simon Horman
On Wed, May 08, 2024 at 04:06:43AM +, Taehee Yoo wrote: > In the forwarding testcase, it opens a server and a client with the nc. > The server receives the correct message from NC, it prints OK. > The server prints FAIL if it receives the wrong message from the client. > > But If the server ca

[PATCH v3] kunit: Cover 'assert.c' with tests

2024-05-09 Thread Ivan Orlov
There are multiple assertion formatting functions in the `assert.c` file, which are not covered with tests yet. Implement the KUnit test for these functions. The test consists of 11 test cases for the following functions: 1) 'is_literal' 2) 'is_str_literal' 3) 'kunit_assert_prologue', test case f

[PATCH v8 0/3] KVM: selftests: aarch64: Introduce pmu_event_filter_test

2024-05-09 Thread Shaoqin Huang
The test is inspired by the pmu_event_filter_test which implemented by x86. On the arm64 platform, there is the same ability to set the pmu_event_filter through the KVM_ARM_VCPU_PMU_V3_FILTER attribute. So add the test for arm64. The series first create the helper function which can be used for th

[PATCH v8 1/3] KVM: selftests: aarch64: Add helper function for the vpmu vcpu creation

2024-05-09 Thread Shaoqin Huang
Create a vcpu with vpmu would be a common requirement for the vpmu test, so add the helper function for the vpmu vcpu creation. And use those helper function in the vpmu_counter_access.c test. Use this chance to delete the meaningless ASSERT about the pmuver, because KVM does not advertise an IMP_

[PATCH v8 2/3] KVM: selftests: aarch64: Introduce pmu_event_filter_test

2024-05-09 Thread Shaoqin Huang
Introduce pmu_event_filter_test for arm64 platforms. The test configures PMUv3 for a vCPU, and sets different pmu event filters for the vCPU, and check if the guest can see those events which user allow and can't use those events which use deny. This test refactor the create_vpmu_vm() and make it

[PATCH v8 3/3] KVM: selftests: aarch64: Add invalid filter test in pmu_event_filter_test

2024-05-09 Thread Shaoqin Huang
Add the invalid filter test which sets the filter beyond the event space and sets the invalid action to double check if the KVM_ARM_VCPU_PMU_V3_FILTER will return the expected error. Reviewed-by: Eric Auger Signed-off-by: Shaoqin Huang --- .../kvm/aarch64/pmu_event_filter_test.c | 38

Re: [PATCH net] selftests: net: avoid waiting for server in amt.sh forever when it fails.

2024-05-09 Thread Paolo Abeni
On Wed, 2024-05-08 at 04:06 +, Taehee Yoo wrote: > @@ -210,40 +217,52 @@ check_features() > > test_ipv4_forward() > { > - RESULT4=$(ip netns exec "${LISTENER}" nc -w 1 -l -u 239.0.0.1 4000) > + echo "" > $RESULT > + bash -c "$(ip netns exec "${LISTENER}" \ > + timeo

[PATCH] selftests/mm: hugetlb_madv_vs_map: Avoid test skipping by querying hugepage size at runtime

2024-05-09 Thread Dev Jain
Currently, the size used in mmap() is statically defined, leading to skipping of the test on a hugepage size other than 2 MB, since munmap() won't free the hugepage for a size greater than 2 MB. Hence, query the size at runtime. Also, there is no reason why a hugepage allocation should fail, since

Re: [PATCH v2] selftests/mqueue: fix 5 warnings about signed/unsigned mismatches

2024-05-09 Thread Ryan Roberts
On 08/05/2024 21:00, John Hubbard wrote: > When building with clang, via: > > make LLVM=1 -C tools/testing/selftest > > ...clang warns about several cases of using a signed integer for the > priority argument to mq_receive(3), which expects an unsigned int. > > Fix this by declaring the type

Re: [PATCH net-next v9 2/3] net: gro: move L3 flush checks to tcp_gro_receive and udp_gro_receive_segment

2024-05-09 Thread Willem de Bruijn
Richard Gobert wrote: > {inet,ipv6}_gro_receive functions perform flush checks (ttl, flags, > iph->id, ...) against all packets in a loop. These flush checks are used in > all merging UDP and TCP flows. > > These checks need to be done only once and only against the found p skb, > since they only

Re: [PATCH v2 0/5] Define _GNU_SOURCE for sources using

2024-05-09 Thread Shuah Khan
On 5/9/24 00:13, Edward Liaw wrote: On Wed, May 8, 2024 at 4:10 PM Shuah Khan wrote: On 5/7/24 15:38, Edward Liaw wrote: 809216233555 ("selftests/harness: remove use of LINE_MAX") introduced asprintf into kselftest_harness.h, which is a GNU extension and needs _GNU_SOURCE to either be defined

[PATCH] KVM: selftests: Check API version when creating VM

2024-05-09 Thread Ivan Orlov
As it is said in the docs, we should always check the KVM API version before running the KVM-based applications. Add the function which queries the current KVM API version through `ioctl` to the `kvm_util.c` file. Add a new TEST_REQUIRE statement to the `vm_open` function in order to verify the ve

[PATCH bpf-next v2 0/2] selftests/bpf: new MPTCP subflow subtest

2024-05-09 Thread Matthieu Baerts (NGI0)
In this series from Geliang, modifying MPTCP BPF selftests, we have: - A new MPTCP subflow BPF program setting socket options per subflow: it looks better to have this old test program in the BPF selftests to track regressions and to serve as example. Note: Nicolas is no longer working for

[PATCH bpf-next v2 1/2] selftests/bpf: Add mptcp subflow example

2024-05-09 Thread Matthieu Baerts (NGI0)
From: Nicolas Rybowski Move Nicolas' patch into bpf selftests directory. This example adds a different mark (SO_MARK) on each subflow, and changes the TCP CC only on the first subflow. >From the userspace, an application can do a setsockopt() on an MPTCP socket, and typically the same value will

[PATCH bpf-next v2 2/2] selftests/bpf: Add mptcp subflow subtest

2024-05-09 Thread Matthieu Baerts (NGI0)
From: Geliang Tang This patch adds a subtest named test_subflow to load and verify the newly added mptcp subflow example in test_mptcp. Add a helper endpoint_init() to add a new subflow endpoint. Add another helper ss_search() to verify the fwmark and congestion values set by mptcp_subflow prog u

[PATCH net] selftests: net: add missing config for amt.sh

2024-05-09 Thread Jakub Kicinski
Test needs IPv6 multicast. smcroute currently crashes when trying to install a route in a kernel without IPv6 multicast. Fixes: c08e8baea78e ("selftests: add amt interface selftest script") Signed-off-by: Jakub Kicinski --- CC: sh...@kernel.org CC: ap420...@gmail.com CC: linux-kselftest@vger.kern

[PATCH net] selftests: net: move amt to socat for better compatibility

2024-05-09 Thread Jakub Kicinski
The test seems to expect that nc will exit after the first received message. This is not the case with Ncat 7.94. There are multiple versions of nc out there, switch to socat for better compatibility. Tell socat to exit after 128 bytes and pad the message. Since the test sets -e make sure we don'

Re: [PATCH net] selftests: net: avoid waiting for server in amt.sh forever when it fails.

2024-05-09 Thread Jakub Kicinski
On Wed, 8 May 2024 04:06:43 + Taehee Yoo wrote: > In the forwarding testcase, it opens a server and a client with the nc. > The server receives the correct message from NC, it prints OK. > The server prints FAIL if it receives the wrong message from the client. > > But If the server can't rec

[PATCH v5 0/8] Support Zve32[xf] and Zve64[xfd] Vector subextensions

2024-05-09 Thread Andy Chiu
The series composes of two parts. The first part Specifically, patch 1 adds a comment at a callsite of riscv_setup_vsize to clarify how vlenb is observed by the system. Patch 2 fixes the issue by failing the boot process of a secondary core if vlenb mismatches. Here is the organization of the seri

[PATCH v5 1/8] riscv: vector: add a comment when calling riscv_setup_vsize()

2024-05-09 Thread Andy Chiu
The function would fail when it detects the calling hart's vlen doesn't match the first one's. The boot hart is the first hart calling this function during riscv_fill_hwcap, so it is impossible to fail here. Add a comment about this behavior. Signed-off-by: Andy Chiu Reviewed-by: Conor Dooley --

[PATCH v5 2/8] riscv: smp: fail booting up smp if inconsistent vlen is detected

2024-05-09 Thread Andy Chiu
Currently we only support Vector for SMP platforms, that is, all SMP cores have the same vlenb. If we happen to detect a mismatching vlen, it is better to just fail bootting it up to prevent further race/scheduling issues. Also, move .Lsecondary_park forward and chage `tail smp_callin` into a regu

[PATCH v5 3/8] riscv: cpufeature: call match_isa_ext() for single-letter extensions

2024-05-09 Thread Andy Chiu
Single-letter extensions may also imply multiple subextensions. For example, Vector extension implies zve64d, and zve64d implies zve64f. Extension parsing for "riscv,isa-extensions" has the ability to resolve the dependency by calling match_isa_ext(). This patch makes deprecated parser call the sa

[PATCH v5 4/8] dt-bindings: riscv: add Zve32[xf] Zve64[xfd] ISA extension description

2024-05-09 Thread Andy Chiu
Add description for Zve32x Zve32f Zve64x Zve64f Zve64d ISA extensions. Signed-off-by: Andy Chiu Acked-by: Conor Dooley --- Changelog v5: - Reorder this patch prior than the first patch that uses them. (Conor) Changelog v3: - Correct extension names and their order (Stefan) Changelog v2: - new

[PATCH v5 5/8] riscv: cpufeature: add zve32[xf] and zve64[xfd] isa detection

2024-05-09 Thread Andy Chiu
Multiple Vector subextensions are added. Also, the patch takes care of the dependencies of Vector subextensions by macro expansions. So, if some "embedded" platform only reports "zve64f" on the ISA string, the parser is able to expand it to zve32x zve32f zve64x and zve64f. Signed-off-by: Andy Chiu

[PATCH v5 6/8] riscv: hwprobe: add zve Vector subextensions into hwprobe interface

2024-05-09 Thread Andy Chiu
The following Vector subextensions for "embedded" platforms are added into RISCV_HWPROBE_KEY_IMA_EXT_0: - ZVE32X - ZVE32F - ZVE64X - ZVE64F - ZVE64D Extensions ending with an X indicates that the platform doesn't have a vector FPU. Extensions ending with F/D mean that whether single (F) or do

[PATCH v5 7/8] riscv: vector: adjust minimum Vector requirement to ZVE32X

2024-05-09 Thread Andy Chiu
Make has_vector() to check for ZVE32X. Every in-kernel usage of V that requires a more complicate version of V must then call out explicitly. Also, change riscv_v_first_use_handler(), and boot code that calls riscv_v_setup_vsize() to accept ZVE32X. Most kernel/user interfaces requires minimum of

[PATCH v5 8/8] selftest: run vector prctl test for ZVE32X

2024-05-09 Thread Andy Chiu
The minimal requirement for running Vector subextension on Linux is ZVE32X. So change the test accordingly to run prctl as long as it find it. Signed-off-by: Andy Chiu --- Changelog v4: - new patch since v4 --- tools/testing/selftests/riscv/vector/vstate_prctl.c | 6 +++--- 1 file changed, 3 in

Re: [PATCH net] selftests: net: move amt to socat for better compatibility

2024-05-09 Thread Paolo Abeni
On Thu, 2024-05-09 at 09:19 -0700, Jakub Kicinski wrote: > The test seems to expect that nc will exit after the first > received message. This is not the case with Ncat 7.94. > There are multiple versions of nc out there, switch > to socat for better compatibility. > > Tell socat to exit after 128

Re: [PATCH v2 0/5] Define _GNU_SOURCE for sources using

2024-05-09 Thread Edward Liaw
On Thu, May 9, 2024 at 7:37 AM Shuah Khan wrote: > > On 5/9/24 00:13, Edward Liaw wrote: > > On Wed, May 8, 2024 at 4:10 PM Shuah Khan wrote: > >> > >> On 5/7/24 15:38, Edward Liaw wrote: > >>> 809216233555 ("selftests/harness: remove use of LINE_MAX") introduced > >>> asprintf into kselftest_har

Re: [PATCH v3 04/29] riscv: zicfilp / zicfiss in dt-bindings (extensions.yaml)

2024-05-09 Thread Conor Dooley
On Tue, Apr 16, 2024 at 08:44:16AM -0700, Deepak Gupta wrote: > On Mon, Apr 15, 2024 at 02:41:05PM -0500, Rob Herring wrote: > > On Wed, Apr 10, 2024 at 02:37:21PM -0700, Deepak Gupta wrote: > > > On Wed, Apr 10, 2024 at 4:58 AM Rob Herring wrote: > > > > > > > > On Wed, Apr 03, 2024 at 04:34:52PM

Re: [PATCH v2 0/5] Define _GNU_SOURCE for sources using

2024-05-09 Thread Muhammad Usama Anjum
On 5/9/24 10:45 PM, Edward Liaw wrote: > On Thu, May 9, 2024 at 7:37 AM Shuah Khan wrote: >> >> On 5/9/24 00:13, Edward Liaw wrote: >>> On Wed, May 8, 2024 at 4:10 PM Shuah Khan wrote: On 5/7/24 15:38, Edward Liaw wrote: > 809216233555 ("selftests/harness: remove use of LINE_MAX") i

Re: [PATCH v3 29/29] kselftest/riscv: kselftest for user mode cfi

2024-05-09 Thread Charlie Jenkins
On Wed, Apr 03, 2024 at 04:35:17PM -0700, Deepak Gupta wrote: > Adds kselftest for RISC-V control flow integrity implementation for user > mode. There is not a lot going on in kernel for enabling landing pad for > user mode. cfi selftest are intended to be compiled with zicfilp and > zicfiss enable

Re: [PATCH] selftests: Add _GNU_SOURCE definition when including kselftest_harness.h

2024-05-09 Thread Jakub Kicinski
On Thu, 9 May 2024 13:08:36 +0800 Tao Su wrote: > > SGTM, FWIW. The print is printing a test summary line, printing more > > than 1k seems rather unreasonable. Other facilities, like TH_LOG(), > > should be used for displaying longer info. > > Thanks, do you think 1k is enough for test_name? De

Re: [PATCH bpf-next v2 2/2] selftests/bpf: Add mptcp subflow subtest

2024-05-09 Thread Matthieu Baerts
Hello, On 09/05/2024 17:49, Matthieu Baerts (NGI0) wrote: > From: Geliang Tang > > This patch adds a subtest named test_subflow to load and verify the newly > added mptcp subflow example in test_mptcp. Add a helper endpoint_init() > to add a new subflow endpoint. Add another helper ss_search() t

Re: [PATCH net] selftests: net: move amt to socat for better compatibility

2024-05-09 Thread Jakub Kicinski
On Thu, 09 May 2024 19:39:36 +0200 Paolo Abeni wrote: > Acked-by: Paolo Abeni Thanks! > As a minor note, shell variable expansion should already trim all the > trailing/leading spaces from the socat command output, so it should not > be necessary replace the string comparison with the grep comman

Re: [PATCH v3 04/29] riscv: zicfilp / zicfiss in dt-bindings (extensions.yaml)

2024-05-09 Thread Deepak Gupta
On Thu, May 09, 2024 at 07:14:26PM +0100, Conor Dooley wrote: On Tue, Apr 16, 2024 at 08:44:16AM -0700, Deepak Gupta wrote: On Mon, Apr 15, 2024 at 02:41:05PM -0500, Rob Herring wrote: > On Wed, Apr 10, 2024 at 02:37:21PM -0700, Deepak Gupta wrote: > > On Wed, Apr 10, 2024 at 4:58 AM Rob Herring

Re: [PATCH net-next v9 2/3] net: gro: move L3 flush checks to tcp_gro_receive and udp_gro_receive_segment

2024-05-09 Thread Richard Gobert
Eric Dumazet wrote: > On Tue, May 7, 2024 at 6:30 PM Richard Gobert > wrote: >> >> {inet,ipv6}_gro_receive functions perform flush checks (ttl, flags, >> iph->id, ...) against all packets in a loop. These flush checks are used in >> all merging UDP and TCP flows. >> >> These checks need to be don

Re: [PATCH v3 01/29] riscv: envcfg save and restore on task switching

2024-05-09 Thread Deepak Gupta
On Wed, May 08, 2024 at 05:10:46PM -0700, Charlie Jenkins wrote: On Wed, Apr 03, 2024 at 04:34:49PM -0700, Deepak Gupta wrote: envcfg CSR defines enabling bits for cache management instructions and soon will control enabling for control flow integrity and pointer masking features. Control flow

Re: [PATCH net-next v9 2/3] net: gro: move L3 flush checks to tcp_gro_receive and udp_gro_receive_segment

2024-05-09 Thread Richard Gobert
Willem de Bruijn wrote: > Richard Gobert wrote: >> {inet,ipv6}_gro_receive functions perform flush checks (ttl, flags, >> iph->id, ...) against all packets in a loop. These flush checks are used in >> all merging UDP and TCP flows. >> >> These checks need to be done only once and only against the f

[PATCH net-next v10 0/3] net: gro: remove network_header use, move p->{flush/flush_id} calculations to L4

2024-05-09 Thread Richard Gobert
The cb fields network_offset and inner_network_offset are used instead of skb->network_header throughout GRO. These fields are then leveraged in the next commit to remove flush_id state from napi_gro_cb, and stateful code in {ipv6,inet}_gro_receive which may be unnecessarily complicated due to enc

[PATCH net-next v10 1/3] net: gro: use cb instead of skb->network_header

2024-05-09 Thread Richard Gobert
This patch converts references of skb->network_header to napi_gro_cb's network_offset and inner_network_offset. Signed-off-by: Richard Gobert --- include/net/gro.h| 9 +++-- net/ipv4/af_inet.c | 4 net/ipv4/tcp_offload.c | 3 ++- net/ipv6/ip6_offload.c | 5 ++--- net/i

[PATCH net-next v10 2/3] net: gro: move L3 flush checks to tcp_gro_receive and udp_gro_receive_segment

2024-05-09 Thread Richard Gobert
{inet,ipv6}_gro_receive functions perform flush checks (ttl, flags, iph->id, ...) against all packets in a loop. These flush checks are used in all merging UDP and TCP flows. These checks need to be done only once and only against the found p skb, since they only affect flush and not same_flow. T

[PATCH net-next v10 3/3] selftests/net: add flush id selftests

2024-05-09 Thread Richard Gobert
Added flush id selftests to test different cases where DF flag is set or unset and id value changes in the following packets. All cases where the packets should coalesce or should not coalesce are tested. Signed-off-by: Richard Gobert --- tools/testing/selftests/net/gro.c | 138 +

Re: [PATCH v3 29/29] kselftest/riscv: kselftest for user mode cfi

2024-05-09 Thread Deepak Gupta
On Thu, May 09, 2024 at 11:21:15AM -0700, Charlie Jenkins wrote: On Wed, Apr 03, 2024 at 04:35:17PM -0700, Deepak Gupta wrote: + +int main(int argc, char *argv[]) +{ + int ret = 0; + unsigned long lpad_status = 0, ss_status = 0; + + ksft_print_header(); + + ksft_set_plan(

Re: [PATCH REPOST net-next v3] selftest: epoll_busy_poll: epoll busy poll tests

2024-05-09 Thread patchwork-bot+netdevbpf
Hello: This patch was applied to netdev/net-next.git (main) by Jakub Kicinski : On Wed, 8 May 2024 18:40:04 + you wrote: > Add a simple test for the epoll busy poll ioctls, using the kernel > selftest harness. > > This test ensures that the ioctls have the expected return codes and > that t

[PATCH v3 01/68] selftests: Compile kselftest headers with -D_GNU_SOURCE

2024-05-09 Thread Edward Liaw
Add the -D_GNU_SOURCE flag to KHDR_INCLUDES so that it is defined in a central location. 809216233555 ("selftests/harness: remove use of LINE_MAX") introduced asprintf into kselftest_harness.h, which is a GNU extension and needs _GNU_SOURCE to either be defined prior to including headers or with t

[PATCH v3 00/68] Define _GNU_SOURCE for sources using

2024-05-09 Thread Edward Liaw
Centralizes the definition of _GNU_SOURCE into KHDR_INCLUDES and removes redefinitions of _GNU_SOURCE from source code. 809216233555 ("selftests/harness: remove use of LINE_MAX") introduced asprintf into kselftest_harness.h, which is a GNU extension and needs _GNU_SOURCE to either be defined prior

[PATCH v3 02/68] selftests/sgx: Include KHDR_INCLUDES in Makefile

2024-05-09 Thread Edward Liaw
Add KHDR_INCLUDES to the CFLAGS to pull in the kselftest harness dependencies (-D_GNU_SOURCE). Also, remove redefinitions of _GNU_SOURCE in the source code. Fixes: 809216233555 ("selftests/harness: remove use of LINE_MAX") Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-lkp/20

[PATCH v3 03/68] selftests: Compile with -D_GNU_SOURCE when including lib.mk

2024-05-09 Thread Edward Liaw
lib.mk will add -D_GNU_SOURCE to CFLAGS by default. This will make it unnecessary to add #define _GNU_SOURCE in the source code. Fixes: 809216233555 ("selftests/harness: remove use of LINE_MAX") Suggested-by: John Hubbard Signed-off-by: Edward Liaw --- tools/testing/selftests/Makefile | 4 ++--

[PATCH v3 04/68] selftests/arm64: Drop define _GNU_SOURCE

2024-05-09 Thread Edward Liaw
_GNU_SOURCE is provided by lib.mk, so it should be dropped to prevent redefinition warnings. Fixes: 809216233555 ("selftests/harness: remove use of LINE_MAX") Signed-off-by: Edward Liaw --- tools/testing/selftests/arm64/fp/fp-ptrace.c | 3 --- tools/testing/selftests/arm64/fp/fp-str

[PATCH v3 05/68] selftests/arm64: Drop duplicate -D_GNU_SOURCE

2024-05-09 Thread Edward Liaw
-D_GNU_SOURCE can be de-duplicated here, as it is added by lib.mk. Signed-off-by: Edward Liaw --- tools/testing/selftests/arm64/signal/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/arm64/signal/Makefile b/tools/testing/selftests/arm64/signa

[PATCH v3 06/68] selftests/bpf: Drop define _GNU_SOURCE

2024-05-09 Thread Edward Liaw
_GNU_SOURCE is provided by lib.mk, so it should be dropped to prevent redefinition warnings. Fixes: 809216233555 ("selftests/harness: remove use of LINE_MAX") Signed-off-by: Edward Liaw --- tools/testing/selftests/bpf/bench.c| 1 - tools/testing/selftests/bpf/benchs/b

[PATCH v3 07/68] selftests/breakpoints: Drop define _GNU_SOURCE

2024-05-09 Thread Edward Liaw
_GNU_SOURCE is provided by lib.mk, so it should be dropped to prevent redefinition warnings. Fixes: 809216233555 ("selftests/harness: remove use of LINE_MAX") Signed-off-by: Edward Liaw --- tools/testing/selftests/breakpoints/breakpoint_test_arm64.c | 3 --- tools/testing/selftests/breakpoints

[PATCH v3 08/68] selftests/cachestat: Drop define _GNU_SOURCE

2024-05-09 Thread Edward Liaw
_GNU_SOURCE is provided by lib.mk, so it should be dropped to prevent redefinition warnings. Fixes: 809216233555 ("selftests/harness: remove use of LINE_MAX") Reviewed-by: John Hubbard Reviewed-by: Muhammad Usama Anjum Signed-off-by: Edward Liaw --- tools/testing/selftests/cachestat/test_cache

[PATCH v3 09/68] selftests/capabilities: Drop define _GNU_SOURCE

2024-05-09 Thread Edward Liaw
_GNU_SOURCE is provided by lib.mk, so it should be dropped to prevent redefinition warnings. Fixes: 809216233555 ("selftests/harness: remove use of LINE_MAX") Reviewed-by: John Hubbard Reviewed-by: Muhammad Usama Anjum Signed-off-by: Edward Liaw --- tools/testing/selftests/capabilities/test_ex

[PATCH v3 10/68] selftests/cgroup: Drop define _GNU_SOURCE

2024-05-09 Thread Edward Liaw
_GNU_SOURCE is provided by lib.mk, so it should be dropped to prevent redefinition warnings. Fixes: 809216233555 ("selftests/harness: remove use of LINE_MAX") Signed-off-by: Edward Liaw --- tools/testing/selftests/cgroup/cgroup_util.c| 3 --- tools/testing/selftests/cgroup/test_core.c

[PATCH v3 11/68] selftests/clone3: Drop define _GNU_SOURCE

2024-05-09 Thread Edward Liaw
_GNU_SOURCE is provided by lib.mk, so it should be dropped to prevent redefinition warnings. Fixes: 809216233555 ("selftests/harness: remove use of LINE_MAX") Reviewed-by: John Hubbard Reviewed-by: Muhammad Usama Anjum Signed-off-by: Edward Liaw --- tools/testing/selftests/clone3/clone3.c

[PATCH v3 12/68] selftests/core: Drop define _GNU_SOURCE

2024-05-09 Thread Edward Liaw
_GNU_SOURCE is provided by lib.mk, so it should be dropped to prevent redefinition warnings. Fixes: 809216233555 ("selftests/harness: remove use of LINE_MAX") Reviewed-by: John Hubbard Reviewed-by: Muhammad Usama Anjum Signed-off-by: Edward Liaw --- tools/testing/selftests/core/close_range_tes

[PATCH v3 13/68] selftests/damon: Drop define _GNU_SOURCE

2024-05-09 Thread Edward Liaw
_GNU_SOURCE is provided by lib.mk, so it should be dropped to prevent redefinition warnings. Fixes: 809216233555 ("selftests/harness: remove use of LINE_MAX") Signed-off-by: Edward Liaw --- tools/testing/selftests/damon/debugfs_target_ids_pid_leak.c| 3 --- .../damon/debugfs_target_ids_read_

[PATCH v3 14/68] selftests/drivers: Drop define _GNU_SOURCE

2024-05-09 Thread Edward Liaw
_GNU_SOURCE is provided by lib.mk, so it should be dropped to prevent redefinition warnings. Fixes: 809216233555 ("selftests/harness: remove use of LINE_MAX") Reviewed-by: John Hubbard Reviewed-by: Muhammad Usama Anjum Signed-off-by: Edward Liaw --- tools/testing/selftests/drivers/dma-buf/udma

[PATCH v3 15/68] selftests/exec: Drop duplicate -D_GNU_SOURCE

2024-05-09 Thread Edward Liaw
-D_GNU_SOURCE can be de-duplicated here, as it is added by lib.mk. Signed-off-by: Edward Liaw --- tools/testing/selftests/exec/Makefile | 1 - 1 file changed, 1 deletion(-) diff --git a/tools/testing/selftests/exec/Makefile b/tools/testing/selftests/exec/Makefile index 3c79ec9bf780..18d7a1e5a4

[PATCH v3 16/68] selftests/fchmodat2: Drop define _GNU_SOURCE

2024-05-09 Thread Edward Liaw
_GNU_SOURCE is provided by lib.mk, so it should be dropped to prevent redefinition warnings. Fixes: 809216233555 ("selftests/harness: remove use of LINE_MAX") Reviewed-by: John Hubbard Reviewed-by: Muhammad Usama Anjum Signed-off-by: Edward Liaw --- tools/testing/selftests/fchmodat2/fchmodat2_

[PATCH v3 17/68] selftests/filelock: Drop define _GNU_SOURCE

2024-05-09 Thread Edward Liaw
_GNU_SOURCE is provided by lib.mk, so it should be dropped to prevent redefinition warnings. Fixes: 809216233555 ("selftests/harness: remove use of LINE_MAX") Signed-off-by: Edward Liaw --- tools/testing/selftests/filelock/ofdlocks.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/tools/tes

[PATCH v3 18/68] selftests/filesystems: Drop define _GNU_SOURCE

2024-05-09 Thread Edward Liaw
_GNU_SOURCE is provided by lib.mk, so it should be dropped to prevent redefinition warnings. Fixes: 809216233555 ("selftests/harness: remove use of LINE_MAX") Reviewed-by: John Hubbard Reviewed-by: Muhammad Usama Anjum Signed-off-by: Edward Liaw --- tools/testing/selftests/filesystems/binderfs

[PATCH v3 19/68] selftests/firmware: Drop define _GNU_SOURCE

2024-05-09 Thread Edward Liaw
_GNU_SOURCE is provided by lib.mk, so it should be dropped to prevent redefinition warnings. Fixes: 809216233555 ("selftests/harness: remove use of LINE_MAX") Signed-off-by: Edward Liaw --- tools/testing/selftests/firmware/fw_namespace.c | 1 - 1 file changed, 1 deletion(-) diff --git a/tools/t

[PATCH v3 20/68] selftests/fpu: Drop define _GNU_SOURCE

2024-05-09 Thread Edward Liaw
_GNU_SOURCE is provided by lib.mk, so it should be dropped to prevent redefinition warnings. Fixes: 809216233555 ("selftests/harness: remove use of LINE_MAX") Signed-off-by: Edward Liaw --- tools/testing/selftests/fpu/test_fpu.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/tools/testing/

[PATCH v3 21/68] selftests/futex: Drop define _GNU_SOURCE

2024-05-09 Thread Edward Liaw
_GNU_SOURCE is provided by lib.mk, so it should be dropped to prevent redefinition warnings. Fixes: 809216233555 ("selftests/harness: remove use of LINE_MAX") Reviewed-by: John Hubbard Reviewed-by: Muhammad Usama Anjum Signed-off-by: Edward Liaw --- tools/testing/selftests/futex/functional/fut

[PATCH v3 22/68] selftests/futex: Drop duplicate -D_GNU_SOURCE

2024-05-09 Thread Edward Liaw
-D_GNU_SOURCE can be de-duplicated here, as it is added by lib.mk. Reviewed-by: John Hubbard Reviewed-by: Muhammad Usama Anjum Signed-off-by: Edward Liaw --- tools/testing/selftests/futex/functional/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/self

[PATCH v3 23/68] selftests/intel_pstate: Drop duplicate -D_GNU_SOURCE

2024-05-09 Thread Edward Liaw
-D_GNU_SOURCE can be de-duplicated here, as it is added by lib.mk. Signed-off-by: Edward Liaw --- tools/testing/selftests/intel_pstate/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/intel_pstate/Makefile b/tools/testing/selftests/intel_pstat

[PATCH v3 24/68] selftests/iommu: Drop duplicate -D_GNU_SOURCE

2024-05-09 Thread Edward Liaw
-D_GNU_SOURCE can be de-duplicated here, as it is added by lib.mk. Reviewed-by: John Hubbard Reviewed-by: Muhammad Usama Anjum Signed-off-by: Edward Liaw --- tools/testing/selftests/iommu/Makefile | 2 -- 1 file changed, 2 deletions(-) diff --git a/tools/testing/selftests/iommu/Makefile b/to

[PATCH v3 25/68] selftests/ipc: Drop define _GNU_SOURCE

2024-05-09 Thread Edward Liaw
_GNU_SOURCE is provided by lib.mk, so it should be dropped to prevent redefinition warnings. Fixes: 809216233555 ("selftests/harness: remove use of LINE_MAX") Reviewed-by: John Hubbard Reviewed-by: Muhammad Usama Anjum Signed-off-by: Edward Liaw --- tools/testing/selftests/ipc/msgque.c | 1 -

[PATCH v3 26/68] selftests/kcmp: Drop define _GNU_SOURCE

2024-05-09 Thread Edward Liaw
_GNU_SOURCE is provided by lib.mk, so it should be dropped to prevent redefinition warnings. Fixes: 809216233555 ("selftests/harness: remove use of LINE_MAX") Reviewed-by: John Hubbard Reviewed-by: Muhammad Usama Anjum Signed-off-by: Edward Liaw --- tools/testing/selftests/kcmp/kcmp_test.c | 2

[PATCH v3 27/68] selftests/landlock: Drop define _GNU_SOURCE

2024-05-09 Thread Edward Liaw
_GNU_SOURCE is provided by lib.mk, so it should be dropped to prevent redefinition warnings. Fixes: 809216233555 ("selftests/harness: remove use of LINE_MAX") Reviewed-by: John Hubbard Reviewed-by: Muhammad Usama Anjum Signed-off-by: Edward Liaw --- tools/testing/selftests/landlock/base_test.c

[PATCH v3 28/68] selftests/lsm: Drop define _GNU_SOURCE

2024-05-09 Thread Edward Liaw
_GNU_SOURCE is provided by lib.mk, so it should be dropped to prevent redefinition warnings. Fixes: 809216233555 ("selftests/harness: remove use of LINE_MAX") Reviewed-by: John Hubbard Reviewed-by: Muhammad Usama Anjum Signed-off-by: Edward Liaw --- tools/testing/selftests/lsm/common.c

[PATCH v3 29/68] selftests/membarrier: Drop define _GNU_SOURCE

2024-05-09 Thread Edward Liaw
_GNU_SOURCE is provided by lib.mk, so it should be dropped to prevent redefinition warnings. Fixes: 809216233555 ("selftests/harness: remove use of LINE_MAX") Reviewed-by: John Hubbard Reviewed-by: Muhammad Usama Anjum Signed-off-by: Edward Liaw --- tools/testing/selftests/membarrier/membarrie

[PATCH v3 30/68] selftests/memfd: Drop define _GNU_SOURCE

2024-05-09 Thread Edward Liaw
_GNU_SOURCE is provided by lib.mk, so it should be dropped to prevent redefinition warnings. Fixes: 809216233555 ("selftests/harness: remove use of LINE_MAX") Reviewed-by: John Hubbard Reviewed-by: Muhammad Usama Anjum Signed-off-by: Edward Liaw --- tools/testing/selftests/memfd/common.c |

[PATCH v3 31/68] selftests/mincore: Drop define _GNU_SOURCE

2024-05-09 Thread Edward Liaw
_GNU_SOURCE is provided by lib.mk, so it should be dropped to prevent redefinition warnings. Fixes: 809216233555 ("selftests/harness: remove use of LINE_MAX") Signed-off-by: Edward Liaw --- tools/testing/selftests/mincore/mincore_selftest.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/t

[PATCH v3 32/68] selftests/mm: Drop define _GNU_SOURCE

2024-05-09 Thread Edward Liaw
_GNU_SOURCE is provided by lib.mk, so it should be dropped to prevent redefinition warnings. Fixes: 809216233555 ("selftests/harness: remove use of LINE_MAX") Signed-off-by: Edward Liaw --- tools/testing/selftests/mm/cow.c | 1 - tools/testing/selftests/mm/gup_longterm.c

[PATCH v3 33/68] selftests/mount: Drop define _GNU_SOURCE

2024-05-09 Thread Edward Liaw
_GNU_SOURCE is provided by lib.mk, so it should be dropped to prevent redefinition warnings. Fixes: 809216233555 ("selftests/harness: remove use of LINE_MAX") Signed-off-by: Edward Liaw --- tools/testing/selftests/mount/nosymfollow-test.c | 1 - tools/testing/selftests/mount/unprivilege

[PATCH v3 34/68] selftests/mount_setattr: Drop define _GNU_SOURCE

2024-05-09 Thread Edward Liaw
_GNU_SOURCE is provided by lib.mk, so it should be dropped to prevent redefinition warnings. Fixes: 809216233555 ("selftests/harness: remove use of LINE_MAX") Reviewed-by: John Hubbard Reviewed-by: Muhammad Usama Anjum Signed-off-by: Edward Liaw --- tools/testing/selftests/mount_setattr/mount_

[PATCH v3 35/68] selftests/move_mount_set_group: Drop define _GNU_SOURCE

2024-05-09 Thread Edward Liaw
_GNU_SOURCE is provided by lib.mk, so it should be dropped to prevent redefinition warnings. Fixes: 809216233555 ("selftests/harness: remove use of LINE_MAX") Reviewed-by: John Hubbard Reviewed-by: Muhammad Usama Anjum Signed-off-by: Edward Liaw --- .../selftests/move_mount_set_group/move_moun

[PATCH v3 36/68] selftests/mqueue: Drop define _GNU_SOURCE

2024-05-09 Thread Edward Liaw
_GNU_SOURCE is provided by lib.mk, so it should be dropped to prevent redefinition warnings. Fixes: 809216233555 ("selftests/harness: remove use of LINE_MAX") Signed-off-by: Edward Liaw --- tools/testing/selftests/mqueue/mq_perf_tests.c | 1 - 1 file changed, 1 deletion(-) diff --git a/tools/te

[PATCH v3 37/68] selftests/net: Drop define _GNU_SOURCE

2024-05-09 Thread Edward Liaw
_GNU_SOURCE is provided by lib.mk, so it should be dropped to prevent redefinition warnings. Fixes: 809216233555 ("selftests/harness: remove use of LINE_MAX") Signed-off-by: Edward Liaw --- tools/testing/selftests/net/af_unix/diag_uid.c | 2 -- tools/testing/selftests/net/af_unix/s

[PATCH v3 38/68] selftests/net: Drop duplicate -D_GNU_SOURCE

2024-05-09 Thread Edward Liaw
-D_GNU_SOURCE can be de-duplicated here, as it is added by lib.mk. Reviewed-by: John Hubbard Reviewed-by: Muhammad Usama Anjum Signed-off-by: Edward Liaw --- tools/testing/selftests/net/tcp_ao/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/

[PATCH v3 39/68] selftests/nolibc: Drop define _GNU_SOURCE

2024-05-09 Thread Edward Liaw
_GNU_SOURCE is provided by lib.mk, so it should be dropped to prevent redefinition warnings. Fixes: 809216233555 ("selftests/harness: remove use of LINE_MAX") Signed-off-by: Edward Liaw --- tools/testing/selftests/nolibc/nolibc-test.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/tools/te

[PATCH v3 40/68] selftests/nsfs: Drop define _GNU_SOURCE

2024-05-09 Thread Edward Liaw
_GNU_SOURCE is provided by lib.mk, so it should be dropped to prevent redefinition warnings. Fixes: 809216233555 ("selftests/harness: remove use of LINE_MAX") Signed-off-by: Edward Liaw --- tools/testing/selftests/nsfs/owner.c | 1 - tools/testing/selftests/nsfs/pidns.c | 1 - 2 files changed, 2

[PATCH v3 41/68] selftests/openat2: Drop define _GNU_SOURCE

2024-05-09 Thread Edward Liaw
_GNU_SOURCE is provided by lib.mk, so it should be dropped to prevent redefinition warnings. Fixes: 809216233555 ("selftests/harness: remove use of LINE_MAX") Signed-off-by: Edward Liaw --- tools/testing/selftests/openat2/helpers.c| 2 -- tools/testing/selftests/openat2/helpers.h

[PATCH v3 42/68] selftests/perf_events: Drop define _GNU_SOURCE

2024-05-09 Thread Edward Liaw
_GNU_SOURCE is provided by lib.mk, so it should be dropped to prevent redefinition warnings. Fixes: 809216233555 ("selftests/harness: remove use of LINE_MAX") Signed-off-by: Edward Liaw --- tools/testing/selftests/perf_events/remove_on_exec.c | 2 -- tools/testing/selftests/perf_events/sigtrap

[PATCH v3 43/68] selftests/pid_namespace: Drop define _GNU_SOURCE

2024-05-09 Thread Edward Liaw
_GNU_SOURCE is provided by lib.mk, so it should be dropped to prevent redefinition warnings. Fixes: 809216233555 ("selftests/harness: remove use of LINE_MAX") Reviewed-by: John Hubbard Reviewed-by: Muhammad Usama Anjum Signed-off-by: Edward Liaw --- tools/testing/selftests/pid_namespace/regres

[PATCH v3 44/68] selftests/pidfd: Drop define _GNU_SOURCE

2024-05-09 Thread Edward Liaw
_GNU_SOURCE is provided by lib.mk, so it should be dropped to prevent redefinition warnings. Fixes: 809216233555 ("selftests/harness: remove use of LINE_MAX") Reviewed-by: John Hubbard Reviewed-by: Muhammad Usama Anjum Signed-off-by: Edward Liaw --- tools/testing/selftests/pidfd/pidfd.h

[PATCH v3 45/68] selftests/ptrace: Drop define _GNU_SOURCE

2024-05-09 Thread Edward Liaw
_GNU_SOURCE is provided by lib.mk, so it should be dropped to prevent redefinition warnings. Fixes: 809216233555 ("selftests/harness: remove use of LINE_MAX") Reviewed-by: John Hubbard Reviewed-by: Muhammad Usama Anjum Signed-off-by: Edward Liaw --- tools/testing/selftests/ptrace/get_set_sud.c

[PATCH v3 46/68] selftests/powerpc: Drop define _GNU_SOURCE

2024-05-09 Thread Edward Liaw
_GNU_SOURCE is provided by lib.mk, so it should be dropped to prevent redefinition warnings. Fixes: 809216233555 ("selftests/harness: remove use of LINE_MAX") Signed-off-by: Edward Liaw --- tools/testing/selftests/powerpc/benchmarks/context_switch.c| 2 -- tools/testing/selftests/powerpc/ben

[PATCH v3 47/68] selftests/proc: Drop define _GNU_SOURCE

2024-05-09 Thread Edward Liaw
_GNU_SOURCE is provided by lib.mk, so it should be dropped to prevent redefinition warnings. Fixes: 809216233555 ("selftests/harness: remove use of LINE_MAX") Signed-off-by: Edward Liaw --- tools/testing/selftests/proc/proc-empty-vm.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/tools/t

  1   2   3   >