xref: /qemu/stubs/replay-tools.c (revision 8f9abdf5)
1 #include "qemu/osdep.h"
2 #include "sysemu/replay.h"
3 #include "block/aio.h"
4 
replay_events_enabled(void)5 bool replay_events_enabled(void)
6 {
7     return false;
8 }
9 
replay_save_clock(ReplayClockKind kind,int64_t clock,int64_t raw_icount)10 int64_t replay_save_clock(ReplayClockKind kind,
11                           int64_t clock, int64_t raw_icount)
12 {
13     abort();
14     return 0;
15 }
16 
replay_read_clock(ReplayClockKind kind,int64_t raw_icount)17 int64_t replay_read_clock(ReplayClockKind kind, int64_t raw_icount)
18 {
19     abort();
20     return 0;
21 }
22 
replay_get_current_icount(void)23 uint64_t replay_get_current_icount(void)
24 {
25     return 0;
26 }
27 
replay_bh_schedule_event(QEMUBH * bh)28 void replay_bh_schedule_event(QEMUBH *bh)
29 {
30     qemu_bh_schedule(bh);
31 }
32 
replay_bh_schedule_oneshot_event(AioContext * ctx,QEMUBHFunc * cb,void * opaque)33 void replay_bh_schedule_oneshot_event(AioContext *ctx,
34      QEMUBHFunc *cb, void *opaque)
35 {
36     aio_bh_schedule_oneshot(ctx, cb, opaque);
37 }
38 
replay_checkpoint(ReplayCheckpoint checkpoint)39 bool replay_checkpoint(ReplayCheckpoint checkpoint)
40 {
41     return true;
42 }
43 
replay_mutex_lock(void)44 void replay_mutex_lock(void)
45 {
46 }
47 
replay_mutex_unlock(void)48 void replay_mutex_unlock(void)
49 {
50 }
51 
replay_register_char_driver(struct Chardev * chr)52 void replay_register_char_driver(struct Chardev *chr)
53 {
54 }
55 
replay_chr_be_write(struct Chardev * s,const uint8_t * buf,int len)56 void replay_chr_be_write(struct Chardev *s, const uint8_t *buf, int len)
57 {
58     abort();
59 }
60 
replay_char_write_event_save(int res,int offset)61 void replay_char_write_event_save(int res, int offset)
62 {
63     abort();
64 }
65 
replay_char_write_event_load(int * res,int * offset)66 void replay_char_write_event_load(int *res, int *offset)
67 {
68     abort();
69 }
70 
replay_char_read_all_load(uint8_t * buf)71 int replay_char_read_all_load(uint8_t *buf)
72 {
73     abort();
74 }
75 
replay_char_read_all_save_error(int res)76 void replay_char_read_all_save_error(int res)
77 {
78     abort();
79 }
80 
replay_char_read_all_save_buf(uint8_t * buf,int offset)81 void replay_char_read_all_save_buf(uint8_t *buf, int offset)
82 {
83     abort();
84 }
85