Files
acrn-hypervisor/misc/debug_tools/acrn_crashlog/usercrash/include/packet.h
Ziheng Li eb8bcb06b3 Update copyright year range in code headers
Modified the copyright year range in code, and corrected "int32_tel"
into "Intel" in two "hypervisor/include/debug/profiling.h" and
"hypervisor/include/debug/profiling_internal.h".

Tracked-On: #7559
Signed-off-by: Ziheng Li <ziheng.li@intel.com>
2022-07-15 11:48:35 +08:00

32 lines
507 B
C

/*
* Copyright (C) 2018-2022 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