mbox series

[0/8] trace-cmd protocol fixes

Message ID 20190204070855.8921-1-kaslevs@vmware.com (mailing list archive)
Headers show
Series trace-cmd protocol fixes | expand

Message

Slavomir Kaslev Feb. 4, 2019, 7:08 a.m. UTC
This patch set tries to make trace-cmd's protocol more robust to future
changes. New MSG_NOT_SUPP message is added for acknowledgement of unexpected
requests.

Slavomir Kaslev (8):
  trace-cmd: Remove unused global variable
  trace-cmd: Rename error_operation_for_server
  trace-cmd: Remove tracecmd_msg_handle/tracecmd_msg_server distinction
  trace-cmd: Check if connection is done when reading data in
    tracecmd_msg_read_data
  trace-cmd: Fix a memory leak in tracecmd_msg_send_init_data
  trace-cmd: Make tracecmd_msg_send_close return error code if any
  trace-cmd: Add tracecmd_msg_wait_close function
  trace-cmd: Acknowledge unexpected protocol messages

 include/trace-cmd/trace-cmd.h |  14 +--
 tracecmd/trace-listen.c       |   2 +-
 tracecmd/trace-msg.c          | 172 ++++++++++++++++++----------------
 tracecmd/trace-record.c       |   2 +-
 4 files changed, 96 insertions(+), 94 deletions(-)