@@ -69,6 +69,10 @@ if (Qt5Widgets_FOUND AND Qt5Network_FOUND)
add_executable(kernelshark kernelshark.cpp)
target_link_libraries(kernelshark kshark-gui)
+ message(STATUS "kshark-record")
+ add_executable(kshark-record kshark-record.cpp)
+ target_link_libraries(kshark-record kshark-gui)
+
endif (Qt5Widgets_FOUND AND Qt5Network_FOUND)
add_subdirectory(plugins)
new file mode 100644
@@ -0,0 +1,29 @@
+// SPDX-License-Identifier: GPL-2.0
+
+/*
+ * Copyright (C) 2018 VMware Inc, Yordan Karadzhov <y.karadz@gmail.com>
+ */
+
+// C
+#include <unistd.h>
+
+// KernelShark
+#include "KsCaptureDialog.hpp"
+
+int main(int argc, char **argv)
+{
+ QApplication a(argc, argv);
+ KsCaptureDialog cd;
+
+ int c;
+ while ((c = getopt(argc, argv, "o:")) != -1) {
+ switch(c) {
+ case 'o':
+ cd.setOutputFileName(QString(optarg));
+ break;
+ }
+ }
+
+ cd.show();
+ return a.exec();
+}