trace-cmd: Refactor few trace-cmd internal functions.
In order to reuse code inside trace-cmd application context,
few functions are made non static and "trace_" is prepended
to their names:
int trace_make_vsock(unsigned int port);
int trace_get_vsock_port(int sd, unsigned int *port);
int trace_open_vsock(unsigned int cid, unsigned int port);
char *trace_get_guest_file(const char *file, const char *guest);
Link: http://lore.kernel.org/linux-trace-devel/20200304091220.30936-11-tz.stoyanov@gmail.com
Signed-off-by: Tzvetomir Stoyanov (VMware) <tz.stoyanov@gmail.com>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
3 files changed