close(sock);
return -EINVAL;
}
+ if (msg->major != LTTNG_UST_COMM_MAJOR) {
+ ERR("Registration failed: application \"%s\" (pid: %d) has "
+ "communication protocol version %u.%u, but sessiond supports 2.x.\n",
+ msg->name, msg->pid, msg->major, msg->minor);
+ close(sock);
+ return -EINVAL;
+ }
lta = zmalloc(sizeof(struct ust_app));
if (lta == NULL) {
PERROR("malloc");
}
}
memcpy(tmp[count].name, uiter.name, LTTNG_UST_SYM_NAME_LEN);
- memcpy(tmp[count].loglevel, uiter.loglevel, LTTNG_UST_SYM_NAME_LEN);
- tmp[count].loglevel_value = uiter.loglevel_value;
+ tmp[count].loglevel = uiter.loglevel;
tmp[count].type = LTTNG_UST_TRACEPOINT;
tmp[count].pid = app->key.pid;
tmp[count].enabled = -1;
*/
void ust_app_global_update(struct ltt_ust_session *usess, int sock)
{
- int ret = 0, ctx_on_chan = 0;
+ int ret = 0;
struct lttng_ht_iter iter, uiter, iter_ctx;
struct ust_app *app;
struct ust_app_session *ua_sess;
}
}
}
-
- /* Reset flag */
- ctx_on_chan = 0;
}
if (usess->start_trace) {