Only thread-t was added to satisfy THREAD_LOCAL but the rest was OK.
/*
- * include/types/trace.h
+ * include/haproxy/trace-t.h
* This file provides definitions for runtime tracing
*
* Copyright (C) 2000-2019 Willy Tarreau - w@1wt.eu
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#ifndef _TYPES_TRACE_H
-#define _TYPES_TRACE_H
+#ifndef _HAPROXY_TRACE_T_H
+#define _HAPROXY_TRACE_T_H
-#include <haproxy/api-t.h>
#include <import/ist.h>
#include <haproxy/list-t.h>
#include <haproxy/sink-t.h>
+#include <haproxy/api-t.h>
/* the macros below define an optional type for each of the 4 args passed to
* the trace() call. When such a type is set, the caller commits to exclusively
const void *lockon_ptr; // what to lockon when lockon is set
};
-#endif /* _TYPES_TRACE_H */
+#endif /* _HAPROXY_TRACE_T_H */
/*
* Local variables:
/*
- * include/proto/trace.h
+ * include/haproxy/trace.h
* This file provides functions for runtime tracing
*
* Copyright (C) 2000-2019 Willy Tarreau - w@1wt.eu
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#ifndef _PROTO_TRACE_H
-#define _PROTO_TRACE_H
+#ifndef _HAPROXY_TRACE_H
+#define _HAPROXY_TRACE_H
-#include <haproxy/api.h>
-#include <haproxy/tools.h>
#include <import/ist.h>
+#include <haproxy/api.h>
#include <haproxy/list.h>
-#include <types/log.h>
#include <haproxy/sink-t.h>
-#include <types/trace.h>
+#include <haproxy/thread-t.h>
+#include <haproxy/tools.h>
+#include <haproxy/trace-t.h>
+#include <types/log.h>
/* Make a string from the location of the trace producer as "file:line" */
#define TRC_LOC _TRC_LOC(__FILE__, __LINE__)
__trace(level, mask, src, where, func, a1, a2, a3, a4, cb, msg);
}
-#endif /* _PROTO_TRACE_H */
+#endif /* _HAPROXY_TRACE_H */
/*
* Local variables:
#include <proto/queue.h>
#include <haproxy/stick_table.h>
#include <haproxy/task.h>
-#include <proto/trace.h>
+#include <haproxy/trace.h>
extern struct trace_source trace_strm;
#include <proto/ssl_sock.h>
#include <proto/stream.h>
#include <proto/stream_interface.h>
-#include <proto/trace.h>
+#include <haproxy/trace.h>
/* FCGI Connection flags (32 bits) */
#define FCGI_CF_NONE 0x00000000
#include <haproxy/session-t.h>
#include <proto/stream.h>
#include <proto/stream_interface.h>
-#include <proto/trace.h>
+#include <haproxy/trace.h>
/*
* H1 Connection flags (32 bits)
#include <haproxy/htx.h>
#include <haproxy/net_helper.h>
#include <haproxy/session-t.h>
-#include <proto/trace.h>
+#include <haproxy/trace.h>
#include <proto/stream.h>
#include <proto/stream_interface.h>
#include <import/eb32tree.h>
#include <proto/cli.h>
#include <proto/log.h>
#include <haproxy/sink.h>
-#include <proto/trace.h>
+#include <haproxy/trace.h>
struct list trace_sources = LIST_HEAD_INIT(trace_sources);
THREAD_LOCAL struct buffer trace_buf = { };