Implement ustctl_tracepoint_list/list_get
[lttng-ust.git] / liblttng-ust / lttng-ust-abi.c
index 4b8a8e71d9e5b4548f8e3e3d2c0e7e676e514c96..ccdfcfad83bb8f5ab3f7c611bb6178ed63ff179a 100644 (file)
@@ -523,10 +523,13 @@ static
 long lttng_tracepoint_list_cmd(int objd, unsigned int cmd, unsigned long arg)
 {
        struct ltt_tracepoint_list *list = objd_private(objd);
+       char *str = (char *) arg;
 
        switch (cmd) {
        case LTTNG_UST_TRACEPOINT_LIST_GET:
-               ltt_tracepoint_list_get(list, (char *) arg);
+               ltt_tracepoint_list_get(list, str);
+               if (str[0] == '\0')
+                       return -ENOENT;
                return 0;
        default:
                return -EINVAL;
This page took 0.023952 seconds and 4 git commands to generate.