/tools/testing/selftests/cpufreq/ |
D | module.sh | 21 printf "** Test: Running ${FUNCNAME[0]} **\n\n" 23 printf "Inserting $1 module\n" 27 printf "Insmod $1 failed\n" 31 printf "Removing $1 module\n" 35 printf "rmmod $1 failed\n" 39 printf "\n" 47 printf "** Test: Running ${FUNCNAME[0]} for driver $1 and cpus_hotplug=$2 **\n\n" 52 printf "\n" 56 printf "Inserting $1 module\n\n" 59 printf "Insmod $1 failed\n" [all …]
|
D | cpufreq.sh | 18 printf "Warning: No cpufreq directory present for $1\n" 25 printf "Warning: cpufreq directory present for $1\n" 50 printf "Printing directory: $1\n\n" 54 printf "$file:" 57 printf "\n" 61 printf "\n" 67 printf "** Test: Running ${FUNCNAME[0]} **\n\n" 71 printf "%s\n\n" "------------------------------------------------" 82 printf "Updating directory: $1\n\n" 94 printf "Writing $val to: $file\n" [all …]
|
D | governor.sh | 24 printf "$CPUFREQROOT/$2\n" 26 printf "$CPUFREQROOT/$1/$2\n" 28 printf "INVALID\n" 43 printf "Governor backup done for $1: $CUR_GOV\n" 47 printf "Governor frequency backup done for $1: $CUR_FREQ\n" 50 printf "\n" 58 printf "Governor restored for $1 to $CUR_GOV\n" 62 printf "Governor frequency restored for $1: $CUR_FREQ\n" 65 printf "\n" 111 printf "\nSwitched governor for $1 to $2\n\n" [all …]
|
/tools/testing/selftests/watchdog/ |
D | watchdog-test.c | 51 printf("."); in keep_alive() 65 printf("\nStopping watchdog ticks failed (%d)...\n", errno); in term() 67 printf("\nStopping watchdog ticks...\n"); in term() 73 printf("Usage: %s [options]\n", progname); in usage() 74 printf(" -f, --file\t\tOpen watchdog device file\n"); in usage() 75 printf("\t\t\tDefault is /dev/watchdog\n"); in usage() 76 printf(" -i, --info\t\tShow watchdog_info\n"); in usage() 77 printf(" -b, --bootstatus\tGet last boot status (Watchdog/POR)\n"); in usage() 78 printf(" -d, --disable\t\tTurn off the watchdog timer\n"); in usage() 79 printf(" -e, --enable\t\tTurn on the watchdog timer\n"); in usage() [all …]
|
/tools/power/cpupower/debug/i386/ |
D | intel_gsic.c | 31 printf("Failed!\n"); in main() 35 printf("BIOS supports GSIC call:\n"); in main() 36 printf("\tsignature: %c%c%c%c\n", in main() 41 printf("\tcommand port = 0x%.4x\n", in main() 43 printf("\tcommand = 0x%.4x\n", in main() 45 printf("\tevent port = 0x%.8x\n", r.ecx); in main() 46 printf("\tflags = 0x%.8x\n", r.edx); in main() 48 printf("non-default command value. If speedstep-smi " in main() 55 printf("non-default command port. If speedstep-smi " in main() 62 printf("BIOS DOES NOT support GSIC call. Dumping registers anyway:\n"); in main() [all …]
|
/tools/testing/selftests/x86/ |
D | ioperm.c | 71 printf("[FAIL]\toutb to 0x%02hx failed\n", port); in expect_ok() 75 printf("[OK]\toutb to 0x%02hx worked\n", port); in expect_ok() 81 printf("[FAIL]\toutb to 0x%02hx worked\n", port); in expect_gp() 85 printf("[OK]\toutb to 0x%02hx failed\n", port); in expect_gp() 103 printf("[RUN]\tenable 0x80\n"); in main() 105 printf("[OK]\tioperm(0x80, 1, 1) failed (%d) -- try running as root\n", in main() 112 printf("[RUN]\tdisable 0x80\n"); in main() 114 printf("[FAIL]\tioperm(0x80, 1, 0) failed (%d)", errno); in main() 122 printf("[FAIL]\tioperm(0x80, 1, 0) failed (%d)", errno); in main() 131 printf("[RUN]\tchild: check that we inherited permissions\n"); in main() [all …]
|
D | iopl.c | 71 printf("[FAIL]\toutb to 0x%02hx failed\n", port); in expect_ok_outb() 75 printf("[OK]\toutb to 0x%02hx worked\n", port); in expect_ok_outb() 81 printf("[FAIL]\toutb to 0x%02hx worked\n", port); in expect_gp_outb() 85 printf("[OK]\toutb to 0x%02hx failed\n", port); in expect_gp_outb() 138 printf("[OK]\tSTI faulted\n"); in expect_gp_sti() 141 printf("[OK]\tSTI NOPped\n"); in expect_gp_sti() 144 printf("[FAIL]\tSTI worked\n"); in expect_gp_sti() 158 printf("[OK]\tCLI faulted\n"); in test_cli() 161 printf("[OK]\tCLI NOPped\n"); in test_cli() 164 printf("[FAIL]\tCLI worked\n"); in test_cli() [all …]
|
D | test_vsyscall.c | 78 printf("[WARN]\tfailed to find vDSO\n"); in init_vdso() 84 printf("[WARN]\tfailed to find gettimeofday in vDSO\n"); in init_vdso() 88 printf("[WARN]\tfailed to find clock_gettime in vDSO\n"); in init_vdso() 92 printf("[WARN]\tfailed to find time in vDSO\n"); in init_vdso() 97 printf("[%s]\tfailed to find getcpu in vDSO\n", in init_vdso() 112 printf("[WARN]\tCould not open /proc/self/maps -- assuming vsyscall is r-x\n"); in init_vsys() 130 printf("\tvsyscall map: %s", line); in init_vsys() 134 printf("[FAIL]\taddress range is nonsense\n"); in init_vsys() 138 printf("\tvsyscall permissions are %c-%c\n", r, x); in init_vsys() 149 printf("\tno vsyscall map in /proc/self/maps\n"); in init_vsys() [all …]
|
D | fsgsbase_restore.c | 60 printf("\tsegment base address = 0x%lx\n", (unsigned long)target); in init_seg() 74 printf("\tusing LDT slot 0\n"); in init_seg() 100 printf("[NOTE]\tcould not create a segment -- can't test anything\n"); in init_seg() 103 printf("\tusing GDT slot %d\n", desc.entry_number); in init_seg() 118 printf("\tTracee: in tracee_zap_segment()\n"); in tracee_zap_segment() 133 printf("\tTracee is going back to sleep\n"); in tracee_zap_segment() 138 printf("[FAIL]\tTracee hit unreachable code\n"); in tracee_zap_segment() 145 printf("\tSetting up a segment\n"); in main() 150 printf("[FAIL]\tseg[0] == %x; should be %x\n", val, EXPECTED_VALUE); in main() 153 printf("[OK]\tThe segment points to the right place.\n"); in main() [all …]
|
D | test_FCOMI.c | 75 printf("[BAD]\tfcomi_1_pi with flags:%lx\n", flags); in test() 79 printf("[BAD]\tfcomi_pi_1 with flags:%lx->%lx\n", flags, res_fcomi_pi_1 & ARITH); in test() 83 printf("[BAD]\tfcomi_1_1 with flags:%lx\n", flags); in test() 87 printf("[BAD]\tFE_INVALID is set in %s\n", __func__); in test() 112 printf("[BAD]\tfcomi_qnan_1 with flags:%lx\n", flags); in test_qnan() 116 printf("[BAD]\tFE_INVALID is not set in %s\n", __func__); in test_qnan() 141 printf("[BAD]\tfcomi_qnan_1 with flags:%lx\n", flags); in testu_qnan() 145 printf("[BAD]\tFE_INVALID is set in %s\n", __func__); in testu_qnan() 172 printf("[BAD]\tfcomi_qnan_1 with flags:%lx\n", flags); in testu_snan() 177 printf("[BAD]\tFE_INVALID is not set in %s\n", __func__); in testu_snan() [all …]
|
D | mov_ss_trap.c | 88 printf("\tDR0 = %lx, DR1 = %lx, DR7 = %lx\n", dr0, dr1, dr7); in enable_watchpoint() 120 printf("\tGot SIGTRAP with RIP=%lx, EFLAGS.RF=%d\n", in sigtrap() 129 printf("\tGot %s with RIP=%lx\n", signames[sig], in handle_and_return() 137 printf("\tGot %s with RIP=%lx\n", signames[sig], in handle_and_longjmp() 148 printf("\tSS = 0x%hx, &SS = 0x%p\n", ss, &ss); in main() 151 printf("\tPR_SET_PTRACER_ANY succeeded\n"); in main() 153 printf("\tSet up a watchpoint\n"); in main() 157 printf("[RUN]\tRead from watched memory (should get SIGTRAP)\n"); in main() 160 printf("[RUN]\tMOV SS; INT3\n"); in main() 163 printf("[RUN]\tMOV SS; INT 3\n"); in main() [all …]
|
D | syscall_nt.c | 46 printf("[OK]\tThe syscall worked and flags are still set\n"); in do_it() 48 …printf("[FAIL]\tThe syscall worked but flags were cleared (flags = 0x%lx but expected 0x%lx set)\n… in do_it() 56 printf("[RUN]\tSet NT and issue a syscall\n"); in main() 59 printf("[RUN]\tSet AC and issue a syscall\n"); in main() 62 printf("[RUN]\tSet NT|AC and issue a syscall\n"); in main() 72 printf("[RUN]\tSet TF and issue a syscall\n"); in main() 75 printf("[RUN]\tSet NT|TF and issue a syscall\n"); in main() 78 printf("[RUN]\tSet AC|TF and issue a syscall\n"); in main() 81 printf("[RUN]\tSet NT|AC|TF and issue a syscall\n"); in main() 89 printf("[RUN]\tSet DF and issue a syscall\n"); in main() [all …]
|
D | fsgsbase.c | 164 printf("[RUN]\tARCH_SET_GS to 0x%lx\n", value); in check_gs_value() 171 printf("[OK]\tGSBASE was set as expected (selector 0x%hx)\n", in check_gs_value() 175 printf("[FAIL]\tGSBASE was not as expected: got 0x%lx (selector 0x%hx)\n", in check_gs_value() 182 printf("[OK]\tARCH_GET_GS worked as expected (selector 0x%hx)\n", in check_gs_value() 186 printf("[FAIL]\tARCH_GET_GS was not as expected: got 0x%lx (selector 0x%hx)\n", in check_gs_value() 195 …printf("[RUN]\tARCH_SET_GS to 0x%lx then mov 0 to %%gs%s\n", initial_base, schedule ? " and schedu… in mov_0_gs() 207 printf("[OK]\tGSBASE is 0x%lx\n", base); in mov_0_gs() 210 printf("[FAIL]\tGSBASE changed to 0x%lx but kernel reports 0x%lx\n", base, arch_base); in mov_0_gs() 241 printf("\tother thread: ARCH_SET_GS(0x%lx)%s -- sel is 0x%hx\n", in do_remote_base() 271 printf("\tusing LDT slot 0\n"); in load_gs() [all …]
|
/tools/power/cpupower/utils/ |
D | cpufreq-info.c | 32 …printf(_("Couldn't count the number of CPUs (%s: %s), assuming 1\n"), "/proc/stat", strerror(errno… in count_cpus() 64 printf(_(" minimum CPU frequency - maximum CPU frequency - governor\n")); in proc_cpufreq_output() 78 printf("CPU%3d %9lu kHz (%3d %%) - %9lu kHz (%3d %%) - %s\n", in proc_cpufreq_output() 93 printf("%u.%06u GHz", ((unsigned int) speed/1000000), in print_speed() 96 printf("%u.%03u MHz", ((unsigned int) speed/1000), in print_speed() 99 printf("%lu kHz", speed); in print_speed() 105 printf("%u.%02u GHz", ((unsigned int) speed/1000000), in print_speed() 111 printf("%u MHz", ((unsigned int) speed/1000)); in print_speed() 116 printf("%u.%01u MHz", ((unsigned int) speed/1000), in print_speed() 130 printf("%u.%06u ms", ((unsigned int) duration/1000000), in print_duration() [all …]
|
D | cpuidle-info.c | 30 printf(_("CPU %u: No idle states\n"), cpu); in cpuidle_cpu_output() 34 printf(_("Number of idle states: %d\n"), idlestates); in cpuidle_cpu_output() 35 printf(_("Available idle states:")); in cpuidle_cpu_output() 40 printf(" %s", tmp); in cpuidle_cpu_output() 43 printf("\n"); in cpuidle_cpu_output() 56 printf("%s%s:\n", tmp, (disabled) ? " (DISABLED) " : ""); in cpuidle_cpu_output() 62 printf(_("Flags/Description: %s\n"), tmp); in cpuidle_cpu_output() 65 printf(_("Latency: %lu\n"), in cpuidle_cpu_output() 67 printf(_("Usage: %lu\n"), in cpuidle_cpu_output() 69 printf(_("Duration: %llu\n"), in cpuidle_cpu_output() [all …]
|
/tools/testing/selftests/mqueue/ |
D | mq_open_tests.c | 158 printf("Current rlimit value for POSIX message queue bytes is " in validate_current_settings() 169 printf("Temporarily lowering default queue parameters " in validate_current_settings() 181 printf("Temporarily lowering maximum queue parameters " in validate_current_settings() 244 printf("Using Default queue path - %s\n", default_queue_path); in main() 296 printf("\nInitial system state:\n"); in main() 297 printf("\tUsing queue path:\t\t%s\n", queue_path); in main() 298 printf("\tRLIMIT_MSGQUEUE(soft):\t\t%ld\n", in main() 300 printf("\tRLIMIT_MSGQUEUE(hard):\t\t%ld\n", in main() 302 printf("\tMaximum Message Size:\t\t%d\n", saved_max_msgsize); in main() 303 printf("\tMaximum Queue Size:\t\t%d\n", saved_max_msgs); in main() [all …]
|
/tools/testing/selftests/prctl/ |
D | disable-tsc-test.c | 45 printf("[ SIG_SEGV ]\n"); in sigsegv_cb() 46 printf("prctl(PR_GET_TSC, &tsc_val); "); in sigsegv_cb() 52 printf("tsc_val == %s\n", tsc_names[tsc_val]); in sigsegv_cb() 53 printf("prctl(PR_SET_TSC, PR_TSC_ENABLE)\n"); in sigsegv_cb() 58 printf("rdtsc() == "); in sigsegv_cb() 67 printf("rdtsc() == %llu\n", (unsigned long long)rdtsc()); in main() 68 printf("prctl(PR_GET_TSC, &tsc_val); "); in main() 74 printf("tsc_val == %s\n", tsc_names[tsc_val]); in main() 75 printf("rdtsc() == %llu\n", (unsigned long long)rdtsc()); in main() 76 printf("prctl(PR_SET_TSC, PR_TSC_ENABLE)\n"); in main() [all …]
|
/tools/testing/selftests/vm/ |
D | map_fixed_noreplace.c | 36 printf("Error: couldn't map the space we need for the test\n"); in find_base_addr() 41 printf("Error: couldn't map the space we need for the test\n"); in find_base_addr() 59 printf("Error: couldn't map the space we need for the test\n"); in main() 71 printf("mmap() @ 0x%lx-0x%lx p=%p result=%m\n", addr, addr + size, p); in main() 75 printf("Error: couldn't map the space we need for the test\n"); in main() 82 printf("Error: munmap failed!?\n"); in main() 85 printf("unmap() successful\n"); in main() 91 printf("mmap() @ 0x%lx-0x%lx p=%p result=%m\n", addr, addr + size, p); in main() 95 printf("Error: first mmap() failed unexpectedly\n"); in main() 111 printf("mmap() @ 0x%lx-0x%lx p=%p result=%m\n", addr, addr + size, p); in main() [all …]
|
D | write_to_hugetlbfs.c | 39 printf("Usage: %s -p <path to hugetlbfs file> -s <size to map> " in exit_usage() 48 printf("Received %d.\n", signo); in sig_handler() 50 printf("Deleting the memory\n"); in sig_handler() 58 printf("Done deleting the memory\n"); in sig_handler() 124 printf("Writing to this path: %s\n", path); in main() 132 printf("Writing this size: %d\n", size); in main() 140 printf("Not populating.\n"); in main() 142 printf("Populating.\n"); in main() 145 printf("Not writing to memory.\n"); in main() 152 printf("Using method=%d\n", method); in main() [all …]
|
/tools/perf/trace/beauty/tracepoints/ |
D | x86_msr.sh | 16 printf "static const char *x86_MSRs[] = {\n" 20 xargs printf "\t[%s] = \"%s\",\n" 21 printf "};\n\n" 25 printf "#define x86_64_specific_MSRs_offset " 27 printf "static const char *x86_64_specific_MSRs[] = {\n" 30 xargs printf "\t[%s - x86_64_specific_MSRs_offset] = \"%s\",\n" 31 printf "};\n\n" 34 printf "#define x86_AMD_V_KVM_MSRs_offset " 36 printf "static const char *x86_AMD_V_KVM_MSRs[] = {\n" 39 xargs printf "\t[%s - x86_AMD_V_KVM_MSRs_offset] = \"%s\",\n" [all …]
|
/tools/power/cpupower/bench/ |
D | main.c | 41 printf("usage: ./bench\n"); in usage() 42 printf("Options:\n"); in usage() 43 printf(" -l, --load=<long int>\t\tinitial load time in us\n"); in usage() 44 printf(" -s, --sleep=<long int>\t\tinitial sleep time in us\n"); in usage() 45 printf(" -x, --load-step=<long int>\ttime to be added to load time, in us\n"); in usage() 46 printf(" -y, --sleep-step=<long int>\ttime to be added to sleep time, in us\n"); in usage() 47 printf(" -c, --cpu=<cpu #>\t\t\tCPU Nr. to use, starting at 0\n"); in usage() 48 printf(" -p, --prio=<priority>\t\t\tscheduler priority, HIGH, LOW or DEFAULT\n"); in usage() 49 printf(" -g, --governor=<governor>\t\tcpufreq governor to test\n"); in usage() 50 printf(" -n, --cycles=<int>\t\t\tload/sleep cycles\n"); in usage() [all …]
|
/tools/testing/selftests/bpf/ |
D | test_lirc_mode2_user.c | 57 printf("Usage: %s /dev/lircN /dev/input/eventM\n", argv[0]); in main() 64 printf("Failed to load bpf program\n"); in main() 70 printf("failed to open lirc device %s: %m\n", argv[1]); in main() 77 printf("bpf_prog_detach2 not attached should fail: %m\n"); in main() 83 printf("failed to open input device %s: %m\n", argv[1]); in main() 91 printf("Failed to query bpf programs on lirc device: %m\n"); in main() 96 printf("Expected nothing to be attached\n"); in main() 102 printf("Failed to attach bpf to lirc device: %m\n"); in main() 109 printf("Failed to send test IR message: %m\n"); in main() 122 printf("Failed to read decoded IR: %m\n"); in main() [all …]
|
/tools/perf/trace/beauty/ |
D | usbdevfs_ioctl.sh | 9 printf "static const char *usbdevfs_ioctl_cmds[] = {\n" 13 sort | xargs printf "\t[%s] = \"%s\",\n" 14 printf "};\n\n" 15 printf "#if 0\n" 16 printf "static const char *usbdevfs_ioctl_32_cmds[] = {\n" 20 sort | xargs printf "\t[%s] = \"%s\",\n" 21 printf "};\n" 22 printf "#endif\n"
|
/tools/testing/selftests/vDSO/ |
D | vdso_test_correctness.c | 99 printf("Warning: failed to find vsyscall getcpu\n"); in vsyscall_getcpu() 117 printf("[WARN]\tfailed to find vDSO\n"); in fill_function_pointers() 123 printf("Warning: failed to find getcpu in vDSO\n"); in fill_function_pointers() 129 printf("Warning: failed to find clock_gettime in vDSO\n"); in fill_function_pointers() 134 printf("Warning: failed to find clock_gettime64 in vDSO\n"); in fill_function_pointers() 139 printf("Warning: failed to find gettimeofday in vDSO\n"); in fill_function_pointers() 166 printf("[RUN]\tTesting getcpu...\n"); in test_getcpu() 201 printf("[%s]\tCPU %u:", ok ? "OK" : "FAIL", cpu); in test_getcpu() 203 printf(" syscall: cpu %u, node %u", cpu_sys, node_sys); in test_getcpu() 205 printf(" vdso: cpu %u, node %u", cpu_vdso, node_vdso); in test_getcpu() [all …]
|
/tools/testing/selftests/timers/ |
D | leap-a-day.c | 139 printf("Error: Early timer expiration! (Should be %ld)\n", next_leap); in sigalarm() 141 printf("adjtimex: %10ld sec + %6ld us (%i)\t%s\n", in sigalarm() 148 printf("Error: Timer seeing incorrect NTP state? (Should be TIME_WAIT)\n"); in sigalarm() 150 printf("adjtimex: %10ld sec + %6ld us (%i)\t%s\n", in sigalarm() 170 printf("ERROR: hrtimer early expiration failure observed.\n"); in test_hrtimer_failure() 192 …printf("Only setting leap-flag, not changing time. It could take up to a day for leap to trigger.\… in main() 202 printf("Usage: %s [-w] [-i <iterations>]\n", argv[0]); in main() 203 printf(" -w: Set flag and wait for leap second each iteration"); in main() 204 printf(" (default sets time to right before leapsecond)\n"); in main() 205 printf(" -i: Number of iterations (-1 = infinite, default is 10)\n"); in main() [all …]
|