hc
2024-05-10 cde9070d9970eef1f7ec2360586c802a16230ad8
kernel/tools/perf/ui/setup.c
....@@ -1,11 +1,12 @@
11 // SPDX-License-Identifier: GPL-2.0
22 #include <pthread.h>
33 #include <dlfcn.h>
4
+#include <unistd.h>
45
5
-#include "../util/cache.h"
6
+#include <subcmd/pager.h>
67 #include "../util/debug.h"
78 #include "../util/hist.h"
8
-#include "../util/util.h"
9
+#include "ui.h"
910
1011 pthread_mutex_t ui__lock = PTHREAD_MUTEX_INITIALIZER;
1112 void *perf_gtk_handle;
....@@ -89,9 +90,9 @@
8990 printf("GTK browser requested but could not find %s\n",
9091 PERF_GTK_DSO);
9192 sleep(1);
93
+ use_browser = 1;
9294 /* fall through */
9395 case 1:
94
- use_browser = 1;
9596 if (ui__init() == 0)
9697 break;
9798 /* fall through */