/tools/testing/selftests/powerpc/include/ |
D | vmx_asm.h | 9 #define PUSH_VMX(pos,reg) \ argument 10 li reg,pos; \ 11 stvx v20,reg,%r1; \ 12 addi reg,reg,16; \ 13 stvx v21,reg,%r1; \ 14 addi reg,reg,16; \ 15 stvx v22,reg,%r1; \ 16 addi reg,reg,16; \ 17 stvx v23,reg,%r1; \ 18 addi reg,reg,16; \ [all …]
|
D | basic_asm.h | 8 #define LOAD_REG_IMMEDIATE(reg, expr) \ argument 9 lis reg, (expr)@highest; \ 10 ori reg, reg, (expr)@higher; \ 11 rldicr reg, reg, 32, 31; \ 12 oris reg, reg, (expr)@high; \ 13 ori reg, reg, (expr)@l;
|
/tools/testing/selftests/powerpc/ptrace/ |
D | ptrace-tar.c | 17 unsigned long reg[3]; in tar() local 34 reg[0] = mfspr(SPRN_TAR); in tar() 35 reg[1] = mfspr(SPRN_PPR); in tar() 36 reg[2] = mfspr(SPRN_DSCR); in tar() 39 user_read, reg[0], reg[1], reg[2]); in tar() 45 ret = validate_tar_registers(reg, TAR_2, PPR_2, DSCR_2); in tar() 53 unsigned long reg[3]; in trace_tar() local 56 FAIL_IF(show_tar_registers(child, reg)); in trace_tar() 58 ptrace_read_running, reg[0], reg[1], reg[2]); in trace_tar() 60 FAIL_IF(validate_tar_registers(reg, TAR_1, PPR_1, DSCR_1)); in trace_tar()
|
D | ptrace.h | 143 unsigned long *reg; in show_tar_registers() local 146 reg = malloc(sizeof(unsigned long)); in show_tar_registers() 147 if (!reg) { in show_tar_registers() 151 iov.iov_base = (u64 *) reg; in show_tar_registers() 160 out[0] = *reg; in show_tar_registers() 168 out[1] = *reg; in show_tar_registers() 176 out[2] = *reg; in show_tar_registers() 178 free(reg); in show_tar_registers() 181 free(reg); in show_tar_registers() 189 unsigned long *reg; in write_tar_registers() local [all …]
|
D | ptrace-tar.h | 29 int validate_tar_registers(unsigned long *reg, unsigned long tar, in validate_tar_registers() argument 34 if (reg[0] != tar) in validate_tar_registers() 37 if (reg[1] != ppr) in validate_tar_registers() 40 if (reg[2] != dscr) in validate_tar_registers()
|
D | ptrace-pkey.c | 71 unsigned long reg; in child() local 138 reg = mfspr(SPRN_AMR); in child() 140 printf("%-30s AMR: %016lx\n", user_read, reg); in child() 142 CHILD_FAIL_IF(reg != info->amr2, &info->child_sync); in child() 154 reg = mfspr(SPRN_AMR); in child() 156 printf("%-30s AMR: %016lx\n", user_read, reg); in child() 158 CHILD_FAIL_IF(reg != info->amr2, &info->child_sync); in child() 171 reg = mfspr(SPRN_AMR); in child() 173 printf("%-30s AMR: %016lx\n", user_read, reg); in child() 175 CHILD_FAIL_IF(reg != info->amr2, &info->child_sync); in child()
|
/tools/testing/selftests/kvm/include/aarch64/ |
D | processor.h | 41 struct kvm_one_reg reg; in get_reg() local 42 reg.id = id; in get_reg() 43 reg.addr = (uint64_t)addr; in get_reg() 44 vcpu_ioctl(vm, vcpuid, KVM_GET_ONE_REG, ®); in get_reg() 49 struct kvm_one_reg reg; in set_reg() local 50 reg.id = id; in set_reg() 51 reg.addr = (uint64_t)&val; in set_reg() 52 vcpu_ioctl(vm, vcpuid, KVM_SET_ONE_REG, ®); in set_reg()
|
/tools/lib/traceevent/ |
D | event-plugin.c | 108 struct registered_plugin_options *reg; in tep_plugin_list_options() local 114 for (reg = registered_options; reg; reg = reg->next) { in tep_plugin_list_options() 115 for (op = reg->options; op->name; op++) { in tep_plugin_list_options() 222 struct registered_plugin_options *reg; in tep_plugin_add_options() local 224 reg = malloc(sizeof(*reg)); in tep_plugin_add_options() 225 if (!reg) in tep_plugin_add_options() 227 reg->next = registered_options; in tep_plugin_add_options() 228 reg->options = options; in tep_plugin_add_options() 229 registered_options = reg; in tep_plugin_add_options() 245 struct registered_plugin_options *reg; in tep_plugin_remove_options() local [all …]
|
/tools/objtool/arch/x86/ |
D | decode.c | 45 bool arch_callee_saved_reg(unsigned char reg) in arch_callee_saved_reg() argument 47 switch (reg) { in arch_callee_saved_reg() 149 op->src.reg = op_to_cfi_reg[modrm_reg][rex_r]; in arch_decode_instruction() 151 op->dest.reg = CFI_SP; in arch_decode_instruction() 161 op->src.reg = op_to_cfi_reg[op1 & 0x7][rex_b]; in arch_decode_instruction() 173 op->dest.reg = op_to_cfi_reg[op1 & 0x7][rex_b]; in arch_decode_instruction() 200 op->src.reg = CFI_SP; in arch_decode_instruction() 203 op->dest.reg = CFI_SP; in arch_decode_instruction() 218 op->src.reg = CFI_SP; in arch_decode_instruction() 221 op->dest.reg = CFI_SP; in arch_decode_instruction() [all …]
|
/tools/testing/selftests/kvm/s390x/ |
D | sync_regs_test.c | 39 #define REG_COMPARE(reg) \ argument 40 TEST_ASSERT(left->reg == right->reg, \ 41 "Register " #reg \ 43 left->reg, right->reg) 45 #define REG_COMPARE32(reg) \ argument 46 TEST_ASSERT(left->reg == right->reg, \ 47 "Register " #reg \ 49 left->reg, right->reg)
|
D | resets.c | 63 struct kvm_one_reg reg; in test_one_reg() local 66 reg.addr = (uintptr_t)&eval_reg; in test_one_reg() 67 reg.id = id; in test_one_reg() 68 vcpu_get_reg(vm, VCPU_ID, ®); in test_one_reg()
|
/tools/objtool/ |
D | orc_dump.c | 12 static const char *reg_name(unsigned int reg) in reg_name() argument 14 switch (reg) { in reg_name() 52 static void print_reg(unsigned int reg, int offset) in print_reg() argument 54 if (reg == ORC_REG_BP_INDIRECT) in print_reg() 56 else if (reg == ORC_REG_SP_INDIRECT) in print_reg() 58 else if (reg == ORC_REG_UNDEFINED) in print_reg() 61 printf("%s%+d", reg_name(reg), offset); in print_reg()
|
D | arch.h | 44 unsigned char reg; member 60 unsigned char reg; member 80 bool arch_callee_saved_reg(unsigned char reg);
|
D | check.c | 2258 op->dest.reg == CFI_SP && op->src.reg == CFI_SP) in update_cfi_state_regs() 2264 static void save_reg(struct cfi_state *cfi, unsigned char reg, int base, int offset) in save_reg() argument 2266 if (arch_callee_saved_reg(reg) && in save_reg() 2267 cfi->regs[reg].base == CFI_UNDEFINED) { in save_reg() 2268 cfi->regs[reg].base = base; in save_reg() 2269 cfi->regs[reg].offset = offset; in save_reg() 2273 static void restore_reg(struct cfi_state *cfi, unsigned char reg) in restore_reg() argument 2275 cfi->regs[reg].base = initial_func_cfi.regs[reg].base; in restore_reg() 2276 cfi->regs[reg].offset = initial_func_cfi.regs[reg].offset; in restore_reg() 2357 if (op->src.reg == CFI_SP && op->dest.reg == CFI_BP && in update_cfi_state() [all …]
|
/tools/testing/selftests/powerpc/pmu/ebb/ |
D | trace.c | 87 int trace_log_reg(struct trace_buffer *tb, u64 reg, u64 value) in trace_log_reg() argument 92 e = trace_alloc_entry(tb, sizeof(reg) + sizeof(value)); in trace_log_reg() 98 *p++ = reg; in trace_log_reg() 173 static char *trace_decode_reg(int reg) in trace_decode_reg() argument 175 switch (reg) { in trace_decode_reg() 202 u64 *p, *reg, *value; in trace_print_reg() local 206 reg = p++; in trace_print_reg() 209 name = trace_decode_reg(*reg); in trace_print_reg() 213 printf("register %lld = 0x%016llx\n", *reg, *value); in trace_print_reg()
|
D | ebb_handler.S | 72 #define LOAD_REG_IMMEDIATE(reg,expr) \ argument 73 lis reg,(expr)@highest; \ 74 ori reg,reg,(expr)@higher; \ 75 rldicr reg,reg,32,31; \ 76 oris reg,reg,(expr)@h; \ 77 ori reg,reg,(expr)@l;
|
/tools/perf/arch/powerpc/include/ |
D | dwarf-regs-table.h | 10 #define REG_DWARFNUM_NAME(reg, idx) [idx] = "%" #reg argument
|
/tools/testing/selftests/kvm/aarch64/ |
D | get-reg-list.c | 47 if (!filter_reg(reg_list->reg[i])) 51 if (!find_reg(reg_list->reg, reg_list->n, blessed_reg[i])) 55 if (!find_reg(blessed_reg, blessed_n, reg_list->reg[i])) 64 static bool filter_reg(__u64 reg) in filter_reg() argument 70 if ((reg & KVM_REG_ARM_COPROC_MASK) == KVM_REG_ARM_DEMUX) in filter_reg() 76 static bool find_reg(__u64 regs[], __u64 nr_regs, __u64 reg) in find_reg() argument 81 if (reg == regs[i]) in find_reg() 273 id = reg_list->reg[i]; in core_reg_fixup() 276 tmp->reg[tmp->n++] = id; in core_reg_fixup() 295 tmp->reg[tmp->n++] = id; in core_reg_fixup() [all …]
|
/tools/testing/selftests/vm/ |
D | pkey-helpers.h | 98 static inline u64 set_pkey_bits(u64 reg, int pkey, u64 flags) in set_pkey_bits() argument 102 reg &= ~((u64)PKEY_MASK << shift); in set_pkey_bits() 104 reg |= (flags & PKEY_MASK) << shift; in set_pkey_bits() 105 return reg; in set_pkey_bits() 108 static inline u64 get_pkey_bits(u64 reg, int pkey) in get_pkey_bits() argument 115 return ((reg >> shift) & PKEY_MASK); in get_pkey_bits()
|
/tools/testing/selftests/kvm/ |
D | .gitignore | 2 /aarch64/get-reg-list 3 /aarch64/get-reg-list-sve
|
/tools/testing/selftests/kvm/x86_64/ |
D | sync_regs_test.c | 42 #define REG_COMPARE(reg) \ in compare_regs() argument 43 TEST_ASSERT(left->reg == right->reg, \ in compare_regs() 44 "Register " #reg \ in compare_regs() 46 left->reg, right->reg) in compare_regs()
|
/tools/perf/util/ |
D | bpf-prologue.c | 113 const char *reg, int target_reg) in gen_ldx_reg_from_ctx() argument 115 int offset = regs_query_register_offset(reg); in gen_ldx_reg_from_ctx() 119 reg); in gen_ldx_reg_from_ctx() 249 const char *reg = arg->value; in gen_prologue_slowpath() local 254 i, reg); in gen_prologue_slowpath() 257 err = gen_ldx_reg_from_ctx(pos, BPF_REG_CTX, reg, in gen_prologue_slowpath() 261 reg); in gen_prologue_slowpath()
|
/tools/testing/selftests/kvm/lib/s390x/ |
D | ucall.c | 48 int reg = run->s390_sieic.ipa & 0xf; in get_ucall() local 50 memcpy(&ucall, addr_gva2hva(vm, run->s.regs.gprs[reg]), in get_ucall()
|
/tools/power/cpupower/utils/helpers/ |
D | cpuid.c | 24 #define cpuid_func(reg) \ argument 25 unsigned int cpuid_##reg(unsigned int op) \ 29 return reg; \
|
/tools/perf/arch/s390/include/ |
D | dwarf-regs-table.h | 5 #define REG_DWARFNUM_NAME(reg, idx) [idx] = "%" #reg argument
|