Implement loglevels as event and wildcard attributes
[lttng-ust.git] / liblttng-ust-ctl / ustctl.c
index fc7f57ca265173439fd4277e9ccbdf2107240ee2..32fa2ebc33e92e054a7591435fa9aadffef47009 100644 (file)
@@ -331,6 +331,8 @@ int ustctl_create_event(int sock, struct lttng_ust_event *ev,
        strncpy(lum.u.event.name, ev->name,
                LTTNG_UST_SYM_NAME_LEN);
        lum.u.event.instrumentation = ev->instrumentation;
+       lum.u.event.loglevel_type = ev->loglevel_type;
+       lum.u.event.loglevel = ev->loglevel;
        ret = ustcomm_send_app_cmd(sock, &lum, &lur);
        if (ret) {
                free(event_data);
@@ -450,10 +452,9 @@ int ustctl_tracepoint_list_get(int sock, int tp_list_handle,
        ret = ustcomm_send_app_cmd(sock, &lum, &lur);
        if (ret)
                return ret;
-       DBG("received tracepoint list entry name %s loglevel %s loglevel_value %lld",
+       DBG("received tracepoint list entry name %s loglevel %d",
                lur.u.tracepoint.name,
-               lur.u.tracepoint.loglevel,
-               (unsigned long long) lur.u.tracepoint.loglevel_value);
+               lur.u.tracepoint.loglevel);
        memcpy(iter, &lur.u.tracepoint, sizeof(*iter));
        return 0;
 }
This page took 0.023124 seconds and 4 git commands to generate.