File: builtin-debug.h

package info (click to toggle)
kvmtool 0.20161128-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 1,748 kB
  • ctags: 6,310
  • sloc: ansic: 25,215; makefile: 495; asm: 212; sh: 122
file content (20 lines) | stat: -rw-r--r-- 395 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef KVM__DEBUG_H
#define KVM__DEBUG_H

#include <kvm/util.h>
#include <linux/types.h>

#define KVM_DEBUG_CMD_TYPE_DUMP	(1 << 0)
#define KVM_DEBUG_CMD_TYPE_NMI	(1 << 1)
#define KVM_DEBUG_CMD_TYPE_SYSRQ (1 << 2)

struct debug_cmd_params {
	u32 dbg_type;
	u32 cpu;
	char sysrq;
};

int kvm_cmd_debug(int argc, const char **argv, const char *prefix);
void kvm_debug_help(void) NORETURN;

#endif