mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-06-08 01:54:44 +00:00
HV:Acrn-hypvervisor Root Directory Clean-up and create misc/ folder for Acrn daemons, services and tools.
This patch is to clean-up acrn-hypervisor root directory, targt only 5 folders under acrn-hypervisor:1.hypervisor,2.devicemodel,3.misc,4.doc,5.build Tracked-On: #3482 Signed-off-by: Terry Zou <terry.zou@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
44
misc/tools/acrn-crashlog/acrnprobe/include/event_queue.h
Normal file
44
misc/tools/acrn-crashlog/acrnprobe/include/event_queue.h
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright (C) 2018 Intel Corporation
|
||||
* SPDX-License-Identifier: BSD-3-Clause
|
||||
*/
|
||||
|
||||
#ifndef __EVENT_QUEUE_H__
|
||||
#define __EVENT_QUEUE_H__
|
||||
|
||||
#include <sys/queue.h>
|
||||
|
||||
enum event_type_t {
|
||||
CRASH,
|
||||
INFO,
|
||||
UPTIME,
|
||||
HEART_BEAT,
|
||||
REBOOT,
|
||||
VM,
|
||||
UNKNOWN
|
||||
};
|
||||
|
||||
extern const char *etype_str[];
|
||||
|
||||
__extension__
|
||||
struct event_t {
|
||||
int watchfd;
|
||||
enum event_type_t event_type;
|
||||
const char *channel;
|
||||
void *private;
|
||||
|
||||
TAILQ_ENTRY(event_t) entries;
|
||||
|
||||
/* dir to storage logs */
|
||||
char *dir;
|
||||
size_t dlen;
|
||||
int len;
|
||||
char path[0]; /* keep this at tail*/
|
||||
};
|
||||
|
||||
void event_enqueue(struct event_t *event);
|
||||
int events_count(void);
|
||||
struct event_t *event_dequeue(void);
|
||||
void init_event_queue(void);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user