/usr/include/fxt.h is in liblitl-dev 0.1.8-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 | /* -*- c-file-style: "GNU" -*- */
/*
* Copyright © Télécom SudParis.
* See COPYING in top-level directory.
*/
/**
* \file fxt.h
* \brief fxt Provides a mapping of the LiTL APIs into the FxT APIs for easier
* usage of LiTL in FxT-related applications
*
* \authors
* Developers are: \n
* Roman Iakymchuk -- roman.iakymchuk@telecom-sudparis.eu \n
* Francois Trahay -- francois.trahay@telecom-sudparis.eu \n
*/
#ifndef FXT_H_
#define FXT_H_
#include <string.h>
#include <assert.h>
#include "litl_types.h"
#include "litl_write.h"
#include "litl_read.h"
typedef litl_write_trace_t* fxt_t;
static fxt_t __trace;
/* BEGIN -- Recording functions */
#define fut_setup(buffer_size, keymask, threadid) do { \
__trace = litl_write_init_trace(buffer_size); \
litl_write_pause_recording(__trace); \
}while(0)
// finalizing traces
#define fut_endup(filename) do { \
litl_write_finalize_trace(__trace); \
}while(0)
#define fut_done(void) do { \
} while(0)
#define fut_set_filename(filename) do { \
litl_write_set_filename(__trace, filename); \
litl_write_resume_recording(__trace); \
} while(0)
#define enable_fut_flush() do { \
litl_write_buffer_flush_on(__trace); \
} while(0)
#define disable_fut_flush() do { \
litl_write_buffer_flush_off(__trace); \
} while(0)
#define fut_enable_tid_logging() do { \
litl_write_tid_recording_on(__trace); \
} while(0)
#define fut_disable_tid_logging() do { \
litl_write_tid_recording_off(__trace); \
} while(0)
/* END -- Recording functions */
/* BEGIN -- Events */
#define FUT_DO_PROBE0(code) \
do { \
litl_t*retval; \
litl_write_probe_pack_0(__trace, code, retval); \
assert(retval != NULL); \
} while(0)
#define FUT_DO_PROBE1(code, arg1) \
do { \
litl_t* retval; \
litl_write_probe_pack_1(__trace, code, arg1, retval); \
assert(retval != NULL); \
}while(0)
#define FUT_DO_PROBE2(code, arg1, arg2) \
do { \
litl_t *retval; \
litl_write_probe_pack_2(__trace, code, arg1, arg2, retval); \
assert(retval != NULL); \
}while(0)
#define FUT_DO_PROBE3(code, arg1, arg2, arg3) \
do { \
litl_t *retval; \
litl_write_probe_pack_3(__trace, code, arg1, arg2, arg3, retval); \
assert(retval != NULL); \
}while(0)
#define FUT_DO_PROBE4(code, arg1, arg2, arg3, arg4) \
do { \
litl_t *retval; \
litl_write_probe_pack_4(__trace, code, arg1, arg2, arg3, arg4, retval); \
assert(retval != NULL); \
}while(0)
#define FUT_DO_PROBE5(code, arg1, arg2, arg3, arg4, arg5) \
do { \
litl_t *retval; \
litl_write_probe_pack_5(__trace, code, arg1, arg2, arg3, arg4, arg5, retval); \
assert(retval != NULL); \
}while(0)
#define FUT_DO_PROBE6(code, arg1, arg2, arg3, arg4, arg5, arg6) \
do { \
litl_t *retval; \
litl_write_probe_pack_6(__trace, code, arg1, arg2, arg3, arg4, arg5, arg6, retval); \
assert(retval != NULL); \
}while(0)
#define FUT_DO_PROBE(code, ...) litl_write_probe_pack_0(__trace, code);
#define FUT_DO_PROBESTR(code, str) litl_write_probe_raw(__trace, code, strlen(str), str)
/* END -- Events */
#endif /* FXT_H_ */
|