1 /* SPDX-License-Identifier: GPL-2.0-or-later 2 * Copyright (c) 2016 Cyril Hrubis <chrubis@suse.cz> 3 */ 4 5 #ifndef TST_CHECKPOINT__ 6 #define TST_CHECKPOINT__ 7 8 #include "tst_checkpoint_fn.h" 9 10 #define TST_CHECKPOINT_WAIT(id) \ 11 tst_safe_checkpoint_wait(__FILE__, __LINE__, NULL, id, 0); 12 13 #define TST_CHECKPOINT_WAIT2(id, msec_timeout) \ 14 tst_safe_checkpoint_wait(__FILE__, __LINE__, NULL, id, msec_timeout); 15 16 #define TST_CHECKPOINT_WAKE(id) \ 17 tst_safe_checkpoint_wake(__FILE__, __LINE__, NULL, id, 1); 18 19 #define TST_CHECKPOINT_WAKE2(id, nr_wake) \ 20 tst_safe_checkpoint_wake(__FILE__, __LINE__, NULL, id, nr_wake); 21 22 #define TST_CHECKPOINT_WAKE_AND_WAIT(id) \ 23 tst_safe_checkpoint_wake(__FILE__, __LINE__, NULL, id, 1); \ 24 tst_safe_checkpoint_wait(__FILE__, __LINE__, NULL, id, 0); 25 26 extern const char *tst_ipc_path; 27 28 #endif /* TST_CHECKPOINT__ */ 29