mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-25 02:58:54 +00:00
These are atomic_add-s on shmalloc-ed stats. Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
37 lines
504 B
C
37 lines
504 B
C
#ifndef __CR_STATS_H__
|
|
#define __CR_STATS_H__
|
|
void show_stats(int fd);
|
|
|
|
enum {
|
|
TIME_FREEZING,
|
|
TIME_FROZEN,
|
|
TIME_MEMDUMP,
|
|
TIME_MEMWRITE,
|
|
|
|
DUMP_TIME_NR_STATS,
|
|
};
|
|
|
|
void timing_start(int t);
|
|
void timing_stop(int t);
|
|
|
|
enum {
|
|
CNT_PAGES_SCANNED,
|
|
CNT_PAGES_SKIPPED_PARENT,
|
|
CNT_PAGES_WRITTEN,
|
|
|
|
DUMP_CNT_NR_STATS,
|
|
};
|
|
|
|
enum {
|
|
RESTORE_CNT_NR_STATS = 1,
|
|
};
|
|
|
|
void cnt_add(int c, unsigned long val);
|
|
|
|
#define DUMP_STATS 1
|
|
#define RESTORE_STATS 2
|
|
|
|
int init_stats(int what);
|
|
void write_stats(int what);
|
|
|
|
#endif
|