Fix: JUL agent connect to user and root sessiond
[lttng-ust.git] / liblttng-ust-jul / lttng_ust_jul.h
index 442eda54b2cec35b17c3c880a72fe469824db3ad..a45af396e6c2aff69cf953ce8be6694dfbc7c3b6 100644 (file)
 
 #include <lttng/tracepoint.h>
 
-TRACEPOINT_EVENT(lttng_jul, jul_event,
+/*
+ * Privileged tracepoint meaning that this is only enable and fired by the root
+ * session daemon.
+ */
+TRACEPOINT_EVENT(lttng_jul, sys_event,
+       TP_ARGS(
+               const char *, msg,
+               const char *, logger_name,
+               const char *, class_name,
+               const char *, method_name,
+               long, millis,
+               int, log_level,
+               int, thread_id),
+       TP_FIELDS(
+               ctf_string(msg, msg)
+               ctf_string(logger_name, logger_name)
+               ctf_string(class_name, class_name)
+               ctf_string(method_name, method_name)
+               ctf_integer(long, long_millis, millis)
+               ctf_integer(int, int_loglevel, log_level)
+               ctf_integer(int, int_threadid, thread_id)
+       )
+)
+
+/*
+ * User tracepoint meaning that this is only enable and fired by a non root
+ * session daemon.
+ */
+TRACEPOINT_EVENT(lttng_jul, user_event,
        TP_ARGS(
                const char *, msg,
                const char *, logger_name,
This page took 0.024465 seconds and 4 git commands to generate.