mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-08 20:29:40 +00:00
tools: acrn-crashlog: event queue operations for acrnprobe
There is a global queue to receive all events detected. Genarally, events are enqueued in channel, and dequeued in event handler. Signed-off-by: Liu Xinwu <xinwu.liu@intel.com> Reviewed-by: Zhang Yanmin <yanmin.zhang@intel.com> Reviewed-by: Liu Chuansheng <chuansheng.liu@intel.com> Reviewed-by: Zhao Yakui <yakui.zhao@intel.com> Reviewed-by: Geoffroy Van Cutsem <geoffroy.vancutsem@intel.com> Acked-by: Eddie Dong <Eddie.dong@intel.com>
This commit is contained in:
@@ -33,6 +33,9 @@ struct event_t {
|
||||
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