trace-cmd library: Remove dependency to vsockets
v2 cover trace-cmd library: Remove dependency to vsockets
From: "Steven Rostedt (Google)" <[email protected]>
In an effort to have trace-cmd agent and the time synchronization to work with networks, the dependency to vsockets needs to be removed. In fact, libtracecmd should not have any dependency to vsockets, as everything can be done externally. This simplifies the code, and allows the use of trace-msg to be used in more scenarios.
I tested host guest tracing to make sure that it did not break the existing use cases, although there may still be an outlier that I didn't cover.
Changes since v1: https://lore.kernel.org/r/[email protected]
- Consolidated two commits into one, because when I tested each commit, the separate commits broke the agent. To keep it bisectable, the following was squashed into one commit:
[6/8] trace-cmd library: Remove dependency on vsocks from tracecmd_tsync_get_session_params() [7/8] trace-cmd library: Remove vsock dependency from tracecmd_tsync_with_host()
- Fix the NO_VSOCK parameters for the get_vsocket_params() stub prototype.
Steven Rostedt (Google) (7):
trace-cmd: Add NO_VSOCK make option to force vsock code off trace-cmd library: Remove ports from clock context
trace-cmd library: Remove vsocket dependency on P2P protocol trace-cmd library: Remove dependency on vsocks for sync identifiers trace-cmd library: Have tracecmd_tsync_with_guest() not depend on cid/port trace-cmd library: Remove vsock dependency from tracecmd_tsync_with_host()
trace-cmd: Move vsocket code into its own file
Makefile | 4 + .../include/private/trace-cmd-private.h | 12 +- lib/trace-cmd/include/trace-tsync-local.h | 21 +- lib/trace-cmd/trace-msg.c | 3 +- lib/trace-cmd/trace-timesync-ptp.c | 25 ++- lib/trace-cmd/trace-timesync.c | 180 ++---------------- tracecmd/Makefile | 1 + tracecmd/include/trace-local.h | 48 +++++ tracecmd/trace-agent.c | 96 +++------- tracecmd/trace-record.c | 94 +-------- tracecmd/trace-vm.c | 2 +- tracecmd/trace-vsock.c | 156 +++++++++++++++ 12 files changed, 302 insertions(+), 340 deletions(-) create mode 100644 tracecmd/trace-vsock.c
Signature · 1 line
2.35.1
PATCH v2 1/7 trace-cmd: Add NO_VSOCK make option to force vsock code off
From: "Steven Rostedt (Google)" <[email protected]>
Add "make NO_VSOCK=1" to disable building with vsocket code. It is equivalent to not having vsocket support on the system.
--- Makefile | 4 ++++ 1 file changed, 4 insertions(+)
Makefile +4 -0
@@ -287,7 +287,11 @@ CFLAGS ?= -g -Wall CPPFLAGS ?= LDFLAGS ?= +ifndef NO_VSOCK VSOCK_DEFINED := $(shell if (echo "$(pound)include <linux/vm_sockets.h>" | $(CC) -E - >/dev/null 2>&1) ; then echo 1; else echo 0 ; fi) +else +VSOCK_DEFINED := 0 +endif export VSOCK_DEFINED ifeq ($(VSOCK_DEFINED), 1)
Signature · 1 line
2.35.1
PATCH v2 2/7 trace-cmd library: Remove ports from clock context
In reply to Steven RostedtFrom: "Steven Rostedt (Google)" <[email protected]>
The local and remote port fields are set but never used. Remove them.
--- lib/trace-cmd/include/trace-tsync-local.h | 2 -- lib/trace-cmd/trace-timesync.c | 11 +++-------- 2 files changed, 3 insertions(+), 10 deletions(-)
lib/trace-cmd/include/trace-tsync-local.h +0 -2
@@ -51,9 +51,7 @@ struct clock_sync_context {/* Identifiers of local and remote time sync peers: cid and port */ unsigned int local_cid; -unsigned int local_port;unsigned int remote_cid; -unsigned int remote_port; }; int tracecmd_tsync_proto_register(const char *proto_name, int accuracy, int roles,
lib/trace-cmd/trace-timesync.c +3 -8
@@ -405,8 +405,7 @@ int __hidden vsock_get_port(int sd, unsigned int *port)return 0 ; } -static int get_vsocket_params (int fd,unsigned int *lcid,unsigned int *lport, -unsigned int *rcid,unsigned int *rport) +static int get_vsocket_params (int fd,unsigned int *lcid,unsigned int *rcid) {struct sockaddr_vm addr;socklen_t addr_len =sizeof (addr);
@@ -416,7 +415,6 @@ static int get_vsocket_params(int fd, unsigned int *lcid, unsigned int *lport,return -1 ;if (addr.svm_family !=AF_VSOCK )return -1 ; - *lport = addr.svm_port; *lcid = addr.svm_cid;memset (&addr,0 ,sizeof (addr));
@@ -425,7 +423,6 @@ static int get_vsocket_params(int fd, unsigned int *lcid, unsigned int *lport,return -1 ;if (addr.svm_family !=AF_VSOCK )return -1 ; - *rport = addr.svm_port; *rcid = addr.svm_cid;return 0 ;
@@ -448,8 +445,7 @@ static int vsock_get_port(int sd, unsigned int *port)return -ENOTSUP ; } -static int get_vsocket_params (int fd,unsigned int *lcid,unsigned int *lport, -unsigned int *rcid,unsigned int *rport) +static int get_vsocket_params (int fd,unsigned int *lcid,unsigned int *rcid) {return -ENOTSUP ; }
@@ -503,8 +499,7 @@ static int clock_context_init(struct tracecmd_time_sync *tsync, clock->is_server = clock->is_guest;if (get_vsocket_params (tsync->msg_handle->fd, &clock->local_cid, - &clock->local_port, &clock->remote_cid, - &clock->remote_port)) + &clock->remote_cid)) goto error; clock->instance = clock_synch_create_instance(tsync->clock_str,
Signature · 1 line
2.35.1
PATCH v2 3/7 trace-cmd library: Remove vsocket dependency on P2P protocol
In reply to Steven RostedtFrom: "Steven Rostedt (Google)" <[email protected]>
The P2P protocol can work with network connections as well. To allow network agents, remove the dependency on cid ids, and just call them local and remote ids.
--- lib/trace-cmd/include/trace-tsync-local.h | 6 +++--- lib/trace-cmd/trace-timesync-ptp.c | 24 +++++++++++------------ lib/trace-cmd/trace-timesync.c | 6 +++--- 3 files changed, 18 insertions(+), 18 deletions(-)
lib/trace-cmd/include/trace-tsync-local.h +3 -3
@@ -49,9 +49,9 @@ struct clock_sync_context {* calculated offsets per CPU */ -/* Identifiers of local and remote time sync peers: cid and port */ -unsigned int local_cid; -unsigned int remote_cid; +/* Identifiers of local and remote time sync peers */ +unsigned int local_id; +unsigned int remote_id; }; int tracecmd_tsync_proto_register(const char *proto_name, int accuracy, int roles,
lib/trace-cmd/trace-timesync-ptp.c +12 -12
@@ -100,8 +100,8 @@ struct ptp_markers_context { };struct ptp_marker_buf { -int local_cid; -int remote_cid; +int local_id; +int remote_id;int count;int packet_id; } __packed;
@@ -163,7 +163,7 @@ static int ptp_clock_sync_init(struct tracecmd_time_sync *tsync)char buff[256 ];int res_fd; -sprintf (buff,"res-cid%d.txt" , clock_context->remote_cid); +sprintf (buff,"res-id%d.txt" , clock_context->remote_id); res_fd =open (buff,O_CREAT |O_WRONLY |O_TRUNC ,0644 );if (res_fd >0 )
@@ -247,8 +247,8 @@ static int ptp_marker_find(struct tep_event *event, struct tep_record *record,return 0 ;if (record->size >= (ctx->ptp->id->offset +sizeof (struct ptp_marker ))) { marker = (struct ptp_marker *)(record->data + ctx->ptp->id->offset); -if (marker->data.local_cid == ctx->clock->local_cid && - marker->data.remote_cid == ctx->clock->remote_cid && +if (marker->data.local_id == ctx->clock->local_id && + marker->data.remote_id == ctx->clock->remote_id && marker->series_id == ctx->ptp->series_id && marker->data.count)ptp_probe_store (ctx, marker, record->ts);
@@ -460,8 +460,8 @@ static int ptp_clock_client(struct tracecmd_time_sync *tsync, ret =tracecmd_msg_send_time_sync (tsync->msg_handle,PTP_NAME ,PTP_SYNC_PKT_START ,sizeof (start), (char *)&start); - marker.data.local_cid = clock_context->local_cid; - marker.data.remote_cid = clock_context->remote_cid; + marker.data.local_id = clock_context->local_id; + marker.data.remote_id = clock_context->remote_id; marker.series_id =ntohl (start.series_id); marker.data.packet_id ='r' ; ptp->series_id = marker.series_id;
@@ -566,8 +566,8 @@ static int ptp_clock_server(struct tracecmd_time_sync *tsync,tracefs_instance_file_write (clock_context->instance,"trace" ,"\0" ); ptp->series_id++; - marker.data.local_cid = clock_context->local_cid; - marker.data.remote_cid = clock_context->remote_cid; + marker.data.local_id = clock_context->local_id; + marker.data.remote_id = clock_context->remote_id; marker.series_id = ptp->series_id; msg = (char *)&msg_ret; size =sizeof (msg_ret);
@@ -627,7 +627,7 @@ static int ptp_clock_server(struct tracecmd_time_sync *tsync,char buff[256 ];int res_fd; -sprintf (buff,"res-cid%d.txt" , clock_context->remote_cid); +sprintf (buff,"res-id%d.txt" , clock_context->remote_id); res_fd =open (buff,O_WRONLY |O_APPEND ,0644 );if (res_fd >0 ) {
@@ -681,8 +681,8 @@ static int ptp_clock_sync_calc(struct tracecmd_time_sync *tsync, ptp = (struct ptp_clock_sync *)clock_context->proto_data;if (ptp->debug_fd >0 )close (ptp->debug_fd); -sprintf (buff,"s-cid%d_%d.txt" , - clock_context->remote_cid, ptp->series_id+1 ); +sprintf (buff,"s-id%d_%d.txt" , + clock_context->remote_id, ptp->series_id+1 ); ptp->debug_fd = open(buff, O_CREAT|O_WRONLY|O_TRUNC, 0644); }#endif
lib/trace-cmd/trace-timesync.c +3 -3
@@ -498,12 +498,12 @@ static int clock_context_init(struct tracecmd_time_sync *tsync, clock->is_guest = guest; clock->is_server = clock->is_guest; -if (get_vsocket_params (tsync->msg_handle->fd, &clock->local_cid, - &clock->remote_cid)) +if (get_vsocket_params (tsync->msg_handle->fd, &clock->local_id, + &clock->remote_id)) goto error; clock->instance =clock_synch_create_instance (tsync->clock_str, - clock->remote_cid); + clock->remote_id);if (!clock->instance) goto error;
Signature · 1 line
2.35.1
PATCH v2 4/7 trace-cmd library: Remove dependency on vsocks for sync identifiers
In reply to Steven RostedtFrom: "Steven Rostedt (Google)" <[email protected]>
In an effort to remove the dependency on vsockets from libtracecmd and synchronization, move the creation of remote and local ids out of the library and change tracecmd_tsync_with_host() to pass in those identifiers.
--- .../include/private/trace-cmd-private.h | 2 +- lib/trace-cmd/include/trace-tsync-local.h | 2 + lib/trace-cmd/trace-timesync.c | 42 ++++--------------- tracecmd/trace-agent.c | 41 +++++++++++++++++- 4 files changed, 50 insertions(+), 37 deletions(-)
lib/trace-cmd/include/private/trace-cmd-private.h +1 -1
@@ -489,7 +489,7 @@ int tracecmd_tsync_proto_getall(struct tracecmd_tsync_protos **protos, const chabool tsync_proto_is_supported (const char *proto_name);struct tracecmd_time_sync *tracecmd_tsync_with_host (const struct tracecmd_tsync_protos *tsync_protos, -const char *clock); +const char *clock,int remote_id,int local_id);int tracecmd_tsync_with_host_stop (struct tracecmd_time_sync *tsync);struct tracecmd_time_sync * tracecmd_tsync_with_guest(unsigned long long trace_id, int loop_interval,
lib/trace-cmd/include/trace-tsync-local.h +2 -0
@@ -22,6 +22,8 @@ struct tracecmd_time_sync {void *context;int guest_pid;int vcpu_count; +int remote_id; +int local_id; };struct clock_sync_offsets {
lib/trace-cmd/trace-timesync.c +7 -35
79 lines not on this page · raw message
tracecmd/trace-agent.c +40 -1
60 lines not on this page · raw message
Signature · 1 line
2.35.1
PATCH v2 5/7 trace-cmd library: Have tracecmd_tsync_with_guest() not depend on cid/port
In reply to Steven RostedtFrom: "Steven Rostedt (Google)" <[email protected]>
Have tracecmd_tsync_with_guest() get passed a file descriptor for connecting with the guest instead of passing in the cid and port, as this will allow it to be used for network connections as well.
--- .../include/private/trace-cmd-private.h | 2 +- lib/trace-cmd/trace-timesync.c | 36 ++----------------- tracecmd/trace-record.c | 7 ++-- 3 files changed, 9 insertions(+), 36 deletions(-)
lib/trace-cmd/include/private/trace-cmd-private.h +1 -1
@@ -493,7 +493,7 @@ tracecmd_tsync_with_host(const struct tracecmd_tsync_protos *tsync_protos,int tracecmd_tsync_with_host_stop (struct tracecmd_time_sync *tsync);struct tracecmd_time_sync *tracecmd_tsync_with_guest (unsigned long long trace_id,int loop_interval, -unsigned int cid,unsigned int port,int guest_pid, +unsigned int fd,int guest_pid,int guest_cpus,const char *proto_name,const char *clock);int tracecmd_tsync_with_guest_stop (struct tracecmd_time_sync *tsync); int tracecmd_tsync_get_offsets(struct tracecmd_time_sync *tsync, int cpu,
lib/trace-cmd/trace-timesync.c +3 -33
@@ -345,25 +345,6 @@ error: } #ifdef VSOCK -static int vsock_open(unsigned int cid, unsigned int port) -{ - struct sockaddr_vm addr = { - .svm_family = AF_VSOCK, - .svm_cid = cid, - .svm_port = port, - }; - int sd; - - sd = socket(AF_VSOCK, SOCK_STREAM, 0); - if (sd < 0) - return -errno; - - if (connect(sd, (struct sockaddr *)&addr, sizeof(addr))) - return -errno; - - return sd; -} - static int vsock_make(void) { struct sockaddr_vm addr = {
@@ -388,7 +369,7 @@ static int vsock_make(void)return sd; } -int __hidden vsock_get_port(int sd, unsigned int *port) +static int vsock_get_port (int sd,unsigned int *port) {struct sockaddr_vm addr;socklen_t addr_len =sizeof (addr);
@@ -406,11 +387,6 @@ int __hidden vsock_get_port(int sd, unsigned int *port) }#else -static int vsock_open (unsigned int cid,unsigned int port) -{ -return -ENOTSUP ; -} -static int vsock_make (void ) {return -ENOTSUP ;
@@ -811,8 +787,7 @@ static void *tsync_host_thread(void *data)* tracecmd_tsync_with_guest - Synchronize timestamps with guest * * @trace_id: Local ID for the current trace session -* @cid: CID of the guest -* @port: VSOCKET port, on which the guest listens for tsync requests +* @fd: file descriptor of guest * @guest_pid: PID of the host OS process, running the guest * @guest_cpus: Number of the guest VCPUs * @proto_name: Name of the negotiated time synchronization protocol
@@ -826,14 +801,13 @@ static void *tsync_host_thread(void *data)*/ struct tracecmd_time_sync *tracecmd_tsync_with_guest (unsigned long long trace_id,int loop_interval, -unsigned int cid,unsigned int port,int guest_pid, +unsigned int fd,int guest_pid,int guest_cpus,const char *proto_name,const char *clock) {struct tracecmd_time_sync *tsync;cpu_set_t *pin_mask =NULL ;pthread_attr_t attrib;size_t mask_size =0 ; -int fd =-1 ;int ret;if (!proto_name)
@@ -846,9 +820,6 @@ tracecmd_tsync_with_guest(unsigned long long trace_id, int loop_interval, tsync->trace_id = trace_id; tsync->loop_interval = loop_interval; tsync->proto_name =strdup (proto_name); - fd =vsock_open (cid, port); -if (fd <0 ) - goto error; tsync->msg_handle =tracecmd_msg_handle_alloc (fd,0 );if (!tsync->msg_handle) {
@@ -1034,7 +1005,6 @@ out:/** * tracecmd_tsync_with_host - Synchronize timestamps with host -* * @tsync_protos: List of tsync protocols, supported by the host * @clock: Trace clock, used for that session * @port: returned, VSOCKET port, on which the guest listens for tsync requests
tracecmd/trace-record.c +5 -2
@@ -3976,19 +3976,22 @@ static int host_tsync(struct common_record_context *ctx, unsigned int tsync_port, char *proto) { struct trace_guest *guest; +int fd;if (!proto)return -1 ; + guest =trace_get_guest (instance->cid,NULL );if (guest ==NULL )return -1 ;start_mapping_vcpus (guest); + fd =trace_open_vsock (instance->cid, tsync_port); instance->tsync =tracecmd_tsync_with_guest (top_instance.trace_id, instance->tsync_loop_interval, - instance->cid, tsync_port, - guest->pid, instance->cpu_count, + fd, guest->pid, + instance->cpu_count, proto, ctx->clock);stop_mapping_vcpus (instance, guest);
Signature · 1 line
2.35.1
PATCH v2 6/7 trace-cmd library: Remove vsock dependency from tracecmd_tsync_with_host()
In reply to Steven RostedtFrom: "Steven Rostedt (Google)" <[email protected]>
The time synchronization works for networks too. In order to remove the dependency of vsockets, have tracecmd_tsync_with_host() get the file descriptor from the caller instead of creating one. This allows the caller to either create a vsocket or a network interface and it will still all work.
This also requires changing tracecmd_tsync_get_session_params() to only return the selected protocol as the tsync_port has already been established before calling tracecmd_tsync_with_host(). Since it now only returns the selected protocol, rename it to tracecmd_tsync_get_selected_proto().
This is needed to decouple vsockets from libtracecmd.
--- .../include/private/trace-cmd-private.h | 8 +- lib/trace-cmd/trace-msg.c | 3 +- lib/trace-cmd/trace-timesync.c | 94 ++----------------- tracecmd/trace-agent.c | 84 +++++++++++++++-- tracecmd/trace-record.c | 7 +- 5 files changed, 97 insertions(+), 99 deletions(-)
lib/trace-cmd/include/private/trace-cmd-private.h +4 -4
@@ -488,7 +488,8 @@ void tracecmd_tsync_init(void);int tracecmd_tsync_proto_getall (struct tracecmd_tsync_protos **protos,const char *clock,int role);bool tsync_proto_is_supported (const char *proto_name);struct tracecmd_time_sync * -tracecmd_tsync_with_host (const struct tracecmd_tsync_protos *tsync_protos, +tracecmd_tsync_with_host (int fd, +const struct tracecmd_tsync_protos *tsync_protos,const char *clock,int remote_id,int local_id);int tracecmd_tsync_with_host_stop (struct tracecmd_time_sync *tsync); struct tracecmd_time_sync *
@@ -499,9 +500,8 @@ int tracecmd_tsync_with_guest_stop(struct tracecmd_time_sync *tsync);int tracecmd_tsync_get_offsets (struct tracecmd_time_sync *tsync,int cpu,int *count,long long **ts,long long **offsets,long long **scalings,long long **frac); -int tracecmd_tsync_get_session_params (struct tracecmd_time_sync *tsync, -char **selected_proto, -unsigned int *tsync_port); +int tracecmd_tsync_get_selected_proto (struct tracecmd_time_sync *tsync, +char **selected_proto);void tracecmd_tsync_free (struct tracecmd_time_sync *tsync);int tracecmd_write_guest_time_shift (struct tracecmd_output *handle,struct tracecmd_time_sync *tsync);
lib/trace-cmd/trace-msg.c +2 -1
@@ -629,7 +629,8 @@ static int flush_cache(struct tracecmd_msg_handle *msg_handle)void tracecmd_msg_handle_close (struct tracecmd_msg_handle *msg_handle) { -close (msg_handle->fd); +if (msg_handle->fd >=0 ) +close (msg_handle->fd);if (msg_handle->cfd >=0 )close (msg_handle->cfd);free (msg_handle);
lib/trace-cmd/trace-timesync.c +10 -84
153 lines not on this page · raw message
tracecmd/trace-agent.c +77 -7
112 lines not on this page · raw message
tracecmd/trace-record.c +4 -3
@@ -3228,8 +3228,7 @@ int trace_open_vsock(unsigned int cid, unsigned int port)die ("vsock is not supported" );return -1 ; } - -static bool can_splice_read_vsock (void ) +static inline bool can_splice_read_vsock (void ) {return false; }
@@ -3976,6 +3975,7 @@ static int host_tsync(struct common_record_context *ctx, unsigned int tsync_port, char *proto) { struct trace_guest *guest; +int guest_pid =-1 ;int fd;if (!proto)
@@ -3985,12 +3985,13 @@ static int host_tsync(struct common_record_context *ctx,if (guest ==NULL )return -1 ; + guest_pid = guest->pid;start_mapping_vcpus (guest); fd =trace_open_vsock (instance->cid, tsync_port); instance->tsync =tracecmd_tsync_with_guest (top_instance.trace_id, instance->tsync_loop_interval, - fd, guest->pid, + fd, guest_pid, instance->cpu_count, proto, ctx->clock);stop_mapping_vcpus (instance, guest);
Signature · 1 line
2.35.1
PATCH v2 7/7 trace-cmd: Move vsocket code into its own file
In reply to Steven RostedtFrom: "Steven Rostedt (Google)" <[email protected]>
Create trace-vsock.c to hold vsock specific operations. Several files duplicate the implementation of vsocket connections. Consolidate all of them into a single file to be used by all, and also can be disabled in a single place, getting rid of a lot of the #ifdef VSOCKs that are poluting the code.
--- lib/trace-cmd/include/trace-tsync-local.h | 11 ++ lib/trace-cmd/trace-timesync-ptp.c | 1 - lib/trace-cmd/trace-timesync.c | 5 - tracecmd/Makefile | 1 + tracecmd/include/trace-local.h | 48 +++++++ tracecmd/trace-agent.c | 165 +--------------------- tracecmd/trace-record.c | 86 +---------- tracecmd/trace-vm.c | 2 +- tracecmd/trace-vsock.c | 156 ++++++++++++++++++++ 9 files changed, 228 insertions(+), 247 deletions(-) create mode 100644 tracecmd/trace-vsock.c
lib/trace-cmd/include/trace-tsync-local.h +11 -0
@@ -65,7 +65,18 @@ int tracecmd_tsync_proto_register(const char *proto_name, int accuracy, int role long long *, unsigned int));int tracecmd_tsync_proto_unregister (char *proto_name); +#ifdef VSOCK int ptp_clock_sync_register (void );int kvm_clock_sync_register (void ); +#else +static inline int ptp_clock_sync_register (void ) +{ +return 0 ; +} +static inline int kvm_clock_sync_register (void ) +{ +return 0 ; +} +#endif #endif /* _TRACE_TSYNC_LOCAL_H */
lib/trace-cmd/trace-timesync-ptp.c +0 -1
@@ -8,7 +8,6 @@#include <stdlib.h> #include <unistd.h> #include <arpa/inet.h> -#include <linux/vm_sockets.h> #include <sys/types.h> #include <linux/types.h> #include <time.h>
lib/trace-cmd/trace-timesync.c +0 -5
@@ -8,9 +8,6 @@#include <stdlib.h> #include <unistd.h> #include <arpa/inet.h> -#ifdef VSOCK -#include <linux/vm_sockets.h> -#endif #include <linux/limits.h> #include <sys/types.h> #include <sys/stat.h>
@@ -65,10 +62,8 @@ static struct tsync_proto *tsync_proto_find(const char *proto_name)*/ void tracecmd_tsync_init (void ) { -#ifdef VSOCK ptp_clock_sync_register ();kvm_clock_sync_register (); -#endif } int tracecmd_tsync_proto_register(const char *proto_name, int accuracy, int roles,
tracecmd/Makefile +1 -0
@@ -37,6 +37,7 @@ TRACE_CMD_OBJS += trace-dump.o TRACE_CMD_OBJS += trace-clear.o TRACE_CMD_OBJS += trace-vm.o TRACE_CMD_OBJS += trace-convert.o +TRACE_CMD_OBJS += trace-vsock.o ifeq ($(VSOCK_DEFINED), 1) TRACE_CMD_OBJS += trace-agent.o
tracecmd/include/trace-local.h +48 -0
60 lines not on this page · raw message
tracecmd/trace-agent.c +7 -158
210 lines not on this page · raw message
tracecmd/trace-record.c +4 -82
122 lines not on this page · raw message
tracecmd/trace-vm.c +1 -1
@@ -284,7 +284,7 @@ static void find_pid_by_cid(struct trace_guest *guest)int fd; instance =start_trace_connect (); - fd =trace_open_vsock (guest->cid,-1 ); + fd =trace_vsock_open (guest->cid,-1 ); guest->pid =stop_trace_connect (instance);/* Just in case! */ if (fd >=0 )
tracecmd/trace-vsock.c new file +156 -0
156 lines not on this page · raw message
Signature · 1 line
2.35.1