/linux/tools/testing/selftests/cpufreq/ |
H A D | module.sh | 21 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 …]
|
H A 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 …]
|
/linux/lib/raid6/ |
H A D | mktables.c | 59 printf("#ifdef __KERNEL__\n"); in main() 60 printf("#include <linux/export.h>\n"); in main() 61 printf("#endif\n"); in main() 62 printf("#include <linux/raid/pq.h>\n"); in main() 65 printf("\nconst u8 __attribute__((aligned(256)))\n" in main() 69 printf("\t{\n"); in main() 71 printf("\t\t"); in main() 73 printf("0x%02x,%c", gfmul(i, j + k), in main() 76 printf("\t},\n"); in main() 78 printf("};\n"); in main() [all …]
|
/linux/tools/testing/selftests/watchdog/ |
H A D | watchdog-test.c | 60 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 …]
|
/linux/arch/arm/tools/ |
H A D | gen-mach-types | 26 printf("/*\n"); 27 printf(" * This was automagically generated from %s!\n", FILENAME); 28 printf(" * Do NOT edit\n"); 29 printf(" */\n\n"); 30 printf("#ifndef __ASM_ARM_MACH_TYPE_H\n"); 31 printf("#define __ASM_ARM_MACH_TYPE_H\n\n"); 32 printf("#ifndef __ASSEMBLY__\n"); 33 printf("/* The type of machine we're running on */\n"); 34 printf("extern unsigned int __machine_arch_type;\n"); 35 printf("#endif\n\n"); [all …]
|
/linux/samples/nitro_enclaves/ |
H A D | ne_ioctl_sample.c | 173 printf("Error in create VM, no CPUs available in the NE CPU pool\n"); in ne_create_vm() 179 printf("Error in create VM [%m]\n"); in ne_create_vm() 203 printf("Running from poll thread, enclave fd %d\n", enclave_fd); in ne_poll_enclave_fd() 210 printf("[iter %d] Polling ...\n", i); in ne_poll_enclave_fd() 214 printf("Error in poll [%m]\n"); in ne_poll_enclave_fd() 222 printf("Poll: %d seconds elapsed\n", in ne_poll_enclave_fd() 228 printf("Poll received value 0x%x\n", fds[0].revents); in ne_poll_enclave_fd() 231 printf("Received POLLHUP\n"); in ne_poll_enclave_fd() 237 printf("Received POLLNVAL\n"); in ne_poll_enclave_fd() 266 printf("Error in mmap memory [%m]\n"); in ne_alloc_user_mem_region() [all …]
|
/linux/arch/sh/tools/ |
H A D | gen-mach-types | 18 printf("/*\n"); 19 printf(" * Automagically generated, don't touch.\n"); 20 printf(" */\n"); 21 printf("#ifndef __ASM_SH_MACHTYPES_H\n"); 22 printf("#define __ASM_SH_MACHTYPES_H\n"); 23 printf("\n"); 24 printf("/*\n"); 25 printf(" * We'll use the following MACH_xxx defs for placeholders for the time\n"); 26 printf(" * being .. these will all go away once sh_machtype is assigned per-board.\n"); 27 printf(" *\n"); [all …]
|
/linux/tools/testing/selftests/mqueue/ |
H A 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 …]
|
/linux/tools/power/cpupower/utils/ |
H A 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(_("Residency: %lu\n"), in cpuidle_cpu_output() 69 printf(_("Usage: %lu\n"), in cpuidle_cpu_output() [all …]
|
/linux/Documentation/arch/arm/samsung/ |
H A D | clksrc-change-registers.awk | 33 printf "find_length " f "\n" > "/dev/stderr" 44 printf "unknown length " f "\n" > "/dev/stderr" 52 printf "cannot find shift " s "\n" > "/dev/stderr" 75 printf "MASK " line "\n" > "/dev/stderr" 79 printf "=> '" name "' LENGTH=" dmask[name,0] " SHIFT=" dmask[name,1] "\n" > "/dev/stderr" 99 printf "unexpected end of file" > "/dev/stderr" 121 printf "shift '" shift "' ='" dmask[shift,0] "'\n" > "/dev/stderr" 122 printf "mask '" mask "'\n" > "/dev/stderr" 123 printf "dshft '" divshift "'\n" > "/dev/stderr" 124 printf "rdiv '" reg_div "'\n" > "/dev/stderr" [all …]
|
/linux/tools/testing/selftests/x86/ |
H A 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 …]
|
H A 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 …]
|
H A D | test_shadow_stack.c | 66 printf("[SKIP]\tCompiler does not support CET.\n"); in main() 137 printf("[INFO]\tnew_ssp = %lx, *new_ssp = %lx\n", in try_shstk() 141 printf("[INFO]\tchanging ssp from %lx to %lx\n", ssp, new_ssp); in try_shstk() 145 printf("[INFO]\tssp is now %lx\n", get_ssp()); in try_shstk() 158 printf("[FAIL]\tError creating shadow stack: %d\n", errno); in test_shstk_pivot() 164 printf("[OK]\tShadow stack pivot\n"); in test_shstk_pivot() 189 printf("[OK]\tShadow stack faults\n"); in test_shstk_faults() 206 printf("[INFO]\tCorrupting shadow stack\n"); in violate_ss() 212 printf("[INFO]\tGenerated shadow stack violation successfully\n"); in segv_handler() 238 printf("[OK]\tShadow stack violation test\n"); in test_shstk_violation() [all …]
|
H A D | fsgsbase.c | 159 printf("[RUN]\tARCH_SET_GS to 0x%lx\n", value); in check_gs_value() 166 printf("[OK]\tGSBASE was set as expected (selector 0x%hx)\n", in check_gs_value() 170 printf("[FAIL]\tGSBASE was not as expected: got 0x%lx (selector 0x%hx)\n", in check_gs_value() 177 printf("[OK]\tARCH_GET_GS worked as expected (selector 0x%hx)\n", in check_gs_value() 181 printf("[FAIL]\tARCH_GET_GS was not as expected: got 0x%lx (selector 0x%hx)\n", in check_gs_value() 190 …printf("[RUN]\tARCH_SET_GS to 0x%lx then mov 0 to %%gs%s\n", initial_base, schedule ? " and schedu… in mov_0_gs() 202 printf("[OK]\tGSBASE is 0x%lx\n", base); in mov_0_gs() 205 printf("[FAIL]\tGSBASE changed to 0x%lx but kernel reports 0x%lx\n", base, arch_base); in mov_0_gs() 235 printf("\tother thread: ARCH_SET_GS(0x%lx)%s -- sel is 0x%hx\n", in do_remote_base() 265 printf("\tusing LDT slot 0\n"); in load_gs() [all …]
|
/linux/scripts/atomic/ |
H A D | gen-atomic-fallback.sh | 78 printf "static __always_inline ${ret}\n" 79 printf "raw_${atomicname}(${params})\n" 80 printf "{\n" 90 printf "\t${retstmt}arch_${atomicname}(${args});\n" 91 printf "}\n\n" 95 printf "#if defined(arch_${atomicname})\n" 96 printf "\t${retstmt}arch_${atomicname}(${args});\n" 100 printf "#elif defined(arch_${basename}_relaxed)\n" 106 printf "#elif defined(arch_${basename})\n" 107 printf "\t${retstmt}arch_${basename}(${args});\n" [all …]
|
/linux/samples/vfs/ |
H A D | test-statx.c | 65 printf("%s", field); in print_time() 67 printf(".%09u", ts->tv_nsec); in print_time() 74 printf("\n"); in print_time() 81 printf("results=%x\n", stx->stx_mask); in dump_statx() 83 printf(" "); in dump_statx() 85 printf(" Size: %-15llu", (unsigned long long)stx->stx_size); in dump_statx() 87 printf(" Blocks: %-10llu", (unsigned long long)stx->stx_blocks); in dump_statx() 88 printf(" IO Block: %-6llu", (unsigned long long)stx->stx_blksize); in dump_statx() 91 case S_IFIFO: printf(" FIFO\n"); ft = 'p'; break; in dump_statx() 92 case S_IFCHR: printf(" character special file\n"); ft = 'c'; break; in dump_statx() [all …]
|
H A D | mountinfo.c | 73 printf("%s", flags & MOUNT_ATTR_RDONLY ? "ro" : "rw"); in show_mnt_attrs() 76 printf(",nosuid"); in show_mnt_attrs() 78 printf(",nodev"); in show_mnt_attrs() 80 printf(",noexec"); in show_mnt_attrs() 84 printf(",relatime"); in show_mnt_attrs() 87 printf(",noatime"); in show_mnt_attrs() 95 printf(",nodiratime"); in show_mnt_attrs() 97 printf(",nosymfollow"); in show_mnt_attrs() 99 printf(",idmapped"); in show_mnt_attrs() 105 printf(" shared:%llu", sm->mnt_peer_group); in show_propagation() [all …]
|
/linux/tools/power/cpupower/debug/i386/ |
H A 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 …]
|
/linux/arch/powerpc/xmon/ |
H A D | spu-dis.c | 94 printf(".long 0x%lx", insn); in print_insn_spu() 101 printf("%s", index->mnemonic); in print_insn_spu() 108 printf(tag == M_SYNC ? "c" : "p"); in print_insn_spu() 110 printf("d"); in print_insn_spu() 112 printf("e"); in print_insn_spu() 115 printf("\t"); in print_insn_spu() 121 printf(","); in print_insn_spu() 126 printf("$%lu", in print_insn_spu() 130 printf("$%lu", in print_insn_spu() 134 printf("$%lu", in print_insn_spu() [all …]
|
/linux/tools/arch/x86/intel_sdsi/ |
H A D | intel_sdsi.c | 209 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() 271 …printf(" SDSi Auth Err Sts: %s\n", !!s->regs.auth_err_sts.sdsi_content_auth_err ? "Err… in sdsi_read_reg() 274 …printf(" 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() 277 …printf(" On Demand: %s\n", !!s->regs.en_features.sdsi ? "Enabled" : "Disabled"… in sdsi_read_reg() [all …]
|
/linux/tools/testing/selftests/powerpc/dexcr/ |
H A D | lsdexcr.c | 18 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 …]
|
/linux/drivers/staging/greybus/Documentation/firmware/ |
H A D | firmware.c | 37 …printf("\nUsage: ./firmware <gb-fw-mgmt-X (default: gb-fw-mgmt-0)> <interface: 0, backend: 1 (defa… in usage() 45 printf("Get Interface Firmware Version\n"); in update_intf_firmware() 49 printf("Failed to get interface firmware version: %s (%d)\n", in update_intf_firmware() 54 printf("Interface Firmware tag (%s), major (%d), minor (%d)\n", in update_intf_firmware() 59 printf("Loading Interface Firmware\n"); in update_intf_firmware() 71 printf("Failed to load interface firmware: %s (%d)\n", fwdev, in update_intf_firmware() 78 printf("Load status says loading failed: %d\n", in update_intf_firmware() 83 printf("Interface Firmware (%s) Load done: major: %d, minor: %d, status: %d\n", in update_intf_firmware() 88 printf("Initiate Mode switch\n"); in update_intf_firmware() 92 printf("Failed to initiate mode-switch (%d)\n", ret); in update_intf_firmware() [all …]
|
/linux/scripts/kconfig/ |
H A D | conf.c | 56 printf("\n%s\n", str_get(&help)); in print_help() 84 printf("%s", str); in xfgets() 113 printf("KCONFIG_SEED=0x%X\n", seed); in set_randconfig_seed() 294 printf("(NEW) "); in conf_askvalue() 300 printf("%s\n", def); in conf_askvalue() 310 printf("%s\n", def); in conf_askvalue() 329 printf("%*s%s ", indent - 1, "", menu->prompt->text); in conf_string() 330 printf("(%s) ", sym->name); in conf_string() 333 printf("[%s] ", def); in conf_string() 362 printf("%*s%s ", indent - 1, "", menu->prompt->text); in conf_sym() [all …]
|
/linux/samples/bpf/ |
H A D | trace_event_user.c | 35 printf("ksym not found. Is kallsyms loaded?\n"); in print_ksym() 39 printf("%s;", sym->name); in print_ksym() 50 printf("%llx;", addr); in print_addr() 67 printf("%3lld %s;", count, key->comm); in print_stack() 69 printf("---;"); in print_stack() 74 printf("-;"); in print_stack() 76 printf("---;"); in print_stack() 82 printf("\r"); in print_stack() 84 printf("\n"); in print_stack() 87 printf("stackmap collisions seen. Consider increasing size\n"); in print_stack() [all …]
|
/linux/tools/testing/selftests/memfd/ |
H A D | memfd_test.c | 57 printf("snprintf(%d) failed on %m\n", fd); in fd2name() 66 printf("readlink(%s) failed %m\n", buf1); in fd2name() 79 printf("memfd_create(\"%s\", %u) failed: %m\n", in mfd_assert_new() 86 printf("ftruncate(%llu) failed: %m\n", (unsigned long long)sz); in mfd_assert_new() 98 printf("open sysctl failed: %m\n"); in sysctl_assert_write() 103 printf("write sysctl %s failed: %m\n", val); in sysctl_assert_write() 113 printf("open sysctl failed: %m\n"); in sysctl_fail_write() 118 printf("write sysctl %s succeeded, but failure expected\n", in sysctl_fail_write() 130 printf("open sysctl failed: %m\n"); in sysctl_assert_equal() 135 printf("read sysctl failed: %m\n"); in sysctl_assert_equal() [all …]
|