From: Victor Julien Date: Tue, 6 Jan 2015 12:20:55 +0000 (+0100) Subject: thread local storage: add to build-info X-Git-Tag: suricata-2.1beta3~64 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=105b4340c2ef9a404f72733aa8ba7b487c3f6ddf;p=thirdparty%2Fsuricata.git thread local storage: add to build-info --- 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" }