From 105b4340c2ef9a404f72733aa8ba7b487c3f6ddf Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Tue, 6 Jan 2015 13:20:55 +0100 Subject: [PATCH] thread local storage: add to build-info --- src/suricata.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/suricata.c b/src/suricata.c index 25dab7e149..54ec61ec4a 100644 --- a/src/suricata.c +++ b/src/suricata.c @@ -641,6 +641,7 @@ void SCPrintBuildInfo(void) char *bits = "-bits"; char *endian = "-endian"; char features[2048] = ""; + char *tls = "pthread key"; #ifdef REVISION printf("This is %s version %s (rev %s)\n", PROG_NAME, PROG_VER, xstr(REVISION)); @@ -717,6 +718,9 @@ void SCPrintBuildInfo(void) #endif #ifdef PROFILE_LOCKING strlcat(features, "PROFILE_LOCKING ", sizeof(features)); +#endif +#ifdef TLS + strlcat(features, "TLS ", sizeof(features)); #endif if (strlen(features) == 0) { strlcat(features, "none", sizeof(features)); @@ -798,10 +802,14 @@ void SCPrintBuildInfo(void) #ifdef CLS printf("L1 cache line size (CLS)=%d\n", CLS); #endif +#ifdef TLS + tls = "__thread"; +#endif + printf("thread local storage method: %s\n", tls); printf("compiled with %s, linked against %s\n", HTP_VERSION_STRING_FULL, htp_get_version()); - + printf("\n"); #include "build-info.h" }