Pass lttng_event struct to the set_filter API call
[lttng-tools.git] / src / bin / lttng / commands / enable_events.c
index 4a76267baada7f23619b89517a510afff69be0ee..cdd137cc9193d3aed0efdfee037546b97c958402 100644 (file)
@@ -422,7 +422,7 @@ static int enable_events(char *session_name)
                        goto error;
                }
                if (opt_filter && event_enabled) {
-                       ret = lttng_set_event_filter(handle, ev.name, channel_name,
+                       ret = lttng_set_event_filter(handle, &ev, channel_name,
                                                opt_filter);
                        if (ret < 0) {
                                fprintf(stderr, "Ret filter: %d\n", ret);
@@ -587,7 +587,7 @@ static int enable_events(char *session_name)
                        event_enabled = 1;
                }
                if (opt_filter && event_enabled) {
-                       ret = lttng_set_event_filter(handle, ev.name, channel_name,
+                       ret = lttng_set_event_filter(handle, &ev, channel_name,
                                        opt_filter);
                        if (ret < 0) {
                                switch (-ret) {
This page took 0.030316 seconds and 4 git commands to generate.