blob: 0cc972cadc554639b64021b385af36e15e79acd5 (
plain)
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
|
#ifndef _TRACE_MSG_H_
#define _TRACE_MSG_H_
#include <stdbool.h>
#define UDP_MAX_PACKET (65536 - 20)
#define V2_MAGIC "677768\0"
#define V2_CPU "-1V2"
#define V1_PROTOCOL 1
#define V2_PROTOCOL 2
/* for both client and server */
extern bool use_tcp;
extern int cpu_count;
/* for client */
extern unsigned int page_size;
extern int *client_ports;
extern bool send_metadata;
/* for server */
extern bool done;
void plog(const char *fmt, ...);
void pdie(const char *fmt, ...);
#endif /* _TRACE_MSG_H_ */
|