Home
last modified time | relevance | path

Searched refs:host (Results 1 – 25 of 40) sorted by relevance

12

/tools/virtio/ringtest/
Dring.c67 struct host { struct
74 } host; argument
96 host.used_idx = 0; in alloc_ring()
97 host.called_used_idx = -1; in alloc_ring()
213 event->kick_index = host.used_idx; in enable_kick()
221 unsigned head = (ring_size - 1) & host.used_idx; in avail_empty()
228 unsigned head = (ring_size - 1) & host.used_idx; in use_buf()
250 host.used_idx++; in use_buf()
260 host.used_idx, in call_used()
261 host.called_used_idx)) in call_used()
[all …]
Dvirtio_ring_0_9.c54 struct host { struct
61 } host; variable
87 host.used_idx = 0; in alloc_ring()
88 host.called_used_idx = -1; in alloc_ring()
250 vring_avail_event(&ring) = host.used_idx; in enable_kick()
258 unsigned head = host.used_idx; in avail_empty()
270 unsigned used_idx = host.used_idx; in use_buf()
311 host.used_idx++; in use_buf()
312 ring.used->idx = host.used_idx; in use_buf()
323 host.used_idx, in call_used()
[all …]
Drun-on-all.sh19 "$@" --host-affinity $HOST_AFFINITY --guest-affinity $cpu
23 "$@" --host-affinity $HOST_AFFINITY
Dmain.c288 pthread_t host, guest; in main() local
368 ret = pthread_create(&host, NULL, start_host, host_arg); in main()
375 ret = pthread_join(host, &tret); in main()
/tools/usb/usbip/src/
Dusbip_attach.c51 static int record_connection(char *host, char *port, char *busid, int rhport) in record_connection() argument
80 host, port, busid); in record_connection()
176 static int attach_device(char *host, char *busid) in attach_device() argument
182 sockfd = usbip_net_tcp_connect(host, usbip_port_string); in attach_device()
196 rc = record_connection(host, usbip_port_string, busid, rhport); in attach_device()
213 char *host = NULL; in usbip_attach() local
226 host = optarg; in usbip_attach()
237 if (!host || !busid) in usbip_attach()
240 ret = attach_device(host, busid); in usbip_attach()
Dusbip_list.c55 static int get_exported_devices(char *host, int sockfd) in get_exported_devices() argument
88 info("no exportable devices found on %s", host); in get_exported_devices()
94 printf(" - %s\n", host); in get_exported_devices()
137 static int list_exported_devices(char *host) in list_exported_devices() argument
142 sockfd = usbip_net_tcp_connect(host, usbip_port_string); in list_exported_devices()
144 err("could not connect to %s:%s: %s", host, in list_exported_devices()
148 dbg("connected to %s:%s", host, usbip_port_string); in list_exported_devices()
150 rc = get_exported_devices(host, sockfd); in list_exported_devices()
152 err("failed to get device list from %s", host); in list_exported_devices()
Dusbipd.c311 char host[NI_MAXHOST], port[NI_MAXSERV]; in do_accept() local
322 rc = getnameinfo((struct sockaddr *)&ss, len, host, sizeof(host), in do_accept()
330 info("denied access from %s", host); in do_accept()
335 info("connection from %s:%s", host, port); in do_accept()
431 static struct addrinfo *do_getaddrinfo(char *host, int ai_family) in do_getaddrinfo() argument
441 rc = getaddrinfo(host, usbip_port_string, &hints, &ai_head); in do_getaddrinfo()
/tools/usb/usbip/
DREADME42 server:# insmod usbip-host.ko
51 - Bind usbip-host.ko to the device with busid 1-2.
58 client:# usbip list --remote <host>
59 - List exported USB devices on the <host>.
61 client:# usbip attach --remote <host> --busid 1-2
75 Physically attach your USB devices to this host.
78 trois:# insmod path/to/usbip-host.ko
82 attached to this host.
113 "exportable"; the device is bound to the usbip-host driver. Please
130 3-3.2:1.0 -> usbip-host
[all …]
/tools/virtio/virtio-trace/
DREADME15 3) A controller thread does poll() for a start order of a host.
16 4) After the controller of the trace agent receives a start order from a host,
20 6) If the controller receives a stop order from a host, the read/write threads
41 1) Make FIFO in a host
53 2) Set up of virtio-serial pipe in a host
103 read/write threads in the agent wait for start order from host. If you add -o
106 3) Open FIFO in a host
108 If a host does not open these, trace data get stuck in buffers of virtio. Then,
112 4) Start to read trace data by ordering from a host
113 A host injects read start order to the guest via virtio-serial.
[all …]
/tools/perf/Documentation/
Dperf-kvm.txt11 'perf kvm' [--host] [--guest] [--guestmount=<path>
14 'perf kvm' [--host] [--guest] [--guestkallsyms=<path> --guestmodules=<path>
28 default behavior of perf kvm as --guest, so if neither --host nor --guest
29 is input, the perf data file name is perf.data.guest. If --host is input,
31 perf.data.host, please input --host --no-guest. The behaviors are shown as
34 --host -> perf.data.kvm
36 --host --guest -> perf.data.kvm
37 --host --no-guest -> perf.data.host
75 --host::
76 Collect host side performance profile.
[all …]
Dperf-buildid-cache.txt29 Add specified kcore file to the cache. For the current host that is
/tools/build/
DMakefile.build96 host = host_
102 $(call if_changed_dep,$(host)cc_o_c)
110 $(call if_changed_dep,$(host)cc_o_c)
150 $(call if_changed,$(host)ld_multi)
/tools/usb/usbip/libsrc/
Dvhci_driver.c164 static int read_record(int rhport, char *host, unsigned long host_len, in read_record() argument
207 if (sscanf(buffer, "%s %s %s\n", host, port, busid) != 3) { in read_record()
373 char host[NI_MAXHOST] = "unknown host"; in usbip_vhci_imported_device_dump() local
382 ret = read_record(idev->port, host, sizeof(host), serv, sizeof(serv), in usbip_vhci_imported_device_dump()
400 host, serv, remote_busid); in usbip_vhci_imported_device_dump()
/tools/perf/trace/beauty/
Dpid.c6 struct thread *thread = machine__findnew_thread(trace->host, pid, pid); in syscall_arg__scnprintf_pid()
/tools/perf/tests/
Dthread-mg-share.c31 machine = &machines.host; in test__thread_mg_share()
/tools/lguest/
Dlguest.txt27 - The easiest way to run lguest is to use same kernel as guest and host.
91 - Configuring networking. I usually have the host masquerade, using
118 /dev/hwrng in the guest that will read from the host's /dev/random.
/tools/kvm/kvm_stat/
Dkvm_stat.txt18 This tool is useful for observing guest behavior from the host perspective.
/tools/perf/
Dbuiltin-trace.c67 struct machine *host; member
1144 trace->host = machine__new_host(); in trace__symbols_init()
1145 if (trace->host == NULL) in trace__symbols_init()
1148 if (trace_event__register_resolver(trace->host, trace__machine__resolve_kernel_addr) < 0) in trace__symbols_init()
1151 err = __machine__synthesize_threads(trace->host, &trace->tool, &trace->opts.target, in trace__symbols_init()
1504 thread = machine__findnew_thread(trace->host, sample->pid, sample->tid); in trace__sys_enter()
1554 if (machine__resolve(trace->host, &al, sample) < 0 || in trace__resolve_callchain()
1586 thread = machine__findnew_thread(trace->host, sample->pid, sample->tid); in trace__sys_exit()
1648 struct thread *child = machine__find_thread(trace->host, ret, ret); in trace__sys_exit()
1677 struct thread *thread = machine__findnew_thread(trace->host, sample->pid, sample->tid); in trace__vfs_getname()
[all …]
Dbuiltin-top.c815 machine = &session->machines.host; in perf_top__mmap_read_idx()
821 machine = &session->machines.host; in perf_top__mmap_read_idx()
838 machine = &session->machines.host; in perf_top__mmap_read_idx()
946 machine__synthesize_threads(&top->session->machines.host, &opts->target, in __cmd_top()
Dbuiltin-kmem.c319 struct machine *machine = &kmem_session->machines.host; in build_alloc_func_list()
369 struct machine *machine = &kmem_session->machines.host; in find_callsite()
962 struct machine *machine = &session->machines.host; in __print_slab_result()
1023 struct machine *machine = &session->machines.host; in __print_page_alloc_result()
1072 struct machine *machine = &session->machines.host; in __print_page_caller_result()
/tools/testing/ktest/examples/
DREADME20 on a host.
/tools/perf/util/
Dbuild-id.c395 int err = machine__write_buildid_table(&session->machines.host, fd); in perf_session__write_buildid_table()
429 err = machine__hit_all_dsos(&session->machines.host); in dsos__hit_all()
815 ret = machine__cache_build_ids(&session->machines.host); in perf_session__cache_build_ids()
832 bool ret = machine__read_build_ids(&session->machines.host, with_hits); in perf_session__read_build_ids()
Dmachine.c148 machine__init(&machines->host, "", HOST_KERNEL_ID); in machines__init()
154 machine__exit(&machines->host); in machines__exit()
192 machines->host.comm_exec = comm_exec; in machines__set_comm_exec()
209 return &machines->host; in machines__find()
291 machines->host.id_hdr_size = id_hdr_size; in machines__set_id_hdr_size()
620 size_t ret = __dsos__fprintf(&machines->host.dsos.head, fp); in machines__fprintf_dsos()
640 size_t ret = machine__fprintf_dsos_buildid(&machines->host, fp, skip, parm); in machines__fprintf_dsos_buildid()
878 machine__destroy_kernel_maps(&machines->host); in machines__destroy_kernel_maps()
2012 rc = machine__for_each_thread(&machines->host, fn, priv); in machines__for_each_thread()
Dsession.c70 int ret = machine__create_kernel_maps(&session->machines.host); in perf_session__create_kernel_maps()
152 session->machines.host.env = &perf_env; in perf_session__new()
186 machine__delete_threads(&session->machines.host); in perf_session__delete_threads()
1146 return &machines->host; in machines__find_for_cpumode()
1493 return machine__findnew_thread(&session->machines.host, -1, pid); in perf_session__findnew()
1501 thread = machine__findnew_thread(&session->machines.host, 0, 0); in perf_session__register_idle_thread()
1976 return machine__fprintf(&session->machines.host, fp); in perf_session__fprintf()
Dmachine.h110 struct machine host; member

12