/openbmc/linux/kernel/events/ |
H A D | hw_breakpoint_test.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * KUnit test for hw_breakpoint constraints accounting logic. 8 #include <kunit/test.h> 15 #define TEST_REQUIRES_BP_SLOTS(test, slots) \ argument 18 kunit_skip((test), "Requires breakpoint slots: %d > %d", slots, \ 23 #define TEST_EXPECT_NOSPC(expr) KUNIT_EXPECT_EQ(test, -ENOSPC, PTR_ERR(expr)) 31 static struct perf_event *register_test_bp(int cpu, struct task_struct *tsk, int idx) in register_test_bp() argument 42 return perf_event_create_kernel_counter(&attr, cpu, tsk, NULL, NULL); in register_test_bp() 65 static void fill_one_bp_slot(struct kunit *test, int *id, int cpu, struct task_struct *tsk) in fill_one_bp_slot() argument 67 struct perf_event *bp = register_test_bp(cpu, tsk, *id); in fill_one_bp_slot() [all …]
|
/openbmc/linux/tools/perf/tests/shell/ |
H A D | record_offcpu.sh | 3 # SPDX-License-Identifier: GPL-2.0 5 set -e 11 rm -f ${perfdata} 12 rm -f ${perfdata}.old 13 trap - EXIT TERM INT 23 echo "Checking off-cpu privilege" 25 if [ "$(id -u)" != 0 ] 27 echo "off-cpu test [Skipped permission]" 31 if perf record --off-cpu -o /dev/null --quiet true 2>&1 | grep BUILD_BPF_SKEL 33 echo "off-cpu test [Skipped missing BPF support]" [all …]
|
H A D | record_bpf_filter.sh | 3 # SPDX-License-Identifier: GPL-2.0 5 set -e 11 rm -f "${perfdata}" 12 rm -f "${perfdata}".old 13 trap - EXIT TERM INT 23 echo "Checking BPF-filter privilege" 25 if [ "$(id -u)" != 0 ] 27 echo "bpf-filter test [Skipped permission]" 31 if ! perf record -e task-clock --filter 'period > 1' \ 32 -o /dev/null --quiet true 2>&1 [all …]
|
/openbmc/qemu/tests/tcg/i386/ |
H A D | Makefile.target | 8 config-cc.mak: Makefile 9 $(quiet-@)( \ 10 $(call cc-option,-fno-pie, CROSS_CC_HAS_I386_NOPIE)) 3> config-cc.mak 12 -include config-cc.mak 16 SKIP_I386_TESTS=test-i386-ssse3 test-avx test-3dnow test-mmx test-flags 17 X86_64_TESTS:=$(filter test-i386-adcox test-i386-bmi2 $(SKIP_I386_TESTS), $(ALL_X86_TESTS)) 19 test-i386-sse-exceptions: CFLAGS += -msse4.1 -mfpmath=sse 20 run-test-i386-sse-exceptions: QEMU_OPTS += -cpu max 22 test-i386-pcmpistri: CFLAGS += -msse4.2 23 run-test-i386-pcmpistri: QEMU_OPTS += -cpu max [all …]
|
/openbmc/linux/lib/ |
H A D | cpumask_kunit.c | 1 // SPDX-License-Identifier: GPL-2.0-only 8 #include <kunit/test.h> 9 #include <linux/cpu.h> 16 #define EXPECT_FOR_EACH_CPU_EQ(test, mask) \ argument 20 int cpu, iter = 0; \ 21 for_each_cpu(cpu, m) \ 23 KUNIT_EXPECT_EQ_MSG((test), mask_weight, iter, MASK_MSG(mask)); \ 26 #define EXPECT_FOR_EACH_CPU_OP_EQ(test, op, mask1, mask2) \ argument 31 int cpu, iter = 0; \ 34 for_each_cpu_##op(cpu, mask1, mask2) \ [all …]
|
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-core/sdbus-c++/sdbus-c++-libsystemd/ |
H A D | 0013-Handle-__cpu_mask-usage.patch | 3 Date: Fri, 13 Sep 2019 19:26:27 -0400 8 src/test/test-cpu-set-util.c:18:54: error: '__cpu_mask' undeclared (first use in this function) 9 src/test/test-sizeof.c:73:14: error: '__cpu_mask' undeclared (first use in this function) 16 add a typedef to cpu-set-util.h defining __cpu_mask appropriately. 18 Upstream-Status: Inappropriate [musl specific] 20 Signed-off-by: Scott Murray <scott.murray@konsulko.com> 21 --- 22 src/shared/cpu-set-util.h | 2 ++ 23 src/test/test-sizeof.c | 2 +- 24 2 files changed, 3 insertions(+), 1 deletion(-) [all …]
|
/openbmc/openbmc/poky/meta/recipes-core/systemd/systemd/ |
H A D | 0013-Handle-__cpu_mask-usage.patch | 3 Date: Fri, 13 Sep 2019 19:26:27 -0400 8 src/test/test-cpu-set-util.c:18:54: error: '__cpu_mask' undeclared (first use in this function) 9 src/test/test-sizeof.c:73:14: error: '__cpu_mask' undeclared (first use in this function) 16 add a typedef to cpu-set-util.h defining __cpu_mask appropriately. 18 Upstream-Status: Inappropriate [musl specific] 20 Signed-off-by: Scott Murray <scott.murray@konsulko.com> 21 --- 22 src/shared/cpu-set-util.h | 2 ++ 23 src/test/test-sizeof.c | 2 +- 24 2 files changed, 3 insertions(+), 1 deletion(-) [all …]
|
/openbmc/linux/drivers/platform/x86/intel/ifs/ |
H A D | runtest.c | 1 // SPDX-License-Identifier: GPL-2.0-only 4 #include <linux/cpu.h> 17 * core will update results of the test. 27 * Number of TSC cycles that a logical CPU will wait for the other 28 * logical CPU on the core in the WRMSR(ACTIVATE_SCAN). 56 "Exceeded number of Logical Processors (LP) allowed to run Scan-At-Field concurrently", 60 static void message_not_tested(struct device *dev, int cpu, union ifs_status status) in message_not_tested() argument 63 dev_info(dev, "CPU(s) %*pbl: SCAN operation did not start. %s\n", in message_not_tested() 64 cpumask_pr_args(cpu_smt_mask(cpu)), in message_not_tested() 67 dev_info(dev, "CPU(s) %*pbl: software timeout during scan\n", in message_not_tested() [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/sound/ |
H A D | test-component.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/sound/test-component.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Test Component 10 - Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> 15 - test-cpu 16 - test-cpu-verbose 17 - test-cpu-verbose-dai 18 - test-cpu-verbose-component [all …]
|
/openbmc/openbmc-test-automation/systest/ |
H A D | proc_freq_check.robot | 5 # Test Parameters: 14 Test Setup Test Setup Execution 15 Test Teardown Test Teardown Execution 17 Test Tags Proc_Freq_Check 19 *** Test Cases *** 25 ${actual_min_freq}= Get CPU Min Frequency 26 ${min_freq_designated_lower_limit}= Get CPU Min Frequency Limit 31 ${err_msg}= Catenate Reported CPU frequency below designated limit. 35 ${actual_max_freq}= Get CPU Max Frequency 36 ${max_freq_designated_limit}= Get CPU Max Frequency Limit [all …]
|
/openbmc/qemu/ |
H A D | configure | 14 source_path=$(cd "$(dirname -- "$0")"; pwd) 16 if test "$PWD" -ef "$source_path" 20 MARKER=build/auto-created-by-configure 22 if test -e build 24 if test -f $MARKER 26 rm -rf build 36 echo "your source directory, or try doing an out-of-tree build." 41 # This file is auto-generated by configure to support in-source tree 46 @$(MAKE) -C build -f Makefile $(MAKECMDGOALS) 47 @if test "$(MAKECMDGOALS)" = "distclean" && \ [all …]
|
/openbmc/linux/tools/perf/tests/ |
H A D | topology.c | 1 // SPDX-License-Identifier: GPL-2.0 14 #define TEMPL "/tmp/perf-test-XXXXXX" 26 return -1; in get_temp() 44 session->evlist = evlist__new_default(); in session_write_header() 45 TEST_ASSERT_VAL("can't get evlist", session->evlist); in session_write_header() 47 perf_header__set_feat(&session->header, HEADER_CPU_TOPOLOGY); in session_write_header() 48 perf_header__set_feat(&session->header, HEADER_NRCPUS); in session_write_header() 49 perf_header__set_feat(&session->header, HEADER_ARCH); in session_write_header() 51 session->header.data_size += DATA_SIZE; in session_write_header() 54 !perf_session__write_header(session, session->evlist, data.file.fd, true)); in session_write_header() [all …]
|
/openbmc/u-boot/doc/ |
H A D | README.POST | 1 Power-On-Self-Test support in U-Boot 2 ------------------------------------ 4 This project is to support Power-On-Self-Test (POST) in U-Boot. 6 1. High-level requirements 11 and running Power-On-Self-Test in U-Boot. This framework shall 21 The framework shall allow run-time configuration of the lists 22 of tests running on normal/power-fail booting. 31 3) The following POST tests shall be developed for MPC823E-based 34 o) CPU test 35 o) Cache test [all …]
|
/openbmc/linux/tools/testing/selftests/mm/ |
H A D | uffd-stress.c | 1 // SPDX-License-Identifier: GPL-2.0-only 7 * This test allocates two virtual areas and bounces the physical 11 * There are three threads running per CPU: 13 * 1) one per-CPU thread takes a per-page pthread_mutex in a random 15 * area_src), and increments a per-page counter in the same page, 18 * 2) another per-CPU thread handles the userfaults generated by 22 * 3) one last per-CPU thread transfers the memory in the background 24 * 2). Each cpu thread takes cares of transferring a portion of the 32 * per-CPU threads 1 by triggering userfaults inside 37 #include "uffd-common.h" [all …]
|
/openbmc/linux/drivers/cpufreq/ |
H A D | amd-pstate-ut.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * AMD Processor P-state Frequency Driver Unit Test 9 * The AMD P-State Unit Test is a test module for testing the amd-pstate 12 * test to avoid the kernel regression during the update. 3) We can 17 * additional test cases to improve the depth and coverage of the test. 19 * See Documentation/admin-guide/pm/amd-pstate.rst Unit Tests for 20 * amd-pstate to get more detail. 29 #include <linux/amd-pstate.h> 35 * amd_pstate_ut: used as a shortform for AMD P-State unit test. 50 * Kernel module for testing the AMD P-State unit test [all …]
|
/openbmc/qemu/tests/tcg/riscv64/ |
H A D | Makefile.target | 1 # -*- Mode: makefile -*- 2 # RISC-V specific tweaks 5 TESTS += test-div 8 # Disable compressed instructions for test-noc 9 TESTS += test-noc 10 test-noc: LDFLAGS = -nostdlib -static 11 run-test-noc: QEMU_OPTS += -cpu rv64,c=false 13 TESTS += test-aes 14 run-test-aes: QEMU_OPTS += -cpu rv64,zk=on 16 # Test for fcvtmod [all …]
|
/openbmc/qemu/tests/avocado/ |
H A D | hotplug_cpu.py | 1 # Functional test that hotplugs a CPU and checks it on a Linux guest 9 # later. See the COPYING file in the top-level directory. 16 def test(self): member in HotPlugCPU 23 self.vm.add_args('-accel', 'kvm') 24 self.vm.add_args('-cpu', 'Haswell') 25 self.vm.add_args('-smp', '1,sockets=1,cores=2,threads=1,maxcpus=2') 28 self.ssh_command('test -e /sys/devices/system/cpu/cpu0') 30 self.ssh_command('test -e /sys/devices/system/cpu/cpu1') 33 driver='Haswell-x86_64-cpu', 37 self.ssh_command('test -e /sys/devices/system/cpu/cpu1')
|
/openbmc/linux/tools/testing/selftests/kvm/ |
H A D | rseq_test.c | 1 // SPDX-License-Identifier: GPL-2.0-only 26 * Any bug related to task migration is likely to be timing-dependent; perform 44 static int next_cpu(int cpu) in next_cpu() argument 47 * Advance to the next CPU, skipping those that weren't in the original in next_cpu() 51 * burn a lot cycles and the test will take longer than normal to in next_cpu() 55 cpu++; in next_cpu() 56 if (cpu > max_cpu) { in next_cpu() 57 cpu = min_cpu; in next_cpu() 58 TEST_ASSERT(CPU_ISSET(cpu, &possible_mask), in next_cpu() 59 "Min CPU = %d must always be usable", cpu); in next_cpu() [all …]
|
/openbmc/linux/arch/x86/kernel/ |
H A D | tsc_sync.c | 1 // SPDX-License-Identifier: GPL-2.0 8 * print a warning if not and turn off the TSC clock-source. 10 * The warp-check is point-to-point between two CPUs, the CPU 11 * initiating the bootup is the 'source CPU', the freshly booting 12 * CPU is the 'target CPU'. 14 * Only two CPUs may participate - they can enter in any order. 15 * ( The serial nature of the boot logic and the CPU hotplug lock 63 if (!resume && time_before(jiffies, adj->nextcheck)) in tsc_verify_tsc_adjust() 66 adj->nextcheck = jiffies + HZ; in tsc_verify_tsc_adjust() 69 if (adj->adjusted == curval) in tsc_verify_tsc_adjust() [all …]
|
/openbmc/qemu/tests/functional/ |
H A D | test_s390x_topology.py | 3 # Functional test that boots a Linux kernel and checks the console 11 # later. See the COPYING file in the top-level directory. 25 S390x CPU topology consists of 4 topology layers, from bottom to top, 28 See: docs/system/s390x/cpu-topology.rst. 30 S390x CPU topology is setup in different ways: 31 - implicitly from the '-smp' argument by completing each topology 34 - explicitly from the '-device' argument on the QEMU command line 35 - explicitly by hotplug of a new CPU using QMP or HMP 36 - it is modified by using QMP 'set-cpu-topology' 51 '/fedora-secondary/releases/35/Server/s390x/os' [all …]
|
/openbmc/linux/drivers/soc/fsl/qbman/ |
H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 26 Compiles in additional checks, to sanity-check the drivers and 30 tristate "BMan self-tests" 32 Compile the BMan self-test code. These tests will 37 bool "High-level API self-test" 41 This requires the presence of cpu-affine portals, and performs 42 high-level API testing with them (whichever portal(s) are affine 43 to the cpu(s) the test executes on). 46 tristate "QMan self-tests" 48 Compile self-test code for QMan. [all …]
|
/openbmc/linux/tools/testing/selftests/amd-pstate/ |
H A D | run.sh | 2 # SPDX-License-Identifier: GPL-2.0 15 # amd-pstate-ut only run on x86/x86_64 AMD systems. 16 ARCH=$(uname -m 2>/dev/null | sed -e 's/i.86/x86/' -e 's/x86_64/x86/') 17 VENDOR=$(cat /proc/cpuinfo | grep -m 1 'vendor_id' | awk '{print $NF}') 34 CURRENT_TEST=amd-pstate 37 # Kselftest framework requirement - SKIP code is 4. 39 all_scaling_names=("acpi-cpufreq" "amd-pstate") 56 for cpu in `ls $CPUROOT | grep "cpu[0-9].*"`; do 57 if [ -d $CPUROOT/$cpu/cpufreq ]; then 73 policies=$(ls $CPUFREQROOT| grep "policy[0-9].*") [all …]
|
/openbmc/qemu/tests/avocado/avocado_qemu/ |
H A D | __init__.py | 1 # Test class and utilities for functional tests 9 # later. See the COPYING file in the top-level directory. 39 @skipUnless(*has_cmd('sudo -n', ('sudo', '-n', 'true'))) 50 exitcode = -1 65 @skipUnless(*has_cmds(('cmd1', ('cmd1', '--some-parameter')), 95 def pick_default_qemu_bin(bin_prefix='qemu-system-', arch=None): 126 def _console_interaction(test, success_message, failure_message, argument 130 vm = test.vm 158 test.fail(fail) 160 def interrupt_interactive_console_until_pattern(test, success_message, argument [all …]
|
/openbmc/linux/tools/testing/selftests/cgroup/ |
H A D | test_cpuset_prs.sh | 2 # SPDX-License-Identifier: GPL-2.0 4 # Test for cpuset v2 partition root state (PRS) 12 echo "Test SKIPPED" 16 [[ $(id -u) -eq 0 ]] || skip_test "Test must be run as root!" 23 CGROUP2=$(mount -t cgroup2 | head -1 | awk -e '{print $3}') 24 [[ -n "$CGROUP2" ]] || skip_test "Cgroup v2 mount point not found!" 26 CPUS=$(lscpu | grep "^CPU(s):" | sed -e "s/.*:[[:space:]]*//") 27 [[ $CPUS -lt 8 ]] && skip_test "Test needs at least 8 cpus available!" 34 while [[ "$1" = -* ]] 37 -v) VERBOSE=1 [all …]
|
/openbmc/linux/tools/testing/selftests/rcutorture/bin/ |
H A D | kvm-assign-cpus.sh | 2 # SPDX-License-Identifier: GPL-2.0+ 4 # Produce awk statements roughly depicting the system's CPU and cache 8 # Usage: kvm-assign-cpus.sh /path/to/sysfs 10 T="`mktemp -d ${TMPDIR-/tmp}/kvm-assign-cpus.sh.XXXXXX`" 11 trap 'rm -rf $T' 0 2 13 sysfsdir=${1-/sys/devices/system/node} 16 sed -e 's/^/# /' < $T/msg 19 nodelist="`ls -d node*`" 22 if ! test -d $i/ 27 for j in $i/cpu*/cache/index* [all …]
|