#define RANDOM_STRING_LEN 11
/* Number of TAP tests in this file */
-#define NUM_TESTS 10
+#define NUM_TESTS 11
-/* For lttngerr.h */
+/* For error.h */
int lttng_opt_quiet = 1;
int lttng_opt_verbose;
+int lttng_opt_mi;
int ust_consumerd32_fd;
int ust_consumerd64_fd;
ok(usess != NULL, "Create UST session");
ok(usess->id == 42 &&
- usess->start_trace == 0 &&
+ usess->active == 0 &&
usess->domain_global.channels != NULL &&
usess->uid == 0 &&
usess->gid == 0,
ev.type = LTTNG_EVENT_TRACEPOINT;
ev.loglevel_type = LTTNG_EVENT_LOGLEVEL_ALL;
- event = trace_ust_create_event(&ev, NULL, NULL);
+ event = trace_ust_create_event(&ev, NULL, NULL, NULL);
ok(event != NULL, "Create UST event");
/* set up an exclusion set */
exclusion = zmalloc(sizeof(*exclusion) + LTTNG_SYMBOL_NAME_LEN);
+ if (!exclusion) {
+ PERROR("zmalloc");
+ }
+
+ ok(exclusion != NULL, "Create UST exclusion");
+
exclusion->count = 1;
strncpy((char *)(exclusion->names), get_random_string(), LTTNG_SYMBOL_NAME_LEN);
- event = trace_ust_create_event(&ev, NULL, exclusion);
+ event = trace_ust_create_event(&ev, NULL, NULL, exclusion);
ok(event != NULL, "Create UST event with exclusion");
event->attr.name[LTTNG_UST_SYM_NAME_LEN - 1] == '\0',
"Validate UST event and exclusion");
- free(exclusion);
trace_ust_destroy_event(event);
}