-char command_sock_path[PATH_MAX]; /* Global command socket path */
-char error_sock_path[PATH_MAX]; /* Global error path */
+static char command_sock_path[PATH_MAX]; /* Global command socket path */
+static char error_sock_path[PATH_MAX]; /* Global error path */
* SIGINT, SIGTERM, SIGPIPE
*/
static int set_signal_handler(void)
* SIGINT, SIGTERM, SIGPIPE
*/
static int set_signal_handler(void)
case LTTNG_EVENT_SPLICE:
/* read the whole subbuffer */
err = kernctl_get_padded_subbuf_size(infd, &len);
case LTTNG_EVENT_SPLICE:
/* read the whole subbuffer */
err = kernctl_get_padded_subbuf_size(infd, &len);
if (strlen(error_sock_path) == 0) {
snprintf(error_sock_path, PATH_MAX,
KCONSUMERD_ERR_SOCK_PATH);
if (strlen(error_sock_path) == 0) {
snprintf(error_sock_path, PATH_MAX,
KCONSUMERD_ERR_SOCK_PATH);
- ret = pthread_create(&threads[0], NULL, kconsumerd_thread_receive_fds,
+ ret = pthread_create(&threads[0], NULL, lttng_kconsumerd_thread_receive_fds,
- ret = pthread_create(&threads[1], NULL, kconsumerd_thread_poll_fds,
+ ret = pthread_create(&threads[1], NULL, lttng_kconsumerd_thread_poll_fds,