/tools/testing/selftests/kvm/x86_64/ |
D | vmx_set_nested_state_test.c | 30 void test_nested_state(struct kvm_vm *vm, struct kvm_nested_state *state) in test_nested_state() argument 32 vcpu_nested_state_set(vm, VCPU_ID, state, false); in test_nested_state() 36 struct kvm_nested_state *state, in test_nested_state_expect_errno() argument 41 rv = vcpu_nested_state_set(vm, VCPU_ID, state, true); in test_nested_state_expect_errno() 49 struct kvm_nested_state *state) in test_nested_state_expect_einval() argument 51 test_nested_state_expect_errno(vm, state, EINVAL); in test_nested_state_expect_einval() 55 struct kvm_nested_state *state) in test_nested_state_expect_efault() argument 57 test_nested_state_expect_errno(vm, state, EFAULT); in test_nested_state_expect_efault() 60 void set_revision_id_for_vmcs12(struct kvm_nested_state *state, in set_revision_id_for_vmcs12() argument 64 memcpy(&state->data, &vmcs12_revision, sizeof(u32)); in set_revision_id_for_vmcs12() [all …]
|
D | xen_shinfo_test.c | 54 uint32_t state; member 71 GUEST_ASSERT(rs->state == 0); in guest_code() 75 GUEST_ASSERT(rs->state == 0); in guest_code() 79 GUEST_ASSERT(rs->state == 0); in guest_code() 175 rs->state = 0x5a; in main() 207 rst.u.runstate.state = uc.args[1]; in main() 213 rst.u.runstate.state = (uint64_t)-1; in main() 226 rst.u.runstate.state = RUNSTATE_running; in main() 287 TEST_ASSERT(rs->state == rst.u.runstate.state, "Runstate mismatch"); in main()
|
/tools/usb/ffs-aio-example/multibuff/host_app/ |
D | test.c | 59 int test_init(struct test_state *state) in test_init() argument 65 state->found = NULL; in test_init() 66 state->ctx = NULL; in test_init() 67 state->handle = NULL; in test_init() 68 state->attached = 0; in test_init() 70 ret = libusb_init(&state->ctx); in test_init() 76 cnt = libusb_get_device_list(state->ctx, &list); in test_init() 92 state->found = dev; in test_init() 97 if (!state->found) { in test_init() 102 ret = libusb_open(state->found, &state->handle); in test_init() [all …]
|
/tools/usb/ffs-aio-example/simple/host_app/ |
D | test.c | 59 int test_init(struct test_state *state) in test_init() argument 65 state->found = NULL; in test_init() 66 state->ctx = NULL; in test_init() 67 state->handle = NULL; in test_init() 68 state->attached = 0; in test_init() 70 ret = libusb_init(&state->ctx); in test_init() 76 cnt = libusb_get_device_list(state->ctx, &list); in test_init() 92 state->found = dev; in test_init() 97 if (!state->found) { in test_init() 102 ret = libusb_open(state->found, &state->handle); in test_init() [all …]
|
/tools/perf/util/ |
D | trigger.h | 32 } state; member 37 WARN_ONCE(t->state != exp, "trigger '%s' state transist error: %d in %s()\n", \ 38 t->name, t->state, __func__) 42 return t->state >= 0; in trigger_is_available() 47 return t->state <= TRIGGER_ERROR; in trigger_is_error() 53 t->state = TRIGGER_ON; in trigger_on() 60 t->state = TRIGGER_READY; in trigger_ready() 68 t->state = TRIGGER_HIT; in trigger_hit() 75 t->state = TRIGGER_OFF; in trigger_off() 80 t->state = TRIGGER_ERROR; in trigger_error() [all …]
|
D | srccode.h | 9 static inline void srccode_state_init(struct srccode_state *state) in srccode_state_init() argument 11 state->srcfile = NULL; in srccode_state_init() 12 state->line = 0; in srccode_state_init() 15 void srccode_state_free(struct srccode_state *state);
|
D | intel-pt.c | 157 const struct intel_pt_state *state; member 653 return intel_pt_nr_cpumode(ptq, from_ip, ptq->state->from_nr); in intel_pt_cpumode() 654 return intel_pt_nr_cpumode(ptq, to_ip, ptq->state->to_nr); in intel_pt_cpumode() 728 nr = ptq->state->to_nr; in intel_pt_walk_next_insn() 904 if (ptq->state->to_nr) { in __intel_pt_pgd_ip() 1344 if (ptq->state->flags & INTEL_PT_ABORT_TX) { in intel_pt_sample_flags() 1346 } else if (ptq->state->flags & INTEL_PT_ASYNC) { in intel_pt_sample_flags() 1347 if (!ptq->state->to_ip) in intel_pt_sample_flags() 1351 else if (ptq->state->from_nr && !ptq->state->to_nr) in intel_pt_sample_flags() 1360 if (ptq->state->from_ip) in intel_pt_sample_flags() [all …]
|
/tools/power/cpupower/utils/idle_monitor/ |
D | cpuidle_sysfs.c | 46 int cpu, state; in cpuidle_start() local 49 for (state = 0; state < cpuidle_sysfs_monitor.hw_states_num; in cpuidle_start() 50 state++) { in cpuidle_start() 51 previous_count[cpu][state] = in cpuidle_start() 52 cpuidle_state_time(cpu, state); in cpuidle_start() 54 cpu, state, previous_count[cpu][state]); in cpuidle_start() 62 int cpu, state; in cpuidle_stop() local 68 for (state = 0; state < cpuidle_sysfs_monitor.hw_states_num; in cpuidle_stop() 69 state++) { in cpuidle_stop() 70 current_count[cpu][state] = in cpuidle_stop() [all …]
|
D | amd_fam14h_idle.c | 96 static int amd_fam14h_get_pci_info(struct cstate *state, in amd_fam14h_get_pci_info() argument 101 switch (state->id) { in amd_fam14h_get_pci_info() 124 static int amd_fam14h_init(cstate_t *state, unsigned int cpu) in amd_fam14h_init() argument 129 ret = amd_fam14h_get_pci_info(state, &pci_offset, &enable_bit, cpu); in amd_fam14h_init() 134 if (state->id == NBP1) { in amd_fam14h_init() 143 dprint("Init %s: read at offset: 0x%x val: %u\n", state->name, in amd_fam14h_init() 149 state->name, PCI_MONITOR_ENABLE_REG, enable_bit, in amd_fam14h_init() 154 previous_count[state->id][cpu] = 0; in amd_fam14h_init() 159 static int amd_fam14h_disable(cstate_t *state, unsigned int cpu) in amd_fam14h_disable() argument 164 ret = amd_fam14h_get_pci_info(state, &pci_offset, &enable_bit, cpu); in amd_fam14h_disable() [all …]
|
D | cpupower-monitor.c | 98 int state, need_len; in print_header() local 126 for (state = 0; state < monitors[mon]->hw_states_num; state++) { in print_header() 127 if (state != 0) in print_header() 129 s = monitors[mon]->hw_states[state]; in print_header() 143 int state, ret; in print_results() local 166 for (state = 0; state < monitors[mon]->hw_states_num; state++) { in print_results() 167 if (state != 0) in print_results() 170 s = monitors[mon]->hw_states[state]; in print_results() 260 int state; in list_monitors() local 269 for (state = 0; state < monitors[mon]->hw_states_num; state++) { in list_monitors() [all …]
|
/tools/testing/selftests/powerpc/security/ |
D | branch_loops.S | 25 .macro state number macro 54 state 0 55 state 1 56 state 2 57 state 3 58 state 4 59 state 5 60 state 6 61 state 7
|
D | spectre_v2.c | 87 enum spectre_v2_state state = UNKNOWN; in get_sysfs_state() local 106 state = VULNERABLE; in get_sysfs_state() 108 state = NOT_AFFECTED; in get_sysfs_state() 110 state = BRANCH_SERIALISATION; in get_sysfs_state() 112 state = COUNT_CACHE_DISABLED; in get_sysfs_state() 114 state = COUNT_CACHE_FLUSH_HW; in get_sysfs_state() 116 state = COUNT_CACHE_FLUSH_SW; in get_sysfs_state() 118 state = BTB_FLUSH; in get_sysfs_state() 120 return state; in get_sysfs_state() 132 enum spectre_v2_state state; in spectre_v2_test() local [all …]
|
/tools/testing/selftests/bpf/ |
D | bench.c | 141 static error_t parse_arg(int key, char *arg, struct argp_state *state) in parse_arg() argument 156 argp_usage(state); in parse_arg() 163 argp_usage(state); in parse_arg() 170 argp_usage(state); in parse_arg() 177 argp_usage(state); in parse_arg() 188 argp_usage(state); in parse_arg() 196 argp_usage(state); in parse_arg() 203 argp_usage(state); in parse_arg() 303 } state; variable 371 state.producers = calloc(env.producer_cnt, sizeof(*state.producers)); in setup_benchmark() [all …]
|
/tools/testing/selftests/x86/ |
D | unwind_vdso.c | 70 struct unwind_state *state = opaque; in trace_fn() local 73 if (state->depth == -1) { in trace_fn() 74 if (ip == state->ip) in trace_fn() 75 state->depth = 0; in trace_fn() 102 state->depth++; in trace_fn() 110 struct unwind_state state; in sigtrap() local 134 state.ip = ip; in sigtrap() 135 state.depth = -1; in sigtrap() 136 _Unwind_Backtrace(trace_fn, &state); in sigtrap()
|
/tools/perf/util/intel-pt-decoder/ |
D | intel-pt-decoder.c | 126 struct intel_pt_state state; member 646 decoder->state.trace_nr = buffer.trace_nr; in intel_pt_get_data() 1100 decoder->state.type |= INTEL_PT_INSTRUCTION; in intel_pt_sample_insn() 1141 decoder->state.type = INTEL_PT_INSTRUCTION; in intel_pt_walk_insn() 1142 decoder->state.from_ip = decoder->ip; in intel_pt_walk_insn() 1143 decoder->state.to_ip = 0; in intel_pt_walk_insn() 1165 decoder->state.from_ip = decoder->ip; in intel_pt_walk_insn() 1168 decoder->state.to_ip = decoder->ip; in intel_pt_walk_insn() 1180 decoder->stuck_ip = decoder->state.to_ip; in intel_pt_walk_insn() 1184 decoder->state.to_ip == decoder->stuck_ip) { in intel_pt_walk_insn() [all …]
|
/tools/perf/tests/shell/ |
D | daemon.sh | 129 local state="FAIL" 131 while [ "${state}" != "OK" ]; do 132 state=`perf daemon ping --config ${config} --session ${session} | awk '{ print $1 }'` 245 local state="FAIL" 246 while [ "${state}" != "OK" ]; do 247 state=`perf daemon ping --config ${config} --session time | awk '{ print $1 }'` 269 local state="OK" 270 while [ "${state}" != "FAIL" ]; do 271 state=`perf daemon ping --config ${config} --session time | awk '{ print $1 }'` 274 local state="OK" [all …]
|
/tools/perf/tests/ |
D | code-reading.c | 40 struct state { struct 229 struct thread *thread, struct state *state) in read_object_code() argument 289 for (d = 0; d < state->done_cnt; d++) { in read_object_code() 290 if (state->done[d] == al.map->start) { in read_object_code() 296 if (state->done_cnt >= ARRAY_SIZE(state->done)) { in read_object_code() 300 state->done[state->done_cnt++] = al.map->start; in read_object_code() 367 union perf_event *event, struct state *state) in process_sample_event() argument 384 ret = read_object_code(sample.ip, READLEN, sample.cpumode, thread, state); in process_sample_event() 390 union perf_event *event, struct state *state) in process_event() argument 393 return process_sample_event(machine, evlist, event, state); in process_event() [all …]
|
/tools/laptop/dslm/ |
D | dslm.c | 32 int state; in check_powermode() local 38 state = -1; /* "unknown"; */ in check_powermode() 40 state = 0; /* "sleeping"; */ in check_powermode() 42 state = (args[2] == 255) ? 1 : 0; in check_powermode() 44 D(printf(" drive state is: %d\n", state)); in check_powermode() 46 return state; in check_powermode()
|
/tools/perf/scripts/python/ |
D | libxed.py | 38 self.state = xed_state_t() 39 self.statep = addressof(self.state) 85 inst.state.mode = 4 # 32-bit 86 inst.state.width = 4 # 4 bytes 88 inst.state.mode = 1 # 64-bit 89 inst.state.width = 8 # 8 bytes
|
/tools/lib/traceevent/ |
D | trace-seq.c | 26 (s)->state = TRACE_SEQ__BUFFER_POISONED; \ 32 if ((s)->state != TRACE_SEQ__GOOD) \ 50 s->state = TRACE_SEQ__GOOD; in trace_seq_init() 52 s->state = TRACE_SEQ__MEM_ALLOC_FAILED; in trace_seq_init() 89 s->state = TRACE_SEQ__MEM_ALLOC_FAILED; in expand_buffer() 233 switch (s->state) { in trace_seq_do_fprintf()
|
/tools/testing/selftests/netfilter/ |
D | conntrack_icmp_related.sh | 138 meta l4proto icmpv6 icmpv6 type "packet-too-big" ct state "related" counter name "related" accept 139 …meta l4proto icmp icmp type "destination-unreachable" ct state "related" counter name "related" ac… 140 meta l4proto { icmp, icmpv6 } ct state new,established accept 156 icmp type "redirect" ct state "related" counter name "redir4" accept 157 icmpv6 type "nd-redirect" ct state "related" counter name "redir6" accept 159 meta l4proto { icmp, icmpv6 } ct state established,untracked accept 160 meta l4proto { icmp, icmpv6 } ct state "related" counter name "related" accept 175 meta l4proto { icmp, icmpv6 } ct state established,untracked accept 177 meta l4proto { icmp, icmpv6 } ct state "new" counter name "new" accept 178 meta l4proto { icmp, icmpv6 } ct state "established" counter name "established" accept [all …]
|
/tools/testing/selftests/memory-hotplug/ |
D | mem-on-off-test.sh | 41 local state=${1:-.\*} 45 grep -q $state $memory/state; then 63 grep -q online $SYSFS/devices/system/memory/memory$1/state 68 grep -q offline $SYSFS/devices/system/memory/memory$1/state 73 echo online > $SYSFS/devices/system/memory/memory$1/state 78 echo offline > $SYSFS/devices/system/memory/memory$1/state
|
/tools/objtool/ |
D | check.c | 263 static void init_insn_state(struct insn_state *state, struct section *sec) in init_insn_state() argument 265 memset(state, 0, sizeof(*state)); in init_insn_state() 266 init_cfi_state(&state->cfi); in init_insn_state() 274 state->noinstr = sec->noinstr; in init_insn_state() 1832 static void set_func_state(struct cfi_state *state) in set_func_state() argument 1834 state->cfa = initial_func_cfi.cfa; in set_func_state() 1835 memcpy(&state->regs, &initial_func_cfi.regs, in set_func_state() 1837 state->stack_size = initial_func_cfi.cfa.offset; in set_func_state() 2212 static bool has_modified_stack_frame(struct instruction *insn, struct insn_state *state) in has_modified_stack_frame() argument 2214 struct cfi_state *cfi = &state->cfi; in has_modified_stack_frame() [all …]
|
/tools/testing/selftests/bpf/progs/ |
D | test_migrate_reuseport.c | 100 int *key, flags = 0, state, err; in migrate_reuseport() local 106 state = reuse_md->migrating_sk->state; in migrate_reuseport() 117 switch (state) { in migrate_reuseport()
|
/tools/testing/selftests/kvm/lib/x86_64/ |
D | processor.c | 1040 struct kvm_x86_state *state; in vcpu_save_state() local 1046 TEST_ASSERT(nested_size <= sizeof(state->nested_), in vcpu_save_state() 1048 nested_size, sizeof(state->nested_)); in vcpu_save_state() 1066 state = malloc(sizeof(*state) + nmsrs * sizeof(state->msrs.entries[0])); in vcpu_save_state() 1067 r = ioctl(vcpu->fd, KVM_GET_VCPU_EVENTS, &state->events); in vcpu_save_state() 1071 r = ioctl(vcpu->fd, KVM_GET_MP_STATE, &state->mp_state); in vcpu_save_state() 1075 r = ioctl(vcpu->fd, KVM_GET_REGS, &state->regs); in vcpu_save_state() 1079 r = ioctl(vcpu->fd, KVM_GET_XSAVE, &state->xsave); in vcpu_save_state() 1084 r = ioctl(vcpu->fd, KVM_GET_XCRS, &state->xcrs); in vcpu_save_state() 1089 r = ioctl(vcpu->fd, KVM_GET_SREGS, &state->sregs); in vcpu_save_state() [all …]
|