/tools/testing/selftests/x86/ |
D | ldt_gdt.c | 142 struct user_desc desc = *d; in install_valid_mode() local 152 desc.entry_number = gdt_entry_num; in install_valid_mode() 154 ret = syscall(SYS_set_thread_area, &desc); in install_valid_mode() 157 &desc, sizeof(desc)); in install_valid_mode() 169 uint32_t limit = desc.limit; in install_valid_mode() 170 if (desc.limit_in_pages) in install_valid_mode() 172 check_valid_segment(desc.entry_number, ldt, ar, limit, true); in install_valid_mode() 175 if (desc.seg_32bit) { in install_valid_mode() 189 static bool install_valid(const struct user_desc *desc, uint32_t ar) in install_valid() argument 191 bool ret = install_valid_mode(desc, ar, false, true); in install_valid() [all …]
|
D | fsgsbase_restore.c | 62 struct user_desc desc = { in init_seg() local 73 if (syscall(SYS_modify_ldt, 1, &desc, sizeof(desc)) == 0) { in init_seg() 80 NULL, sizeof(desc), in init_seg() 83 memcpy(low_desc, &desc, sizeof(desc)); in init_seg() 96 memcpy(&desc, low_desc, sizeof(desc)); in init_seg() 97 munmap(low_desc, sizeof(desc)); in init_seg() 103 printf("\tusing GDT slot %d\n", desc.entry_number); in init_seg() 105 unsigned short sel = (unsigned short)((desc.entry_number << 3) | 0x3); in init_seg()
|
D | fsgsbase.c | 259 struct user_desc desc = { in load_gs() local 270 if (syscall(SYS_modify_ldt, 1, &desc, sizeof(desc)) == 0) { in load_gs() 278 NULL, sizeof(desc), in load_gs() 281 memcpy(low_desc, &desc, sizeof(desc)); in load_gs() 291 memcpy(&desc, low_desc, sizeof(desc)); in load_gs() 292 munmap(low_desc, sizeof(desc)); in load_gs() 298 printf("\tusing GDT slot %d\n", desc.entry_number); in load_gs() 299 set_thread_area_entry_number = desc.entry_number; in load_gs() 301 unsigned short gs = (unsigned short)((desc.entry_number << 3) | 0x3); in load_gs()
|
/tools/perf/tests/ |
D | builtin-test.c | 41 .desc = "vmlinux symtab matches kallsyms", 45 .desc = "Detect openat syscall event", 49 .desc = "Detect openat syscall event on all cpus", 53 .desc = "Read samples using the mmap interface", 57 .desc = "Test data source output", 61 .desc = "Parse event definition strings", 65 .desc = "Simple expression parser", 69 .desc = "PERF_RECORD_* events & perf_sample fields", 73 .desc = "Parse perf pmu format", 77 .desc = "PMU events", [all …]
|
D | llvm.c | 25 const char *desc; member 30 .desc = "Basic BPF llvm compile", 34 .desc = "kbuild searching", 38 .desc = "Compile source for BPF prologue generation", 42 .desc = "Compile source for BPF relocation", 55 const char *desc; in test_llvm__fetch_bpf_obj() local 64 desc = bpf_source_table[idx].desc; in test_llvm__fetch_bpf_obj() 123 pr_debug("Failed to compile test case: '%s'\n", desc); in test_llvm__fetch_bpf_obj() 144 bpf_source_table[subtest].desc); in test__llvm() 162 return bpf_source_table[subtest].desc; in test__llvm_subtest_get_desc()
|
D | clang.c | 8 const char *desc; member 13 .desc = "builtin clang compile C source to IR", 17 .desc = "builtin clang compile C source to ELF object", 31 return clang_testcase_table[i].desc; in test__clang_subtest_get_desc()
|
D | pmu-events.c | 45 .desc = "L1 BTB Correction", 56 .desc = "L2 BTB Correction", 67 .desc = "Number of segment register loads", 78 .desc = "Memory cluster signals to block micro-op dispatch for any reason", 89 .desc = "Number of Enhanced Intel SpeedStep(R) Technology (EIST) transitions", 100 .desc = "L3 cache access, read", 122 .desc = "DDRC write commands. Unit: hisi_sccl,ddrc ", 136 ….desc = "Unit: uncore_cbox A cross-core snoop resulted from L3 Eviction which misses in some proce… 150 .desc = "Total read hits. Unit: hisi_sccl,l3c ", 164 .desc = "Total cache misses. Unit: uncore_imc_free_running ", [all …]
|
D | wp.c | 187 const char *desc; member 193 .desc = "Read Only Watchpoint", 199 .desc = "Write Only Watchpoint", 203 .desc = "Read / Write Watchpoint", 207 .desc = "Modify Watchpoint", 221 return wp_testcase_table[i].desc; in test__wp_subtest_get_desc()
|
D | pfm.c | 21 const char *desc; member 26 .desc = "test of individual --pfm-events", 30 .desc = "test groups of --pfm-events", 196 return pfm_testcase_table[i].desc; in test__pfm_subtest_get_desc()
|
/tools/perf/arch/x86/tests/ |
D | arch-tests.c | 8 .desc = "x86 rdpmc", 13 .desc = "DWARF unwind", 19 .desc = "x86 instruction decoder - new instructions", 23 .desc = "Intel PT packet decoder", 29 .desc = "x86 bp modify", 34 .desc = "x86 Sample parsing",
|
/tools/virtio/ringtest/ |
D | virtio_ring_0_9.c | 86 ring.desc[i].next = i + 1; in alloc_ring() 105 struct vring_desc *desc; in add_inbuf() local 117 desc = ring.desc; in add_inbuf() 118 desc[head].flags = VRING_DESC_F_NEXT; in add_inbuf() 119 desc[head].addr = (unsigned long)(void *)buf; in add_inbuf() 120 desc[head].len = len; in add_inbuf() 125 desc[head].flags &= ~VRING_DESC_F_NEXT; in add_inbuf() 127 guest.free_head = desc[head].next; in add_inbuf() 181 *lenp = ring.desc[index].len; in get_buf() 186 *bufp = (void*)(unsigned long)ring.desc[index].addr; in get_buf() [all …]
|
/tools/perf/util/ |
D | perf-hooks.c | 21 void perf_hooks__invoke(const struct perf_hook_desc *desc) in perf_hooks__invoke() argument 23 if (!(desc && desc->p_hook_func && *desc->p_hook_func)) in perf_hooks__invoke() 28 desc->hook_name); in perf_hooks__invoke() 31 current_perf_hook = desc; in perf_hooks__invoke() 32 (**desc->p_hook_func)(desc->hook_ctx); in perf_hooks__invoke()
|
/tools/perf/util/intel-pt-decoder/ |
D | intel-pt-log.c | 100 char desc[INTEL_PT_PKT_DESC_MAX]; in __intel_pt_log_packet() local 106 intel_pt_pkt_desc(packet, desc, INTEL_PT_PKT_DESC_MAX); in __intel_pt_log_packet() 107 fprintf(f, "%s\n", desc); in __intel_pt_log_packet() 112 char desc[INTEL_PT_INSN_DESC_MAX]; in __intel_pt_log_insn() local 121 if (intel_pt_insn_desc(intel_pt_insn, desc, INTEL_PT_INSN_DESC_MAX) > 0) in __intel_pt_log_insn() 122 fprintf(f, "%s\n", desc); in __intel_pt_log_insn() 130 char desc[INTEL_PT_INSN_DESC_MAX]; in __intel_pt_log_insn_no_data() local 136 if (intel_pt_insn_desc(intel_pt_insn, desc, INTEL_PT_INSN_DESC_MAX) > 0) in __intel_pt_log_insn_no_data() 137 fprintf(f, "%s\n", desc); in __intel_pt_log_insn_no_data()
|
/tools/testing/selftests/net/ |
D | ipsec.c | 531 struct xfrm_desc desc; member 540 tr.desc = *d; in write_test_result() 842 struct xfrm_desc *desc) in xfrm_state_pack_algo() argument 855 alen = strlen(desc->a_algo); in xfrm_state_pack_algo() 856 elen = strlen(desc->e_algo); in xfrm_state_pack_algo() 857 clen = strlen(desc->c_algo); in xfrm_state_pack_algo() 858 aelen = strlen(desc->ae_algo); in xfrm_state_pack_algo() 861 switch (desc->proto) { in xfrm_state_pack_algo() 867 strncpy(alg.u.alg.alg_name, desc->a_algo, ALGO_LEN - 1); in xfrm_state_pack_algo() 868 if (xfrm_fill_key(desc->a_algo, alg.u.alg.alg_key, in xfrm_state_pack_algo() [all …]
|
D | ioam6.sh | 322 local desc=$1 323 printf "TEST: %-60s [ OK ]\n" "${desc}" 328 local desc=$1 329 printf "TEST: %-60s [FAIL]\n" "${desc}" 335 local desc=$2 352 log_test_failed "${desc}" 356 [ $? = 0 ] && log_test_passed "${desc}" || log_test_failed "${desc}" 432 local desc="Unknown IOAM namespace" 437 run_test ${FUNCNAME[0]} "${desc}" ioam-node-alpha ioam-node-beta db01::2 \ 447 local desc="Missing trace room" [all …]
|
/tools/testing/selftests/powerpc/ptrace/ |
D | perf-hwbreak.c | 361 char *desc = "Process specific, Two events, diff addr"; in test_process_multi_diff_addr() local 394 printf("FAILED: %s: %lld != 2 || %lld != 2\n", desc, breaks1, breaks2); in test_process_multi_diff_addr() 398 printf("TESTED: %s\n", desc); in test_process_multi_diff_addr() 406 char *desc = "Process specific, Two events, same addr"; in test_process_multi_same_addr() local 439 printf("FAILED: %s: %lld != 2 || %lld != 2\n", desc, breaks1, breaks2); in test_process_multi_same_addr() 443 printf("TESTED: %s\n", desc); in test_process_multi_same_addr() 451 char *desc = "Process specific, Two events, diff addr, one is RO, other is WO"; in test_process_multi_diff_addr_ro_wo() local 484 printf("FAILED: %s: %lld != 1 || %lld != 1\n", desc, breaks1, breaks2); in test_process_multi_diff_addr_ro_wo() 488 printf("TESTED: %s\n", desc); in test_process_multi_diff_addr_ro_wo() 496 char *desc = "Process specific, Two events, same addr, one is RO, other is WO"; in test_process_multi_same_addr_ro_wo() local [all …]
|
D | ptrace-perf-hwbreak.c | 583 char *desc[14] = { variable 604 ret |= do_test(desc[0], test1, child_pid); in test() 605 ret |= do_test(desc[1], test2, child_pid); in test() 606 ret |= do_test(desc[2], test3, child_pid); in test() 607 ret |= do_test(desc[3], test4, child_pid); in test() 608 ret |= do_test(desc[4], test5, child_pid); in test() 609 ret |= do_test(desc[5], test6, child_pid); in test() 610 ret |= do_test(desc[6], test7, child_pid); in test() 611 ret |= do_test(desc[7], test8, child_pid); in test() 612 ret |= do_test(desc[8], test9, child_pid); in test() [all …]
|
/tools/testing/selftests/kselftest/ |
D | module.sh | 16 desc="" # Output prefix. 37 desc="$1" 66 echo "$desc: $1"
|
/tools/testing/selftests/bpf/prog_tests/ |
D | sk_lookup.c | 70 const char *desc; member 676 .desc = "TCP IPv4 redir port", in test_redirect_lookup() 684 .desc = "TCP IPv4 redir addr", in test_redirect_lookup() 692 .desc = "TCP IPv4 redir with reuseport", in test_redirect_lookup() 702 .desc = "TCP IPv4 redir skip reuseport", in test_redirect_lookup() 712 .desc = "TCP IPv6 redir port", in test_redirect_lookup() 720 .desc = "TCP IPv6 redir addr", in test_redirect_lookup() 728 .desc = "TCP IPv4->IPv6 redir port", in test_redirect_lookup() 736 .desc = "TCP IPv6 redir with reuseport", in test_redirect_lookup() 746 .desc = "TCP IPv6 redir skip reuseport", in test_redirect_lookup() [all …]
|
/tools/testing/selftests/ptp/ |
D | testptp.c | 154 struct ptp_pin_desc desc; in main() local 396 desc.index = i; in main() 397 if (ioctl(fd, PTP_PIN_GETFUNC, &desc)) { in main() 402 desc.name, desc.index, desc.func, desc.chan); in main() 448 memset(&desc, 0, sizeof(desc)); in main() 449 desc.index = pin_index; in main() 450 desc.func = pin_func; in main() 451 desc.chan = index; in main() 452 if (ioctl(fd, PTP_PIN_SETFUNC, &desc)) { in main()
|
/tools/perf/arch/arm/tests/ |
D | arch-tests.c | 9 .desc = "DWARF unwind", 14 .desc = "Vectors page",
|
/tools/lib/bpf/ |
D | xsk.c | 101 __u64 desc; member 184 off->rx.desc = off_v1.rx.desc; in xsk_mmap_offsets_v1() 189 off->tx.desc = off_v1.tx.desc; in xsk_mmap_offsets_v1() 194 off->fr.desc = off_v1.fr.desc; in xsk_mmap_offsets_v1() 199 off->cr.desc = off_v1.cr.desc; in xsk_mmap_offsets_v1() 248 map = mmap(NULL, off.fr.desc + umem->config.fill_size * sizeof(__u64), in xsk_create_umem_rings() 259 fill->ring = map + off.fr.desc; in xsk_create_umem_rings() 262 map = mmap(NULL, off.cr.desc + umem->config.comp_size * sizeof(__u64), in xsk_create_umem_rings() 275 comp->ring = map + off.cr.desc; in xsk_create_umem_rings() 280 munmap(map, off.fr.desc + umem->config.fill_size * sizeof(__u64)); in xsk_create_umem_rings() [all …]
|
/tools/usb/usbip/libsrc/ |
D | usbip_common.c | 22 char *desc; member 37 char *desc; member 53 for (int i = 0; portst_strings[i].desc != NULL; i++) in usbip_status_string() 55 return portst_strings[i].desc; in usbip_status_string() 64 return speed_strings[i].desc; in usbip_speed_string() 71 char *desc; member 86 for (int i = 0; op_common_status_strings[i].desc != NULL; i++) in usbip_op_common_status_string() 88 return op_common_status_strings[i].desc; in usbip_op_common_status_string()
|
/tools/usb/ffs-aio-example/multibuff/host_app/ |
D | test.c | 84 struct libusb_device_descriptor desc; in test_init() local 85 ret = libusb_get_device_descriptor(dev, &desc); in test_init() 91 if (desc.idVendor == VENDOR && desc.idProduct == PRODUCT) { in test_init()
|
/tools/usb/ffs-aio-example/simple/host_app/ |
D | test.c | 84 struct libusb_device_descriptor desc; in test_init() local 85 ret = libusb_get_device_descriptor(dev, &desc); in test_init() 91 if (desc.idVendor == VENDOR && desc.idProduct == PRODUCT) { in test_init()
|