/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.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() 290 memcpy(&desc, low_desc, sizeof(desc)); in load_gs() 291 munmap(low_desc, sizeof(desc)); in load_gs() 297 printf("\tusing GDT slot %d\n", desc.entry_number); in load_gs() 298 set_thread_area_entry_number = desc.entry_number; in load_gs() 300 unsigned short gs = (unsigned short)((desc.entry_number << 3) | 0x3); in load_gs()
|
/tools/perf/tests/ |
D | builtin-test.c | 40 .desc = "vmlinux symtab matches kallsyms", 44 .desc = "Detect openat syscall event", 48 .desc = "Detect openat syscall event on all cpus", 52 .desc = "Read samples using the mmap interface", 56 .desc = "Test data source output", 60 .desc = "Parse event definition strings", 64 .desc = "Simple expression parser", 68 .desc = "PERF_RECORD_* events & perf_sample fields", 72 .desc = "Parse perf pmu format", 76 .desc = "DSO data read", [all …]
|
D | llvm.c | 33 const char *desc; member 38 .desc = "Basic BPF llvm compile", 42 .desc = "kbuild searching", 46 .desc = "Compile source for BPF prologue generation", 50 .desc = "Compile source for BPF relocation", 63 const char *desc; in test_llvm__fetch_bpf_obj() local 72 desc = bpf_source_table[idx].desc; in test_llvm__fetch_bpf_obj() 132 pr_debug("Failed to compile test case: '%s'\n", desc); in test_llvm__fetch_bpf_obj() 153 bpf_source_table[subtest].desc); in test__llvm() 171 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 | wp.c | 185 const char *desc; member 191 .desc = "Read Only Watchpoint", 197 .desc = "Write Only Watchpoint", 201 .desc = "Read / Write Watchpoint", 205 .desc = "Modify Watchpoint", 219 return wp_testcase_table[i].desc; in test__wp_subtest_get_desc()
|
D | bpf.c | 64 const char *desc; member 74 .desc = "Basic BPF filtering", 83 .desc = "BPF pinning", 94 .desc = "BPF prologue generation", 104 .desc = "BPF relocation checker", 300 return bpf_testcase_table[i].desc; in test__bpf_subtest_get_desc()
|
/tools/perf/arch/x86/tests/ |
D | arch-tests.c | 8 .desc = "x86 rdpmc", 12 .desc = "Convert perf time to TSC", 17 .desc = "DWARF unwind", 23 .desc = "x86 instruction decoder - new instructions", 27 .desc = "Intel PT packet decoder", 33 .desc = "x86 bp modify",
|
/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 …]
|
D | ring.c | 33 struct desc { struct 56 struct desc *ring; argument 98 struct desc desc = { in alloc_ring() local 101 ring[i] = desc; in alloc_ring()
|
/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()
|
D | pmu.c | 259 perf_pmu_assign_str(old->name, "desc", &old->desc, &newalias->desc); in perf_pmu_update_alias() 278 zfree(&newalias->desc); in perf_pmu_free_alias() 307 char *desc, char *val, in __perf_pmu__new_alias() argument 370 alias->desc = desc ? strdup(desc) : NULL; in __perf_pmu__new_alias() 372 desc ? strdup(desc) : NULL; in __perf_pmu__new_alias() 786 (char *)pe->desc, (char *)pe->event, in pmu_add_cpu_aliases() 1350 char *desc; member 1364 if (!!as->desc != !!bs->desc) in cmp_sevent() 1365 return !!as->desc - !!bs->desc; in cmp_sevent() 1424 char *name = alias->desc ? alias->name : in print_pmu_events() [all …]
|
/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/ |
D | kselftest_module.sh | 16 desc="" # Output prefix. 37 desc="$1" 66 echo "$desc: $1"
|
/tools/testing/selftests/ptp/ |
D | testptp.c | 150 struct ptp_pin_desc desc; in main() local 382 desc.index = i; in main() 383 if (ioctl(fd, PTP_PIN_GETFUNC, &desc)) { in main() 388 desc.name, desc.index, desc.func, desc.chan); in main() 411 memset(&desc, 0, sizeof(desc)); in main() 412 desc.index = pin_index; in main() 413 desc.func = pin_func; in main() 414 desc.chan = index; in main() 415 if (ioctl(fd, PTP_PIN_SETFUNC, &desc)) { in main()
|
/tools/lib/bpf/ |
D | xsk.c | 80 __u64 desc; member 163 off->rx.desc = off_v1.rx.desc; in xsk_mmap_offsets_v1() 168 off->tx.desc = off_v1.tx.desc; in xsk_mmap_offsets_v1() 173 off->fr.desc = off_v1.fr.desc; in xsk_mmap_offsets_v1() 178 off->cr.desc = off_v1.cr.desc; in xsk_mmap_offsets_v1() 265 map = mmap(NULL, off.fr.desc + umem->config.fill_size * sizeof(__u64), in xsk_umem__create_v0_0_4() 279 fill->ring = map + off.fr.desc; in xsk_umem__create_v0_0_4() 282 map = mmap(NULL, off.cr.desc + umem->config.comp_size * sizeof(__u64), in xsk_umem__create_v0_0_4() 296 comp->ring = map + off.cr.desc; in xsk_umem__create_v0_0_4() 302 munmap(map, off.fr.desc + umem->config.fill_size * sizeof(__u64)); in xsk_umem__create_v0_0_4() [all …]
|
/tools/perf/arch/arm/tests/ |
D | arch-tests.c | 9 .desc = "DWARF unwind", 14 .desc = "Vectors page",
|
/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/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/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()
|
/tools/perf/pmu-events/ |
D | jevents.c | 322 char *desc, char *long_desc, in print_events_table_entry() argument 341 fprintf(outfp, "\t.desc = \"%s\",\n", desc); in print_events_table_entry() 366 char *desc; member 393 op(desc); \ 417 char *desc, char *long_desc, char *pmu, in save_arch_std_events() argument 479 try_fixup(const char *fn, char *arch_std, char **event, char **desc, in try_fixup() argument 506 int (*func)(void *data, char *name, char *event, char *desc, in json_events() argument 529 char *event = NULL, *desc = NULL, *name = NULL; in json_events() local 575 addfield(map, &desc, "", "", val); in json_events() 576 fixdesc(desc); in json_events() [all …]
|
/tools/perf/bench/ |
D | mem-functions.c | 59 const char *desc; member 125 printf("# function '%s' (%s)\n", r->name, r->desc); in __bench_mem_function() 216 info->functions[i].name, info->functions[i].desc); in bench_mem_common() 274 .desc = "Default memcpy() provided by glibc", 278 # define MEMCPY_FN(_fn, _name, _desc) {.name = _name, .desc = _desc, .fn.memcpy = _fn}, 353 .desc = "Default memset() provided by glibc", 357 # define MEMSET_FN(_fn, _name, _desc) { .name = _name, .desc = _desc, .fn.memset = _fn },
|
/tools/power/cpupower/utils/idle_monitor/ |
D | nhm_idle.c | 35 .desc = N_("Processor Core C3"), 42 .desc = N_("Processor Core C6"), 50 .desc = N_("Processor Package C3"), 57 .desc = N_("Processor Package C6"),
|
/tools/testing/selftests/net/ |
D | fib-onlink-tests.sh | 242 local desc="$6" 248 log_test $? ${exp_rc} "${desc}" 258 local desc="$6" 265 log_test $? ${exp_rc} "${desc}" 340 local desc="$6" 346 log_test $? ${exp_rc} "${desc}" 357 local desc="$7" 361 log_test $? ${exp_rc} "${desc}"
|
D | nettest.c | 172 static void log_address(const char *desc, struct sockaddr *sa) in log_address() argument 183 desc, in log_address() 192 desc, in log_address() 506 const char *desc) in expected_addr_match() argument 517 desc, in expected_addr_match() 528 desc, in expected_addr_match() 535 desc); in expected_addr_match() 540 log_msg("%s address matches expected\n", desc); in expected_addr_match() 550 const char *desc; in show_sockstat() local 553 desc = server_mode ? "server local:" : "client local:"; in show_sockstat() [all …]
|