Home
last modified time | relevance | path

Searched refs:control (Results 1 – 25 of 60) sorted by relevance

123

/tools/testing/selftests/cgroup/
Dcgroup_util.h22 extern char *cg_control(const char *cgroup, const char *control);
25 extern int cg_read(const char *cgroup, const char *control,
27 extern int cg_read_strcmp(const char *cgroup, const char *control,
29 extern int cg_read_strstr(const char *cgroup, const char *control,
31 extern long cg_read_long(const char *cgroup, const char *control);
32 long cg_read_key_long(const char *cgroup, const char *control, const char *key);
33 extern long cg_read_lc(const char *cgroup, const char *control);
34 extern int cg_write(const char *cgroup, const char *control, char *buf);
Dcgroup_util.c80 char *cg_control(const char *cgroup, const char *control) in cg_control() argument
82 size_t len = strlen(cgroup) + strlen(control) + 2; in cg_control()
85 snprintf(ret, len, "%s/%s", cgroup, control); in cg_control()
90 int cg_read(const char *cgroup, const char *control, char *buf, size_t len) in cg_read() argument
94 snprintf(path, sizeof(path), "%s/%s", cgroup, control); in cg_read()
102 int cg_read_strcmp(const char *cgroup, const char *control, in cg_read_strcmp() argument
119 if (cg_read(cgroup, control, buf, size)) { in cg_read_strcmp()
129 int cg_read_strstr(const char *cgroup, const char *control, const char *needle) in cg_read_strstr() argument
133 if (cg_read(cgroup, control, buf, sizeof(buf))) in cg_read_strstr()
139 long cg_read_long(const char *cgroup, const char *control) in cg_read_long() argument
[all …]
/tools/testing/selftests/kvm/x86_64/
Dvmx_apic_access_test.c46 uint32_t control; in l1_guest_code() local
54 control = vmreadz(CPU_BASED_VM_EXEC_CONTROL); in l1_guest_code()
55 control |= CPU_BASED_ACTIVATE_SECONDARY_CONTROLS; in l1_guest_code()
56 vmwrite(CPU_BASED_VM_EXEC_CONTROL, control); in l1_guest_code()
57 control = vmreadz(SECONDARY_VM_EXEC_CONTROL); in l1_guest_code()
58 control |= SECONDARY_EXEC_VIRTUALIZE_APIC_ACCESSES; in l1_guest_code()
59 vmwrite(SECONDARY_VM_EXEC_CONTROL, control); in l1_guest_code()
Dsvm_int_ctl_test.c75 vmcb->control.int_ctl &= ~V_INTR_MASKING_MASK; in l1_guest_code()
78 vmcb->control.intercept &= ~(1ULL << INTERCEPT_INTR | INTERCEPT_VINTR); in l1_guest_code()
81 vmcb->control.int_ctl |= V_IRQ_MASK | (0x1 << V_INTR_PRIO_SHIFT); in l1_guest_code()
82 vmcb->control.int_vector = VINTR_IRQ_NUMBER; in l1_guest_code()
85 GUEST_ASSERT(vmcb->control.exit_code == SVM_EXIT_VMMCALL); in l1_guest_code()
Dhyperv_features.c52 static inline u64 hypercall(u64 control, vm_vaddr_t input_address, in hypercall() argument
60 "+c" (control), "+d" (input_address) in hypercall()
98 uint64_t control; member
133 while (hcall->control) { in guest_hcall()
135 if (!(hcall->control & HV_HYPERCALL_FAST_BIT)) { in guest_hcall()
142 res = hypercall(hcall->control, input, output); in guest_hcall()
502 hcall->control = 0xdeadbeef; in guest_test_hcalls_access()
507 hcall->control = HVCALL_POST_MESSAGE; in guest_test_hcalls_access()
516 hcall->control = HVCALL_SIGNAL_EVENT; in guest_test_hcalls_access()
525 hcall->control = HVCALL_RESET_DEBUG_SESSION; in guest_test_hcalls_access()
[all …]
Dvmx_nested_tsc_scaling_test.c88 uint32_t control; in l1_guest_code() local
100 control = vmreadz(CPU_BASED_VM_EXEC_CONTROL); in l1_guest_code()
101 control |= CPU_BASED_USE_MSR_BITMAPS | CPU_BASED_USE_TSC_OFFSETTING; in l1_guest_code()
102 vmwrite(CPU_BASED_VM_EXEC_CONTROL, control); in l1_guest_code()
104 control = vmreadz(SECONDARY_VM_EXEC_CONTROL); in l1_guest_code()
105 control |= SECONDARY_EXEC_TSC_SCALING; in l1_guest_code()
106 vmwrite(SECONDARY_VM_EXEC_CONTROL, control); in l1_guest_code()
Dvmx_tsc_adjust_test.c87 uint32_t control; in l1_guest_code() local
100 control = vmreadz(CPU_BASED_VM_EXEC_CONTROL); in l1_guest_code()
101 control |= CPU_BASED_USE_MSR_BITMAPS | CPU_BASED_USE_TSC_OFFSETTING; in l1_guest_code()
102 vmwrite(CPU_BASED_VM_EXEC_CONTROL, control); in l1_guest_code()
Ddebug_regs.c109 debug.control = KVM_GUESTDBG_ENABLE | KVM_GUESTDBG_USE_SW_BP; in main()
123 debug.control = KVM_GUESTDBG_ENABLE | KVM_GUESTDBG_USE_HW_BP; in main()
145 debug.control = KVM_GUESTDBG_ENABLE | KVM_GUESTDBG_USE_HW_BP; in main()
174 debug.control = KVM_GUESTDBG_ENABLE | KVM_GUESTDBG_SINGLESTEP | in main()
192 debug.control = KVM_GUESTDBG_ENABLE | KVM_GUESTDBG_USE_HW_BP; in main()
Dsvm_vmcall_test.c36 GUEST_ASSERT(vmcb->control.exit_code == SVM_EXIT_VMMCALL); in l1_guest_code()
/tools/testing/vsock/
DREADME23 --control-port=1234 \
26 --control-host=$HOST_IP \
27 --control-port=1234 \
32 --control-port=1234 \
35 --control-port=$GUEST_IP \
36 --control-port=1234 \
DMakefile4 vsock_test: vsock_test.o timeout.o control.o util.o
5 vsock_diag_test: vsock_diag_test.o timeout.o control.o util.o
/tools/virtio/
Dvirtio_test.c40 int control; member
80 r = ioctl(dev->control, VHOST_SET_FEATURES, &features); in vhost_vq_setup()
83 r = ioctl(dev->control, VHOST_SET_VRING_NUM, &state); in vhost_vq_setup()
86 r = ioctl(dev->control, VHOST_SET_VRING_BASE, &state); in vhost_vq_setup()
88 r = ioctl(dev->control, VHOST_SET_VRING_ADDR, &addr); in vhost_vq_setup()
91 r = ioctl(dev->control, VHOST_SET_VRING_KICK, &file); in vhost_vq_setup()
94 r = ioctl(dev->control, VHOST_SET_VRING_CALL, &file); in vhost_vq_setup()
137 dev->control = open("/dev/vhost-test", O_RDWR); in vdev_info_init()
138 assert(dev->control >= 0); in vdev_info_init()
139 r = ioctl(dev->control, VHOST_SET_OWNER, NULL); in vdev_info_init()
[all …]
/tools/testing/selftests/net/
Dipv6_flowlabel.c40 char control[CMSG_SPACE(sizeof(flowlabel))] = {0}; in do_send() local
54 cm = (void *)control; in do_send()
60 msg.msg_control = control; in do_send()
61 msg.msg_controllen = sizeof(control); in do_send()
76 char control[CMSG_SPACE(sizeof(expect))]; in do_recv() local
90 memset(control, 0, sizeof(control)); in do_recv()
91 msg.msg_control = control; in do_recv()
92 msg.msg_controllen = sizeof(control); in do_recv()
Dso_txtime.c75 char control[CMSG_SPACE(sizeof(uint64_t))]; in do_send_one() local
91 memset(control, 0, sizeof(control)); in do_send_one()
92 msg.msg_control = &control; in do_send_one()
93 msg.msg_controllen = sizeof(control); in do_send_one()
153 char control[CMSG_SPACE(sizeof(struct sock_extended_err)) + in do_recv_errqueue_timeout() local
170 msg.msg_control = control; in do_recv_errqueue_timeout()
171 msg.msg_controllen = sizeof(control); in do_recv_errqueue_timeout()
219 msg.msg_controllen = sizeof(control); in do_recv_errqueue_timeout()
Dudpgso_bench_tx.c212 char control[CMSG_SPACE(sizeof(struct scm_timestamping)) + in flush_errqueue_recv() local
220 msg.msg_control = control; in flush_errqueue_recv()
221 msg.msg_controllen = sizeof(control); in flush_errqueue_recv()
327 char control[CMSG_SPACE(sizeof(cfg_tx_ts))] = {0}; in send_udp_sendmmsg() local
341 msg.msg_control = control; in send_udp_sendmmsg()
342 msg.msg_controllen = sizeof(control); in send_udp_sendmmsg()
362 mmsgs[i].msg_hdr.msg_control = control; in send_udp_sendmmsg()
391 char control[CMSG_SPACE(sizeof(cfg_gso_size)) + in send_udp_segment() local
405 msg.msg_control = control; in send_udp_segment()
406 msg.msg_controllen = sizeof(control); in send_udp_segment()
Dudpgso_bench_rx.c217 char control[CMSG_SPACE(sizeof(int))] = {0}; in recv_msg() local
229 msg.msg_control = control; in recv_msg()
230 msg.msg_controllen = sizeof(control); in recv_msg()
/tools/perf/Documentation/
Dperf-daemon.txt32 …916507 916508 ... \_ perf record --control=fifo:control,ack -m 10M -e cycles --overwrite --switc…
33 …916507 916509 ... \_ perf record --control=fifo:control,ack -m 20M -e sched:* --overwrite --swit…
41 Each session is started with control setup (with perf record --control
90 The ping command sends control ping to configured sessions.
152 control: /opt/perfdata/session-cycles/control
158 control: /opt/perfdata/session-sched/control
166 The 'control' and 'ack' files are perf control files.
170 Make sure control session is online:
/tools/memory-model/Documentation/
Dcontrol-dependencies.txt4 A major difficulty with control dependencies is that current compilers
7 control dependencies also pose other challenges, which leads to the
11 One such challenge is that control dependencies order only later stores.
12 Therefore, a load-load control dependency will not preserve ordering
32 (usually) guaranteed for load-store control dependencies, as in the
46 the control dependency.
59 It is tempting to try use control dependencies to enforce ordering on
103 Without explicit memory ordering, control-dependency-based ordering is
145 to relying on control dependencies to produce this ordering, you should
161 "if" statement, destroying the control dependency's ordering properties.
[all …]
DREADME29 and cannot do to control dependencies: control-dependencies.txt
53 control-dependencies.txt
55 your control dependencies.
/tools/testing/selftests/bpf/progs/
Dtest_cls_redirect.h31 uint8_t hlen : 5, control : 1, variant : 2; member
33 uint8_t variant : 2, control : 1, hlen : 5;
/tools/memory-model/litmus-tests/
DLB+fencembonceonce+ctrlonceonce.litmus9 * combination of a control dependency and a full memory barrier are enough
11 * another control dependency and order would still be maintained.)
/tools/testing/selftests/livepatch/
Dfunctions.sh56 DYNAMIC_DEBUG=$(grep '^kernel/livepatch' /sys/kernel/debug/dynamic_debug/control | \
63 echo -n "$DYNAMIC_DEBUG" > /sys/kernel/debug/dynamic_debug/control
71 cat <<-EOF > /sys/kernel/debug/dynamic_debug/control
/tools/perf/tests/shell/
Ddaemon.sh53 local control=$6
85 if [ "${control}" != "${line_control}" ]; then
175 ${base}/session-size/output ${base}/session-size/control \
182 ${base}/session-time/output ${base}/session-time/control \
220 ${base}/session-time/output ${base}/session-time/control ${base}/session-time/ack "0"
254 ${base}/session-time/output ${base}/session-time/control ${base}/session-time/ack "0"
/tools/thermal/tmon/
DREADME41 -c, --control cooling device in control
/tools/testing/selftests/uevent/
Duevent_filtering.c86 char control[CMSG_SPACE(sizeof(struct ucred))]; in uevent_listener() local
89 control, sizeof(control), 0, in uevent_listener()

123