/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/util/ |
D | bpf-utils.c | 133 struct bpil_array_desc *desc; in get_bpf_prog_info_linear() local 136 desc = bpil_array_desc + i; in get_bpf_prog_info_linear() 139 if (info_len < desc->array_offset + sizeof(__u32) || in get_bpf_prog_info_linear() 140 info_len < desc->count_offset + sizeof(__u32) || in get_bpf_prog_info_linear() 141 (desc->size_offset > 0 && info_len < (__u32)desc->size_offset)) in get_bpf_prog_info_linear() 149 count = bpf_prog_info_read_offset_u32(&info, desc->count_offset); in get_bpf_prog_info_linear() 150 size = bpf_prog_info_read_offset_u32(&info, desc->size_offset); in get_bpf_prog_info_linear() 166 struct bpil_array_desc *desc; in get_bpf_prog_info_linear() local 172 desc = bpil_array_desc + i; in get_bpf_prog_info_linear() 173 count = bpf_prog_info_read_offset_u32(&info, desc->count_offset); in get_bpf_prog_info_linear() [all …]
|
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/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/pmu-events/ |
D | empty-pmu-events.c | 18 .desc = "L3 cache access, read", 25 .desc = "Number of segment register loads", 31 .desc = "Memory cluster signals to block micro-op dispatch for any reason", 37 .desc = "Number of Enhanced Intel SpeedStep(R) Technology (EIST) transitions", 43 .desc = "DDRC write commands. Unit: hisi_sccl,ddrc ", 51 ….desc = "A cross-core snoop resulted from L3 Eviction which misses in some processor core. Unit: u… 59 .desc = "UNC_CBO_HYPHEN. Unit: uncore_cbox ", 67 .desc = "UNC_CBO_TWO_HYPH. Unit: uncore_cbox ", 75 .desc = "Total read hits. Unit: hisi_sccl,l3c ", 83 .desc = "Total cache misses. Unit: uncore_imc_free_running ", [all …]
|
/tools/testing/selftests/powerpc/dexcr/ |
D | lsdexcr.c | 17 const char *desc; member 24 .desc = "Speculative branch hint enable", 29 .desc = "Indirect branch recurrent target prediction disable", 34 .desc = "Subroutine return address prediction disable", 39 .desc = "Non-privileged hash instruction enable", 44 .desc = "Privileged hash instruction enable", 103 printf(" \t(%s)\n", aspect->desc); in print_aspect()
|
/tools/testing/selftests/bpf/prog_tests/ |
D | fib_lookup.c | 31 const char *desc; member 40 { .desc = "IPv6 failed neigh", 42 { .desc = "IPv6 stale neigh", 45 { .desc = "IPv6 skip neigh", 48 { .desc = "IPv4 failed neigh", 50 { .desc = "IPv4 stale neigh", 53 { .desc = "IPv4 skip neigh", 56 { .desc = "IPv4 TBID lookup failure", 60 { .desc = "IPv4 TBID lookup success", 64 { .desc = "IPv6 TBID lookup failure", [all …]
|
D | sk_lookup.c | 69 const char *desc; member 675 .desc = "TCP IPv4 redir port", in test_redirect_lookup() 683 .desc = "TCP IPv4 redir addr", in test_redirect_lookup() 691 .desc = "TCP IPv4 redir with reuseport", in test_redirect_lookup() 701 .desc = "TCP IPv4 redir skip reuseport", in test_redirect_lookup() 711 .desc = "TCP IPv6 redir port", in test_redirect_lookup() 719 .desc = "TCP IPv6 redir addr", in test_redirect_lookup() 727 .desc = "TCP IPv4->IPv6 redir port", in test_redirect_lookup() 735 .desc = "TCP IPv6 redir with reuseport", in test_redirect_lookup() 745 .desc = "TCP IPv6 redir skip reuseport", in test_redirect_lookup() [all …]
|
/tools/testing/selftests/mm/ |
D | gup_longterm.c | 236 static void run_with_memfd(test_fn fn, const char *desc) in run_with_memfd() argument 240 ksft_print_msg("[RUN] %s ... with memfd\n", desc); in run_with_memfd() 252 static void run_with_tmpfile(test_fn fn, const char *desc) in run_with_tmpfile() argument 257 ksft_print_msg("[RUN] %s ... with tmpfile\n", desc); in run_with_tmpfile() 275 static void run_with_local_tmpfile(test_fn fn, const char *desc) in run_with_local_tmpfile() argument 280 ksft_print_msg("[RUN] %s ... with local tmpfile\n", desc); in run_with_local_tmpfile() 298 static void run_with_memfd_hugetlb(test_fn fn, const char *desc, in run_with_memfd_hugetlb() argument 304 ksft_print_msg("[RUN] %s ... with memfd hugetlb (%zu kB)\n", desc, in run_with_memfd_hugetlb() 320 const char *desc; member 425 run_with_memfd(test_case->fn, test_case->desc); in run_test_case() [all …]
|
D | cow.c | 748 static void run_with_base_page(test_fn fn, const char *desc) in run_with_base_page() argument 750 ksft_print_msg("[RUN] %s ... with base page\n", desc); in run_with_base_page() 754 static void run_with_base_page_swap(test_fn fn, const char *desc) in run_with_base_page_swap() argument 756 ksft_print_msg("[RUN] %s ... with swapped out base page\n", desc); in run_with_base_page_swap() 914 static void run_with_thp(test_fn fn, const char *desc, size_t size) in run_with_thp() argument 917 desc, size / 1024); in run_with_thp() 921 static void run_with_thp_swap(test_fn fn, const char *desc, size_t size) in run_with_thp_swap() argument 924 desc, size / 1024); in run_with_thp_swap() 928 static void run_with_pte_mapped_thp(test_fn fn, const char *desc, size_t size) in run_with_pte_mapped_thp() argument 931 desc, size / 1024); in run_with_pte_mapped_thp() [all …]
|
/tools/testing/selftests/net/ |
D | ipsec.c | 569 struct xfrm_desc desc; member 578 tr.desc = *d; in write_test_result() 827 struct xfrm_desc *desc) in xfrm_state_pack_algo() argument 840 alen = strlen(desc->a_algo); in xfrm_state_pack_algo() 841 elen = strlen(desc->e_algo); in xfrm_state_pack_algo() 842 clen = strlen(desc->c_algo); in xfrm_state_pack_algo() 843 aelen = strlen(desc->ae_algo); in xfrm_state_pack_algo() 846 switch (desc->proto) { in xfrm_state_pack_algo() 852 strncpy(alg.u.alg.alg_name, desc->a_algo, ALGO_LEN - 1); in xfrm_state_pack_algo() 853 if (xfrm_fill_key(desc->a_algo, alg.u.alg.alg_key, in xfrm_state_pack_algo() [all …]
|
D | ioam6.sh | 353 local desc=$1 354 printf "TEST: %-60s [ OK ]\n" "${desc}" 359 local desc=$1 360 printf "TEST: %-60s [FAIL]\n" "${desc}" 372 local desc=$2 390 log_test_failed "${desc}" 397 log_test_passed "${desc}" 400 log_test_failed "${desc}" 488 local desc="Unknown IOAM namespace" 496 run_test ${FUNCNAME[0]} "${desc} ($1 mode)" ioam-node-alpha ioam-node-beta \ [all …]
|
/tools/perf/tests/ |
D | builtin-test-list.c | 123 static void append_script(const char *dir, const char *file, const char *desc) in append_script() argument 147 files[files_num - 1].desc = strdup_check(desc); in append_script() 150 files[files_num].desc = NULL; in append_script() 152 width = strlen(desc); /* Track max width of desc */ in append_script() 173 const char *desc = shell_test__description in append_scripts_in_dir() local 176 if (desc) /* It has a desc line - valid script */ in append_scripts_in_dir() 177 append_script(path, ent->d_name, desc); in append_scripts_in_dir()
|
D | builtin-test.c | 174 return t->test_cases[subtest].desc; in test_description() 176 return t->desc; in test_description() 187 static bool perf_test__matches(const char *desc, int curr, int argc, const char *argv[]) in perf_test__matches() argument 204 if (strcasestr(desc, argv[i])) in perf_test__matches() 276 pr_debug("%s:", t->desc); in test_and_print() 278 pr_debug("%s subtest %d:", t->desc, subtest + 1); in test_and_print() 338 .desc = file->desc, in run_shell_tests() 344 .desc = test_cases[0].desc, in run_shell_tests() 350 if (test_suite.desc == NULL || in run_shell_tests() 351 !perf_test__matches(test_suite.desc, curr, argc, argv)) in run_shell_tests() [all …]
|
D | pmu-events.c | 50 .desc = "L1 BTB Correction", 62 .desc = "L2 BTB Correction", 74 .desc = "Number of segment register loads", 86 .desc = "Memory cluster signals to block micro-op dispatch for any reason", 98 .desc = "Number of Enhanced Intel SpeedStep(R) Technology (EIST) transitions", 110 .desc = "L3 cache access, read", 132 .desc = "DDRC write commands", 146 .desc = "A cross-core snoop resulted from L3 Eviction which misses in some processor core", 160 .desc = "UNC_CBO_HYPHEN", 174 .desc = "UNC_CBO_TWO_HYPH", [all …]
|
/tools/perf/ |
D | builtin-list.c | 43 bool desc; member 102 const char *desc, const char *long_desc, in default_print_event() argument 147 if (desc && print_state->desc) { in default_print_event() 152 desc_len = strlen(desc); in default_print_event() 154 desc[desc_len - 1] != '.' in default_print_event() 156 desc, pmu_name); in default_print_event() 159 wordwrap(desc_len > 0 ? desc_with_unit : desc, 8, pager_get_columns(), 0); in default_print_event() 163 long_desc = long_desc ?: desc; in default_print_event() 180 const char *desc, in default_print_metric() argument 233 if (desc && print_state->desc) { in default_print_metric() [all …]
|
/tools/testing/selftests/kselftest/ |
D | module.sh | 16 desc="" # Output prefix. 37 desc="$1" 66 echo "$desc: $1"
|
/tools/perf/util/intel-pt-decoder/ |
D | intel-pt-log.c | 215 char desc[INTEL_PT_PKT_DESC_MAX]; in __intel_pt_log_packet() local 221 intel_pt_pkt_desc(packet, desc, INTEL_PT_PKT_DESC_MAX); in __intel_pt_log_packet() 222 fprintf(f, "%s\n", desc); in __intel_pt_log_packet() 227 char desc[INTEL_PT_INSN_DESC_MAX]; in __intel_pt_log_insn() local 236 if (intel_pt_insn_desc(intel_pt_insn, desc, INTEL_PT_INSN_DESC_MAX) > 0) in __intel_pt_log_insn() 237 fprintf(f, "%s\n", desc); in __intel_pt_log_insn() 245 char desc[INTEL_PT_INSN_DESC_MAX]; in __intel_pt_log_insn_no_data() local 251 if (intel_pt_insn_desc(intel_pt_insn, desc, INTEL_PT_INSN_DESC_MAX) > 0) in __intel_pt_log_insn_no_data() 252 fprintf(f, "%s\n", desc); in __intel_pt_log_insn_no_data()
|
/tools/testing/selftests/powerpc/ptrace/ |
D | perf-hwbreak.c | 407 char *desc = "Process specific, Two events, diff addr"; in test_process_multi_diff_addr() local 440 printf("FAILED: %s: %lld != 2 || %lld != 2\n", desc, breaks1, breaks2); in test_process_multi_diff_addr() 444 printf("TESTED: %s\n", desc); in test_process_multi_diff_addr() 452 char *desc = "Process specific, Two events, same addr"; in test_process_multi_same_addr() local 485 printf("FAILED: %s: %lld != 2 || %lld != 2\n", desc, breaks1, breaks2); in test_process_multi_same_addr() 489 printf("TESTED: %s\n", desc); in test_process_multi_same_addr() 497 char *desc = "Process specific, Two events, diff addr, one is RO, other is WO"; in test_process_multi_diff_addr_ro_wo() local 530 printf("FAILED: %s: %lld != 1 || %lld != 1\n", desc, breaks1, breaks2); in test_process_multi_diff_addr_ro_wo() 534 printf("TESTED: %s\n", desc); in test_process_multi_diff_addr_ro_wo() 542 char *desc = "Process specific, Two events, same addr, one is RO, other is WO"; in test_process_multi_same_addr_ro_wo() local [all …]
|
/tools/testing/selftests/bpf/ |
D | xsk.c | 185 map = mmap(NULL, off.fr.desc + umem->config.fill_size * sizeof(__u64), in xsk_create_umem_rings() 196 fill->ring = map + off.fr.desc; in xsk_create_umem_rings() 199 map = mmap(NULL, off.cr.desc + umem->config.comp_size * sizeof(__u64), in xsk_create_umem_rings() 212 comp->ring = map + off.cr.desc; in xsk_create_umem_rings() 217 munmap(map, off.fr.desc + umem->config.fill_size * sizeof(__u64)); in xsk_create_umem_rings() 490 munmap(ctx->fill->ring - off.fr.desc, off.fr.desc + umem->config.fill_size * in xsk_put_ctx() 492 munmap(ctx->comp->ring - off.cr.desc, off.cr.desc + umem->config.comp_size * in xsk_put_ctx() 623 rx_map = mmap(NULL, off.rx.desc + in xsk_socket__create_shared() 637 rx->ring = rx_map + off.rx.desc; in xsk_socket__create_shared() 644 tx_map = mmap(NULL, off.tx.desc + in xsk_socket__create_shared() [all …]
|
/tools/testing/selftests/kvm/s390x/ |
D | memop.c | 57 static struct kvm_s390_mem_op ksmo_from_desc(struct mop_desc *desc) in ksmo_from_desc() argument 60 .gaddr = (uintptr_t)desc->gaddr, in ksmo_from_desc() 61 .size = desc->size, in ksmo_from_desc() 62 .buf = ((uintptr_t)desc->buf), in ksmo_from_desc() 66 switch (desc->target) { in ksmo_from_desc() 68 if (desc->mode == READ) in ksmo_from_desc() 70 if (desc->mode == WRITE) in ksmo_from_desc() 74 if (desc->mode == READ) in ksmo_from_desc() 76 if (desc->mode == WRITE) in ksmo_from_desc() 80 if (desc->mode == READ) in ksmo_from_desc() [all …]
|
/tools/testing/selftests/ptp/ |
D | testptp.c | 158 struct ptp_pin_desc desc; in main() local 405 memset(&desc, 0, sizeof(desc)); in main() 406 desc.index = pin_index; in main() 407 desc.func = pin_func; in main() 408 desc.chan = index; in main() 409 if (ioctl(fd, PTP_PIN_SETFUNC, &desc)) { in main() 455 desc.index = i; in main() 456 if (ioctl(fd, PTP_PIN_GETFUNC, &desc)) { in main() 461 desc.name, desc.index, desc.func, desc.chan); in main()
|
/tools/verification/rv/src/ |
D | in_kernel.c | 118 char *desc; in ikm_read_desc() local 121 desc = tracefs_instance_file_read(NULL, path, NULL); in ikm_read_desc() 122 if (!desc) { in ikm_read_desc() 127 *strstr(desc, "\n") = '\0'; in ikm_read_desc() 129 return desc; in ikm_read_desc() 140 char *desc; in ikm_fill_monitor_definition() local 148 desc = ikm_read_desc(name); in ikm_fill_monitor_definition() 149 if (!desc) { in ikm_fill_monitor_definition() 156 strncpy(ikm->desc, desc, MAX_DESCRIPTION); in ikm_fill_monitor_definition() 158 free(desc); in ikm_fill_monitor_definition() [all …]
|