• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #ifndef STRACE_XLAT_H
2 #define STRACE_XLAT_H
3 
4 # include <stdint.h>
5 
6 struct xlat {
7 	uint64_t val;
8 	const char *str;
9 };
10 
11 # define XLAT(val)			{ (unsigned)(val), #val }
12 # define XLAT_PAIR(val, str)		{ (unsigned)(val), str  }
13 # define XLAT_TYPE(type, val)		{     (type)(val), #val }
14 # define XLAT_TYPE_PAIR(type, val, str)	{     (type)(val), str  }
15 # define XLAT_END			{		0, 0    }
16 
17 #endif /* !STRACE_XLAT_H */
18