}
/*
- * Return the agent default event name to use by testing if the process is root
- * or not. Return NULL on error.
+ * Return the default event name associated with the provided UST domain. Return
+ * NULL on error.
*/
const char *event_get_default_agent_ust_name(enum lttng_domain_type domain)
{
switch (domain) {
case LTTNG_DOMAIN_LOG4J:
- if (is_root) {
- default_event_name = DEFAULT_SYS_LOG4J_EVENT_NAME;
- } else {
- default_event_name = DEFAULT_USER_LOG4J_EVENT_NAME;
- }
+ default_event_name = DEFAULT_LOG4J_EVENT_NAME;
break;
case LTTNG_DOMAIN_JUL:
- if (is_root) {
- default_event_name = DEFAULT_SYS_JUL_EVENT_NAME;
- } else {
- default_event_name = DEFAULT_USER_JUL_EVENT_NAME;
- }
+ default_event_name = DEFAULT_JUL_EVENT_NAME;
break;
case LTTNG_DOMAIN_PYTHON:
default_event_name = DEFAULT_USER_PYTHON_EVENT_NAME;
/* Default JUL domain channel name. */
#define DEFAULT_JUL_CHANNEL_NAME "lttng_jul_channel"
/* Default JUL tracepoint name. This is a wildcard for the JUL domain. */
-#define DEFAULT_SYS_JUL_EVENT_NAME "lttng_jul:sys*"
-#define DEFAULT_USER_JUL_EVENT_NAME "lttng_jul:user*"
+#define DEFAULT_JUL_EVENT_NAME "lttng_jul:*"
/* Default log4j domain channel name. */
#define DEFAULT_LOG4J_CHANNEL_NAME "lttng_log4j_channel"
/* Default log4j tracepoint name. This is a wildcard for the log4j domain. */
-#define DEFAULT_SYS_LOG4J_EVENT_NAME "lttng_log4j:sys*"
-#define DEFAULT_USER_LOG4J_EVENT_NAME "lttng_log4j:user*"
+#define DEFAULT_LOG4J_EVENT_NAME "lttng_log4j:*"
/* Default Python domain channel name. */
#define DEFAULT_PYTHON_CHANNEL_NAME "lttng_python_channel"