Change not implemented error to undefined.
[lttng-tools.git] / src / bin / lttng-sessiond / channel.c
index df411b2283e3fa2d1e853a2c61ef80bca6ba03d6..54345d9c94bfa96a70ab9cd0ab6ffb925a9d4953 100644 (file)
@@ -19,9 +19,9 @@
 #include <string.h>
 #include <unistd.h>
 
+#include <common/common.h>
+#include <common/defaults.h>
 #include <common/sessiond-comm/sessiond-comm.h>
-#include <common/lttngerr.h>
-#include <common/lttng-share.h>
 
 #include "channel.h"
 #include "kernel.h"
@@ -59,7 +59,11 @@ struct lttng_channel *channel_new_default_attr(int dom)
                chan->attr.output = DEFAULT_KERNEL_CHANNEL_OUTPUT;
                break;
        case LTTNG_DOMAIN_UST:
+#if 0
        case LTTNG_DOMAIN_UST_PID:
+       case LTTNG_DOMAIN_UST_PID_FOLLOW_CHILDREN:
+       case LTTNG_DOMAIN_UST_EXEC_NAME:
+#endif
                chan->attr.subbuf_size = DEFAULT_UST_CHANNEL_SUBBUF_SIZE;
                chan->attr.num_subbuf = DEFAULT_UST_CHANNEL_SUBBUF_NUM;
                chan->attr.output = DEFAULT_UST_CHANNEL_OUTPUT;
@@ -184,10 +188,13 @@ int channel_ust_enable(struct ltt_ust_session *usess, int domain,
                /* Enable channel for global domain */
                ret = ust_app_enable_channel_glb(usess, uchan);
                break;
+#if 0
        case LTTNG_DOMAIN_UST_PID:
        case LTTNG_DOMAIN_UST_PID_FOLLOW_CHILDREN:
        case LTTNG_DOMAIN_UST_EXEC_NAME:
-               ret = LTTCOMM_NOT_IMPLEMENTED;
+#endif
+       default:
+               ret = LTTCOMM_UND;
                goto error;
        }
 
@@ -243,11 +250,13 @@ int channel_ust_create(struct ltt_ust_session *usess, int domain,
                /* Enable channel for global domain */
                ret = ust_app_create_channel_glb(usess, uchan);
                break;
+#if 0
        case LTTNG_DOMAIN_UST_PID:
        case LTTNG_DOMAIN_UST_PID_FOLLOW_CHILDREN:
        case LTTNG_DOMAIN_UST_EXEC_NAME:
+#endif
        default:
-               ret = LTTCOMM_NOT_IMPLEMENTED;
+               ret = LTTCOMM_UND;
                goto error_free_chan;
        }
 
@@ -298,10 +307,13 @@ int channel_ust_disable(struct ltt_ust_session *usess, int domain,
                /* Disable channel for global domain */
                ret = ust_app_disable_channel_glb(usess, uchan);
                break;
+#if 0
        case LTTNG_DOMAIN_UST_PID_FOLLOW_CHILDREN:
        case LTTNG_DOMAIN_UST_EXEC_NAME:
        case LTTNG_DOMAIN_UST_PID:
-               ret = LTTCOMM_NOT_IMPLEMENTED;
+#endif
+       default:
+               ret = LTTCOMM_UND;
                goto error;
        }
 
This page took 0.02398 seconds and 4 git commands to generate.