X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=libustcomm%2Fustcomm.h;h=689c151a5b300920cbf97b4d4177622afe30058e;hb=10c561687fc2f7aa40380e967cf5132a656f34b7;hp=ed8470f773e92cb93b2018166ce4b0392b360b49;hpb=10f2b72421cdb8844440ddc49a836fb73ce1b495;p=ust.git diff --git a/libustcomm/ustcomm.h b/libustcomm/ustcomm.h index ed8470f..689c151 100644 --- a/libustcomm/ustcomm.h +++ b/libustcomm/ustcomm.h @@ -27,7 +27,7 @@ #define SOCK_DIR "/tmp/ust-app-socks" struct ustcomm_sock { - struct list_head list; + struct cds_list_head list; int fd; int epoll_fd; }; @@ -84,6 +84,7 @@ struct ustcomm_trace_info { }; struct ustcomm_channel_info { + char *trace; char *channel; unsigned int subbuf_size; unsigned int subbuf_num; @@ -91,6 +92,7 @@ struct ustcomm_channel_info { }; struct ustcomm_buffer_info { + char *trace; char *channel; int ch_cpu; pid_t pid; @@ -101,6 +103,7 @@ struct ustcomm_buffer_info { }; struct ustcomm_marker_info { + char *trace; char *channel; char *marker; char data[USTCOMM_DATA_SIZE]; @@ -124,7 +127,7 @@ extern int ensure_dir_exists(const char *dir); /* Create and delete sockets */ extern struct ustcomm_sock * ustcomm_init_sock(int fd, int epoll_fd, - struct list_head *list); + struct cds_list_head *list); extern void ustcomm_del_sock(struct ustcomm_sock *sock, int keep_in_epoll); /* Create and delete named sockets */ @@ -185,12 +188,14 @@ extern int ustcomm_unpack_trace_info(struct ustcomm_trace_info *trace_inf); extern int ustcomm_pack_channel_info(struct ustcomm_header *header, struct ustcomm_channel_info *ch_inf, + const char *trace, const char *channel); extern int ustcomm_unpack_channel_info(struct ustcomm_channel_info *ch_inf); extern int ustcomm_pack_buffer_info(struct ustcomm_header *header, struct ustcomm_buffer_info *buf_inf, + const char *trace, const char *channel, int channel_cpu); @@ -198,6 +203,7 @@ extern int ustcomm_unpack_buffer_info(struct ustcomm_buffer_info *buf_inf); extern int ustcomm_pack_marker_info(struct ustcomm_header *header, struct ustcomm_marker_info *marker_inf, + const char *trace, const char *channel, const char *marker);