File: kshark-record.cpp

package info (click to toggle)
kernelshark 2.2.1-1~deb12u1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 5,744 kB
  • sloc: cpp: 12,517; ansic: 11,521; makefile: 89; sh: 88
file content (29 lines) | stat: -rw-r--r-- 449 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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();
}