acrn-hypervisor/misc/debug_tools/acrn_crashlog/usercrash/include/packet.h
Xie, nanlin 0ab5db9cf9 tools: rename and category content into debug tools and services
1. Rename folder name with "_"
2. Category acrn_crashlog, acrn_log, acrn_trace into debug_tools folder and acrn_bridge, life_mngr, acrn_manager into services.

Tracked-On: #5644
Signed-off-by: Xie, nanlin <nanlin.xie@intel.com>
2021-01-27 11:08:28 +08:00

32 lines
503 B
C

/*
* Copyright (C) <2018> Intel Corporation
* SPDX-License-Identifier: BSD-3-Clause
*/
#ifndef CLIENT_H
#define CLIENT_H
#define COMM_NAME_LEN 64
#define SOCKET_NAME "user_crash"
#include <stdio.h>
enum CrashPacketType {
/* Initial request from crash_dump */
kDumpRequest = 0,
/* Notification of a completed crash dump */
kCompletedDump,
/* Responses to kRequest */
kPerformDump
};
struct crash_packet {
enum CrashPacketType packet_type;
int pid;
char name[COMM_NAME_LEN];
};
#endif