blob: c8073b83ae16928620adcaa41cb4a445e50c5241 [file] [log] [blame]
#ifndef STRACE_XLAT_H
#define STRACE_XLAT_H
# include <stdint.h>
struct xlat {
uint64_t val;
const char *str;
};
# define XLAT(val) { (unsigned)(val), #val }
# define XLAT_PAIR(val, str) { (unsigned)(val), str }
# define XLAT_TYPE(type, val) { (type)(val), #val }
# define XLAT_TYPE_PAIR(type, val, str) { (type)(val), str }
# define XLAT_END { 0, 0 }
#endif /* #ifndef STRACE_XLAT_H */