struct cds_lfht_iter iter;
rcu_read_lock();
- node = hashtable_lookup(ht, (void *) name, strlen(name), &iter);
+ node = hashtable_lookup(ht, (void *)name, strlen(name), &iter);
if (node == NULL) {
rcu_read_unlock();
goto error;
*
* Return pointer to structure or NULL.
*/
-struct ltt_ust_session *trace_ust_create_session(char *path, unsigned int uid,
+struct ltt_ust_session *trace_ust_create_session(char *path, int session_id,
struct lttng_domain *domain)
{
int ret;
}
/* Init data structure */
- lus->uid = uid;
+ lus->id = session_id;
lus->start_trace = 0;
/* Alloc UST domain hash tables */
}
/* Copy channel name */
- strncpy(luc->name, chan->name, sizeof(&luc->name));
+ strncpy(luc->name, chan->name, sizeof(luc->name));
luc->name[LTTNG_UST_SYM_NAME_LEN - 1] = '\0';
/* Init node */
case LTTNG_EVENT_TRACEPOINT:
lue->attr.instrumentation = LTTNG_UST_TRACEPOINT;
break;
+ case LTTNG_EVENT_TRACEPOINT_LOGLEVEL:
+ lue->attr.instrumentation = LTTNG_UST_TRACEPOINT_LOGLEVEL;
+ break;
default:
ERR("Unknown ust instrumentation type (%d)", ev->type);
goto error_free_event;
rcu_read_lock();
- DBG2("Trace UST destroy session %d", session->uid);
+ DBG2("Trace UST destroy session %d", session->id);
/* Cleaning up UST domain */
destroy_domain_global(&session->domain_global);