| /kernel/linux/linux-6.6/kernel/events/ |
| 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 …]
|
| /kernel/linux/linux-6.6/tools/perf/tests/shell/ |
| 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 …]
|
| 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 …]
|
| D | stat.sh | 3 # SPDX-License-Identifier: GPL-2.0 5 set -e 9 echo "Basic stat command test" 10 if ! perf stat true 2>&1 | grep -E -q "Performance counter stats for 'true':" 12 echo "Basic stat command test [Failed]" 16 echo "Basic stat command test [Success]" 20 echo "stat record and report test" 21 if ! perf stat record -o - true | perf stat report -i - 2>&1 | \ 22 grep -E -q "Performance counter stats for 'pipe':" 24 echo "stat record and report test [Failed]" [all …]
|
| /kernel/linux/linux-6.6/lib/ |
| 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 …]
|
| /kernel/linux/linux-6.6/Documentation/devicetree/bindings/sound/ |
| 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 …]
|
| /kernel/linux/linux-6.6/drivers/platform/x86/intel/ifs/ |
| 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 …]
|
| /kernel/linux/linux-6.6/tools/perf/tests/ |
| 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 …]
|
| /kernel/linux/linux-6.6/tools/testing/selftests/mm/ |
| 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 …]
|
| /kernel/linux/linux-5.10/tools/testing/selftests/cpu-hotplug/ |
| D | cpu-on-off-test.sh | 2 # SPDX-License-Identifier: GPL-2.0 5 # Kselftest framework requirement - SKIP code is 4. 17 taskset -p 01 $$ 19 SYSFS=`mount -t sysfs | head -1 | awk '{ print $3 }'` 21 if [ ! -d "$SYSFS" ]; then 26 if ! ls $SYSFS/devices/system/cpu/cpu* > /dev/null 2>&1; then 27 echo $msg cpu hotplug is not supported >&2 31 echo "CPU online/offline summary:" 32 online_cpus=`cat $SYSFS/devices/system/cpu/online` 33 online_max=${online_cpus##*-} [all …]
|
| /kernel/linux/linux-6.6/drivers/cpufreq/ |
| 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 …]
|
| /kernel/linux/linux-5.10/arch/x86/kernel/ |
| 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 62 if (!resume && time_before(jiffies, adj->nextcheck)) in tsc_verify_tsc_adjust() 65 adj->nextcheck = jiffies + HZ; in tsc_verify_tsc_adjust() 68 if (adj->adjusted == curval) in tsc_verify_tsc_adjust() [all …]
|
| /kernel/linux/linux-6.6/tools/testing/selftests/kvm/ |
| 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 …]
|
| /kernel/linux/linux-6.6/arch/x86/kernel/ |
| 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 …]
|
| /kernel/linux/linux-5.10/drivers/soc/fsl/qbman/ |
| 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 …]
|
| /kernel/linux/linux-6.6/drivers/soc/fsl/qbman/ |
| 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 …]
|
| /kernel/linux/linux-6.6/tools/testing/selftests/cgroup/ |
| 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 …]
|
| /kernel/linux/linux-6.6/tools/testing/selftests/amd-pstate/ |
| 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 …]
|
| /kernel/linux/linux-6.6/sound/soc/generic/ |
| D | audio-graph-card2-custom-sample.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 3 * audio-graph-card2-custom-sample.dtsi 8 * This sample indicates how to use audio-graph-card2 and its 9 * custom driver. "audio-graph-card2-custom-sample" is the custome driver 10 * which is using audio-graph-card2. 15 * #include "../../../../../sound/soc/generic/audio-graph-card2-custom-sample.dtsi" 23 * "compatible" on each test-component. see below 26 * - compatible = "test-cpu"; 27 * + compatible = "test-cpu-verbose"; 32 * - compatible = "test-codec"; [all …]
|
| /kernel/linux/linux-6.6/tools/testing/selftests/rcutorture/bin/ |
| 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 …]
|
| D | kvm-get-cpus-script.sh | 2 # SPDX-License-Identifier: GPL-2.0+ 7 # Usage: kvm-get-cpus-script.sh /path/to/cpu/arrays /path/to/put/script [ /path/to/state ] 9 # The CPU arrays are output by kvm-assign-cpus.sh, and are valid awk 13 # non-empty), and can also be output by this script. 15 cpuarrays="${1-/sys/devices/system/node}" 19 if ! test -f "$cpuarrays" 25 if ! test -d "$scriptdir" || ! test -x "$scriptdir" || ! test -w "$scriptdir" 35 if test -r "$statefile" 42 # Do we have the system architecture to guide CPU affinity? 48 # Return a comma-separated list of the next n CPUs. [all …]
|
| /kernel/linux/linux-5.10/tools/testing/selftests/rcutorture/bin/ |
| D | functions.sh | 2 # SPDX-License-Identifier: GPL-2.0+ 10 # bootparam_hotplug_cpu bootparam-string 12 # Returns 1 if the specified boot-parameter string tells rcutorture to 13 # test CPU-hotplug operations. 15 echo "$1" | grep -q "torture\.onoff_" 18 # checkarg --argname argtype $# arg mustmatch cannotmatch 23 if test $3 -le 1 28 if echo "$4" | grep -q -e "$5" 35 if echo "$4" | grep -q -e "$6" 42 # configfrag_boot_params bootparam-string config-fragment-file [all …]
|
| /kernel/linux/build/test/moduletest/runtest/bin/cpuisolation_t/testcases/bin/ |
| D | cpuisolation04.sh | 5 # SPDX-License-Identifier: GPL-2.0 16 # Description: check CPU lightweight isolation stress test 18 # Authors: liudanning - liudanning@h-partners.com 20 # History: Mar 24 2022 - init scripts 28 PPID=$(ps -ef | grep "/cpuisolation04.sh" | grep -v grep | awk '{print $3}') 34 dir_name=/sys/devices/system/cpu/cpu0/core_ctl 36 tst_res TINFO "Start to check CPU lightweight isolation stress test" 45 echo $randmom > /sys/devices/system/cpu/cpu0/core_ctl/max_cpus 47 if [ $randmom -ne 4 ]; then 53 ps -ef | grep "create_process" | grep -v "grep" \ [all …]
|
| /kernel/linux/linux-5.10/tools/power/cpupower/bench/ |
| D | README-BENCH | 1 This is cpufreq-bench, a microbenchmark for the cpufreq framework. 7 - Identify worst case performance loss when doing dynamic frequency 9 - Identify average reaction time of a governor to CPU load changes 10 - (Stress) Testing whether a cpufreq low level driver or governor works 12 - Identify cpufreq related performance regressions between kernels 13 - Possibly Real time priority testing? -> what happens if there are 15 - ... 18 - Power saving related regressions (In fact as better the performance 21 - Real world (workloads) 27 cpufreq-bench helps to test the condition of a given cpufreq governor. [all …]
|
| /kernel/linux/linux-6.6/tools/power/cpupower/bench/ |
| D | README-BENCH | 1 This is cpufreq-bench, a microbenchmark for the cpufreq framework. 7 - Identify worst case performance loss when doing dynamic frequency 9 - Identify average reaction time of a governor to CPU load changes 10 - (Stress) Testing whether a cpufreq low level driver or governor works 12 - Identify cpufreq related performance regressions between kernels 13 - Possibly Real time priority testing? -> what happens if there are 15 - ... 18 - Power saving related regressions (In fact as better the performance 21 - Real world (workloads) 27 cpufreq-bench helps to test the condition of a given cpufreq governor. [all …]
|