Searched refs:tsync (Results 1 – 10 of 10) sorted by relevance
/external/trace-cmd/lib/trace-cmd/ |
D | trace-timesync.c | 161 int tracecmd_tsync_get_offsets(struct tracecmd_time_sync *tsync, int cpu, in tracecmd_tsync_get_offsets() argument 167 if (!tsync || !tsync->context) in tracecmd_tsync_get_offsets() 169 tsync_context = (struct clock_sync_context *)tsync->context; in tracecmd_tsync_get_offsets() 194 static int tsync_get_proto_flags(struct tracecmd_time_sync *tsync, in tsync_get_proto_flags() argument 199 if (!tsync) in tsync_get_proto_flags() 201 protocol = tsync_proto_find(tsync->proto_name); in tsync_get_proto_flags() 391 static int clock_context_init(struct tracecmd_time_sync *tsync, in clock_context_init() argument 397 if (tsync->context) in clock_context_init() 400 protocol = tsync_proto_find(tsync->proto_name); in clock_context_init() 410 clock->instance = clock_synch_create_instance(tsync->clock_str, in clock_context_init() [all …]
|
D | trace-timesync-ptp.c | 113 static int ptp_clock_sync_init(struct tracecmd_time_sync *tsync) in ptp_clock_sync_init() argument 121 if (!tsync || !tsync->context) in ptp_clock_sync_init() 123 clock_context = (struct clock_sync_context *)tsync->context; in ptp_clock_sync_init() 185 static int ptp_clock_sync_free(struct tracecmd_time_sync *tsync) in ptp_clock_sync_free() argument 190 if (!tsync || !tsync->context) in ptp_clock_sync_free() 192 clock_context = (struct clock_sync_context *)tsync->context; in ptp_clock_sync_free() 427 static int ptp_clock_client(struct tracecmd_time_sync *tsync, in ptp_clock_client() argument 443 if (!tsync || !tsync->context || !tsync->msg_handle) in ptp_clock_client() 446 clock_context = (struct clock_sync_context *)tsync->context; in ptp_clock_client() 453 ret = tracecmd_msg_recv_time_sync(tsync->msg_handle, in ptp_clock_client() [all …]
|
D | trace-timesync-kvm.c | 265 static int kvm_clock_sync_init_host(struct tracecmd_time_sync *tsync, in kvm_clock_sync_init_host() argument 268 kvm->vcpu_count = tsync->vcpu_count; in kvm_clock_sync_init_host() 274 if (kvm_open_debug_files(kvm, tsync->guest_pid) < 0) in kvm_clock_sync_init_host() 285 static int kvm_clock_sync_init_guest(struct tracecmd_time_sync *tsync, in kvm_clock_sync_init_guest() argument 293 clock_context = (struct clock_sync_context *)tsync->context; in kvm_clock_sync_init_guest() 326 static int kvm_clock_sync_init(struct tracecmd_time_sync *tsync) in kvm_clock_sync_init() argument 332 if (!tsync || !tsync->context) in kvm_clock_sync_init() 334 clock_context = (struct clock_sync_context *)tsync->context; in kvm_clock_sync_init() 343 ret = kvm_clock_sync_init_guest(tsync, kvm); in kvm_clock_sync_init() 345 ret = kvm_clock_sync_init_host(tsync, kvm); in kvm_clock_sync_init() [all …]
|
D | trace-input.c | 1702 struct timesync_offsets *tsync; in timestamp_host_sync() local 1707 tsync = &handle->host.ts_offsets[cpu]; in timestamp_host_sync() 1710 if (tsync->ts_samples_count == 1) in timestamp_host_sync() 1711 return ts + tsync->ts_samples[0].offset; in timestamp_host_sync() 1714 if (tsync->ts_samples_count == 2) in timestamp_host_sync() 1716 &tsync->ts_samples[0], in timestamp_host_sync() 1717 &tsync->ts_samples[1]); in timestamp_host_sync() 1720 if (ts <= tsync->ts_samples[0].time) in timestamp_host_sync() 1722 &tsync->ts_samples[0], in timestamp_host_sync() 1723 &tsync->ts_samples[1]); in timestamp_host_sync() [all …]
|
D | trace-msg.c | 137 struct tracecmd_msg_tsync tsync; member 1206 strncpy(msg.tsync.sync_protocol_name, sync_protocol, TRACECMD_TSYNC_PNAME_LENGTH); in tracecmd_msg_send_time_sync() 1207 msg.tsync.sync_msg_id = htonl(sync_msg_id); in tracecmd_msg_send_time_sync() 1263 strncpy(sync_protocol, msg.tsync.sync_protocol_name, in tracecmd_msg_recv_time_sync() 1266 *sync_msg_id = ntohl(msg.tsync.sync_msg_id); in tracecmd_msg_recv_time_sync()
|
/external/trace-cmd/tracecmd/ |
D | trace-agent.c | 128 struct tracecmd_time_sync *tsync = NULL; in agent_handle() local 187 tsync = tracecmd_tsync_with_host(fd, tsync_protos, in agent_handle() 191 if (tsync) { in agent_handle() 192 tracecmd_tsync_get_selected_proto(tsync, &tsync_proto); in agent_handle() 209 if (tsync) { in agent_handle() 210 tracecmd_tsync_with_host_stop(tsync); in agent_handle() 211 tracecmd_tsync_free(tsync); in agent_handle()
|
D | trace-record.c | 696 ret = tracecmd_tsync_with_guest_stop(instance->tsync); in host_tsync_complete() 708 tracecmd_write_guest_time_shift(handle, instance->tsync); in host_tsync_complete() 713 tracecmd_tsync_free(instance->tsync); in host_tsync_complete() 714 instance->tsync = NULL; in host_tsync_complete() 4042 instance->tsync = tracecmd_tsync_with_guest(top_instance.trace_id, in host_tsync() 4050 if (!instance->tsync) in host_tsync()
|
/external/trace-cmd/lib/trace-cmd/include/private/ |
D | trace-cmd-private.h | 505 int tracecmd_tsync_with_host_stop(struct tracecmd_time_sync *tsync); 510 int tracecmd_tsync_with_guest_stop(struct tracecmd_time_sync *tsync); 511 int tracecmd_tsync_get_offsets(struct tracecmd_time_sync *tsync, int cpu, 514 int tracecmd_tsync_get_selected_proto(struct tracecmd_time_sync *tsync, 516 void tracecmd_tsync_free(struct tracecmd_time_sync *tsync); 518 struct tracecmd_time_sync *tsync);
|
/external/trace-cmd/tracecmd/include/ |
D | trace-local.h | 293 struct tracecmd_time_sync *tsync; member
|
/external/trace-cmd/Documentation/trace-cmd/ |
D | trace-cmd-record.1.txt | 354 *--tsync-interval*::
|