- if (remote_live) {
- ret = setup_network_live(opt_relay_hostname);
- if (ret < 0) {
- goto end;
- }
- }
-
- if (!opt_textdump) {
- pthread_create(&display_thread, NULL, ncurses_display, (void *) NULL);
- pthread_create(&timer_thread, NULL, refresh_thread, (void *) NULL);
- }
-
- ret = open_trace(&bt_ctx);
- if (ret < 0) {
- goto end;
- }
-
- ret = check_requirements(bt_ctx);
- if (ret < 0) {
- fprintf(stderr, "[error] some mandatory contexts were missing, exiting.\n");
- goto end;
- }
-
- iter_trace(bt_ctx);
-
-#ifdef LTTNGTOP_MMAP_LIVE