selftests: fix ARCH normalization to handle command-line argumentSeveral selftests Makefiles (e.g. prctl, breakpoints, etc) attempt tonormalize the ARCH variable by converting x86_64 and i.86 to
selftests: fix ARCH normalization to handle command-line argumentSeveral selftests Makefiles (e.g. prctl, breakpoints, etc) attempt tonormalize the ARCH variable by converting x86_64 and i.86 to x86. However, it uses the conditional assignment operator '?='.When ARCH is passed as a command-line argument (e.g., during an rpmbuildprocess), the '?=' operator ignores the shell command and the sedtransformation. This leads to an incorrect ARCH value being used, whichcauses build failures # make -C tools/testing/selftests TARGETS=prctl ARCH=x86_64 make: Entering directory '/build/tools/testing/selftests' make[1]: Entering directory '/build/tools/testing/selftests/prctl' make[1]: *** No targets. Stop. make[1]: Leaving directory '/build/tools/testing/selftests/prctl' make: *** [Makefile:197: all] Error 2Change the assignment to use 'override' and ':=' to ensure thenormalization logic is applied regardless of how the ARCH variable wasinitially defined.Link: https://lkml.kernel.org/r/20260309205145.572778-1-aleksey.oladko@virtuozzo.comSigned-off-by: Aleksei Oladko <aleksey.oladko@virtuozzo.com>Cc: Shuah Khan <shuah@kernel.org>Cc: Wei Yang <richard.weiyang@gmail.com>Cc: Bala-Vignesh-Reddy <reddybalavignesh9979@gmail.com>Cc: Chelsy Ratnawat <chelsyratnawat2001@gmail.com>Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
show more ...
selftests: fix some typos in tools/testing/selftestsFix multiple spelling errors: - "rougly" -> "roughly" - "fielesystems" -> "filesystems" - "Can'" -> "Can't"Link: https://lkml.kernel.org/r/
selftests: fix some typos in tools/testing/selftestsFix multiple spelling errors: - "rougly" -> "roughly" - "fielesystems" -> "filesystems" - "Can'" -> "Can't"Link: https://lkml.kernel.org/r/20250503211959.507815-1-chelsyratnawat2001@gmail.comSigned-off-by: Chelsy Ratnawat <chelsyratnawat2001@gmail.com>Cc: Christian Brauner <brauner@kernel.org>Cc: Shuah Khan <shuah@kernel.org>Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
selftests: thermal: intel: power_floor: add missing gitignoreThe 'power_floor' test generates an object with the same name,but there is no .gitignore file in the directory to add the object assta
selftests: thermal: intel: power_floor: add missing gitignoreThe 'power_floor' test generates an object with the same name,but there is no .gitignore file in the directory to add the object asstated in the selftest documentation.Add the missing .gitignore file and include 'power_floor'.Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com>Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
selftests/thermel/intel: Add test to read power floor statusSome SoCs have firmware support to notify, if the system can't lowerpower limit to a value requested from user space via RAPL constraint
selftests/thermel/intel: Add test to read power floor statusSome SoCs have firmware support to notify, if the system can't lowerpower limit to a value requested from user space via RAPL constraints.This test program waits for notification of power floor and prints. Thisprogram can be used to test this feature and also allows other user spaceprograms to use as a reference.Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>