Home
last modified time | relevance | path

Searched refs:printf (Results 1 – 25 of 811) sorted by relevance

12345678910>>...33

/tools/testing/selftests/cpufreq/
Dmodule.sh21 printf "** Test: Running ${FUNCNAME[0]} **\n\n"
23 printf "Inserting $1 module\n"
30 printf "Removing $1 module\n"
37 printf "\n"
45 printf "** Test: Running ${FUNCNAME[0]} for driver $1 and cpus_hotplug=$2 **\n\n"
50 printf "\n"
54 printf "Inserting $1 module\n\n"
57 printf "Insmod $1 failed\n"
64 printf "\n"
71 printf "Removing $1 module\n\n"
[all …]
Dcpufreq.sh18 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 …]
Dgovernor.sh24 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/
Dwatchdog-test.c60 printf("."); in keep_alive()
74 printf("\nStopping watchdog ticks failed (%d)...\n", errno); in term()
76 printf("\nStopping watchdog ticks...\n"); in term()
82 printf("Usage: %s [options]\n", progname); in usage()
83 printf(" -f, --file\t\tOpen watchdog device file\n"); in usage()
84 printf("\t\t\tDefault is /dev/watchdog\n"); in usage()
85 printf(" -i, --info\t\tShow watchdog_info\n"); in usage()
86 printf(" -s, --status\t\tGet status & supported features\n"); in usage()
87 printf(" -b, --bootstatus\tGet last boot status (Watchdog/POR)\n"); in usage()
88 printf(" -d, --disable\t\tTurn off the watchdog timer\n"); in usage()
[all …]
/tools/power/cpupower/debug/i386/
Dintel_gsic.c31 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/
Dioperm.c71 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 …]
Diopl.c71 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 …]
Dfsgsbase_restore.c59 printf("\tsegment base address = 0x%lx\n", (unsigned long)target); in init_seg()
73 printf("\tusing LDT slot 0\n"); in init_seg()
99 printf("[NOTE]\tcould not create a segment -- can't test anything\n"); in init_seg()
102 printf("\tusing GDT slot %d\n", desc.entry_number); in init_seg()
117 printf("\tTracee: in tracee_zap_segment()\n"); in tracee_zap_segment()
132 printf("\tTracee is going back to sleep\n"); in tracee_zap_segment()
137 printf("[FAIL]\tTracee hit unreachable code\n"); in tracee_zap_segment()
144 printf("\tSetting up a segment\n"); in main()
149 printf("[FAIL]\tseg[0] == %x; should be %x\n", val, EXPECTED_VALUE); in main()
152 printf("[OK]\tThe segment points to the right place.\n"); in main()
[all …]
Dtest_FCOMI.c75 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 …]
Dmov_ss_trap.c88 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 …]
/tools/power/cpupower/utils/
Dcpuidle-info.c30 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(_("Residency: %lu\n"), in cpuidle_cpu_output()
69 printf(_("Usage: %lu\n"), in cpuidle_cpu_output()
[all …]
Dcpufreq-info.c32printf(_("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 ms", ((unsigned int) duration/1000000), in print_duration()
96 printf("%u us", ((unsigned int) duration/1000)); in print_duration()
98 printf("%u.%03u us", ((unsigned int) duration/1000), in print_duration()
101 printf("%lu ns", duration); in print_duration()
107 printf("%u.%02u ms", ((unsigned int) duration/1000000), in print_duration()
113 printf("%u us", ((unsigned int) duration / 1000)); in print_duration()
118 printf("%u.%01u us", ((unsigned int) duration/1000), in print_duration()
[all …]
/tools/testing/selftests/mqueue/
Dmq_open_tests.c158 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/powerpc/dexcr/
Dlsdexcr.c18 printf("%s", list[i]); in print_list()
20 printf(", "); in print_list()
29 printf("%s: 0x%08x", name, bits); in print_dexcr()
32 printf("\n"); in print_dexcr()
48 printf(" ("); in print_dexcr()
50 printf(")\n"); in print_dexcr()
67 printf("%12s %c (%d): ", aspect->name, effective & mask ? '*' : ' ', aspect->index); in print_aspect()
69 printf(" \t(%s)\n", aspect->desc); in print_aspect()
113 printf("%12s (%d): %-28s (%s, %s)\n", in print_aspect_config()
126 printf(" : ! actual %s does not match config\n", aspect->name); in print_aspect_config()
[all …]
/tools/testing/selftests/prctl/
Ddisable-tsc-test.c45 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/mm/
Dwrite_to_hugetlbfs.c39 printf("Usage: %s -p <path to hugetlbfs file> -s <size to map> " in exit_usage()
48 printf("Received %d.\n", signo); in sig_handler()
51 printf("Deleting the memory\n"); in sig_handler()
59 printf("Done deleting the memory\n"); in sig_handler()
126 printf("Writing to this path: %s\n", path); in main()
134 printf("Writing this size: %d\n", size); in main()
142 printf("Not populating.\n"); in main()
144 printf("Populating.\n"); in main()
147 printf("Not writing to memory.\n"); in main()
154 printf("Using method=%d\n", method); in main()
[all …]
/tools/perf/trace/beauty/tracepoints/
Dx86_msr.sh16 printf "static const char * const 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 * const 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 * const x86_AMD_V_KVM_MSRs[] = {\n"
39 xargs printf "\t[%s - x86_AMD_V_KVM_MSRs_offset] = \"%s\",\n"
[all …]
/tools/power/cpupower/bench/
Dmain.c41 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/media_tests/
Dvideo_device_test.c52 printf("Failed to get priority: %s\n", strerror(errno)); in priority_test()
58 printf("Failed to set priority: %s\n", strerror(errno)); in priority_test()
63 printf("Failed to get new priority: %s\n", strerror(errno)); in priority_test()
68 printf("Priority wasn't set - test failed\n"); in priority_test()
75 printf("Failed to restore priority: %s\n", strerror(errno)); in priority_test()
92 printf("\nNote:\n" in loop_test()
101 printf("VIDIOC_QUERYCAP errno %s\n", strerror(errno)); in loop_test()
103 printf("Video device driver %s\n", vcap.driver); in loop_test()
107 printf("VIDIOC_G_TUNER, errno %s\n", strerror(errno)); in loop_test()
109 printf("type %d rangelow %d rangehigh %d\n", in loop_test()
[all …]
/tools/testing/selftests/bpf/
Dtest_lirc_mode2_user.c58 printf("Usage: %s /dev/lircN /dev/input/eventM\n", argv[0]); in main()
65 printf("Failed to load bpf program\n"); in main()
71 printf("failed to open lirc device %s: %m\n", argv[1]); in main()
78 printf("bpf_prog_detach2 not attached should fail: %m\n"); in main()
84 printf("failed to open input device %s: %m\n", argv[1]); in main()
92 printf("Failed to query bpf programs on lirc device: %m\n"); in main()
97 printf("Expected nothing to be attached\n"); in main()
103 printf("Failed to attach bpf to lirc device: %m\n"); in main()
110 printf("Failed to send test IR message: %m\n"); in main()
123 printf("Failed to read decoded IR: %m\n"); in main()
[all …]
/tools/testing/selftests/powerpc/mm/
Dexec_prot.c172 printf("Testing read on --x, should fault..."); in test()
176 printf("ok!\n"); in test()
184 printf("Testing write on --x, should fault..."); in test()
188 printf("ok!\n"); in test()
190 printf("Testing exec on ---, should fault..."); in test()
192 printf("ok!\n"); in test()
194 printf("Testing exec on r--, should fault..."); in test()
196 printf("ok!\n"); in test()
198 printf("Testing exec on -w-, should fault..."); in test()
200 printf("ok!\n"); in test()
[all …]
/tools/power/acpi/tools/pfrut/
Dpfrut.c130 printf("Number expected: type(0:execution, 1:history) - Quit.\n"); in parse_options()
141 printf("Number expected: level(0, 1, 2, 4) - Quit.\n"); in parse_options()
177 printf("update capability:%d\n", cap->update_cap); in print_cap()
180 printf("code injection image type:%s\n", uuid); in print_cap()
181 printf("fw_version:%d\n", cap->fw_version); in print_cap()
182 printf("code_rt_version:%d\n", cap->code_rt_version); in print_cap()
185 printf("driver update image type:%s\n", uuid); in print_cap()
186 printf("drv_rt_version:%d\n", cap->drv_rt_version); in print_cap()
187 printf("drv_svn:%d\n", cap->drv_svn); in print_cap()
190 printf("platform id:%s\n", uuid); in print_cap()
[all …]
/tools/perf/trace/beauty/
Dusbdevfs_ioctl.sh9 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/
Dvdso_test_correctness.c101 printf("Warning: failed to find vsyscall getcpu\n"); in vsyscall_getcpu()
125 printf("[WARN]\tfailed to find vDSO\n"); in fill_function_pointers()
131 printf("Warning: failed to find getcpu in vDSO\n"); in fill_function_pointers()
137 printf("Warning: failed to find clock_gettime in vDSO\n"); in fill_function_pointers()
142 printf("Warning: failed to find clock_gettime64 in vDSO\n"); in fill_function_pointers()
147 printf("Warning: failed to find gettimeofday in vDSO\n"); in fill_function_pointers()
174 printf("[RUN]\tTesting getcpu...\n"); in test_getcpu()
209 printf("[%s]\tCPU %u:", ok ? "OK" : "FAIL", cpu); in test_getcpu()
211 printf(" syscall: cpu %u, node %u", cpu_sys, node_sys); in test_getcpu()
213 printf(" vdso: cpu %u, node %u", cpu_vdso, node_vdso); in test_getcpu()
[all …]
/tools/arch/x86/intel_sdsi/
Dintel_sdsi.c209 printf("%s\n", entry->d_name); in sdsi_list_devices()
266 printf("\n"); in sdsi_read_reg()
267 printf("Socket information for device %s\n", s->dev_name); in sdsi_read_reg()
268 printf("\n"); in sdsi_read_reg()
269 printf("PPIN: 0x%lx\n", s->regs.ppin); in sdsi_read_reg()
270 printf("NVRAM Content Authorization Error Status\n"); in sdsi_read_reg()
271printf(" SDSi Auth Err Sts: %s\n", !!s->regs.auth_err_sts.sdsi_content_auth_err ? "Err… in sdsi_read_reg()
274printf(" Metering Auth Err Sts: %s\n", !!s->regs.auth_err_sts.sdsi_metering_auth_err ? "Er… in sdsi_read_reg()
276 printf("Enabled Features\n"); in sdsi_read_reg()
277printf(" On Demand: %s\n", !!s->regs.en_features.sdsi ? "Enabled" : "Disabled"… in sdsi_read_reg()
[all …]

12345678910>>...33