0
0
Fork 0
mirror of https://github.com/netdata/netdata.git synced 2025-04-10 16:17:36 +00:00
netdata_netdata/packaging/cmake/config.cmake.h.in
Costa Tsaousis f6141cc4f3
Log to windows ()
* split netdata logger into multiple files - no acctual code changes

* move around some more code

* base for implementing windows events logging

* fix for the last commit

* working logging to windows events, but not pretty yet

* fix compilation on linux

* added scripts for compiling the resource file and importing the manifest

* added validation that the provider is available

* working manifest for ETW (Event Tracing for Windows)

* compile the messages dll with msys tools

* handle wevents configuration

* when starting under clion, do not start as service

* unify conversion to utf16

* fix bug in windows-events.plugin that was incorrectly not processing right the publishers that do not have a UUID

* enable wevents as default logging for all methods, under windows

* log to windows using EventCreate.exe for the messages

* do not log all the fields

* added log-forwarder to spawn-server-windows

* fix last character being cut-off when converting from utf-16

* updated info

* updated any_to_utf16() to be always consistent

* added utf16_to_utf8()

* external plugins inherit windows events

* fix wrong log source

* fix spawn server logs

* log to multiple event log sources

* generate custom messages dll for event viewer - working

* removed debugging code

* cleanup log forwarder entries from the thread, to avoid bad file descriptor in poll()

* .mc and its manifest are automatically generated

* sanitizers should not remove trailing underscores

* use the resources dll for the netdata directory; set the default maxSize to windows events

* do not set customer flag on event ids; use the same naming for channels and providers

* work to unify manifest and resources

* netdata now logs using ETW

* implemented etw and wel logging in netdata

* minor changes

* updated windows installer to install the manifest

* do not install etw if the manifest is not there

* allow loggings to WEL and ETW at the same time

* fix the installer conditions

* fix nsi

* detect ci paths for sys utils

* enable ETW is CI

* better integration of spawn server with logger

* use script to find SDK path

* use auto-discovery of sdk and visual studio

* fix overlapping link.exe with msys; do not escape percentage when it is not followed by a number; added more documentation about windows

* debug info for path

* fixes compilation scripts

* ETW and WEL are always required on Windows

* in progress for supporting full text search queries

* find mvc versions

* improve find-sdk-path.sh

* fix the script once again

* fetch event data for full text search

* fix script again

* fix script, yes again

* fts using event data

* code renames and cleanup for clarity

* update documentation

* full text search switches plugin to load everything synchronously

* full text search using the individual event data fields, without using XML

* close all idle provider handles after 5 mins

* added EventsAPI field

* supported exposing all system fields; started documentation about windows events plugin

* avoid crash because of unitialized memory

* remove debugging

* do not add qualifiers and version when they are zero

* updated docs

* copy the manifest too

* rework on installing manifest and dll

* completed documentation

* work on windows-events sources list

* fix windows installer logic

* removed unecessary include

* added image to documentation
2024-10-15 09:04:59 +03:00

194 lines
5.1 KiB
C

/* This file was generated by CMAKE from config.cmake.h.in */
#define likely(x) __builtin_expect(!!(x), 1)
#define unlikely(x) __builtin_expect(!!(x), 0)
#define __always_unused __attribute__((unused))
#define __maybe_unused __attribute__((unused))
#cmakedefine SIZEOF_VOID_P ${SIZEOF_VOID_P}
// platform
#cmakedefine OS_FREEBSD
#cmakedefine OS_LINUX
#cmakedefine OS_MACOS
#cmakedefine OS_WINDOWS
// checked headers
#cmakedefine HAVE_NETINET_IN_H
#cmakedefine HAVE_RESOLV_H
#cmakedefine HAVE_NETDB_H
#cmakedefine HAVE_SYS_PRCTL_H
#cmakedefine HAVE_SYS_STAT_H
#cmakedefine HAVE_SYS_VFS_H
#cmakedefine HAVE_SYS_STATFS_H
#cmakedefine HAVE_LINUX_MAGIC_H
#cmakedefine HAVE_SYS_MOUNT_H
#cmakedefine HAVE_SYS_STATVFS_H
#cmakedefine HAVE_INTTYPES_H
#cmakedefine HAVE_STDINT_H
#cmakedefine HAVE_SYS_CAPABILITY_H
#cmakedefine HAVE_ARPA_INET_H
#cmakedefine HAVE_NETINET_TCP_H
#cmakedefine HAVE_SYS_IOCTL_H
#cmakedefine HAVE_GRP_H
#cmakedefine HAVE_PWD_H
#cmakedefine HAVE_NET_IF_H
#cmakedefine HAVE_POLL_H
#cmakedefine HAVE_SYSLOG_H
#cmakedefine HAVE_SYS_MMAN_H
#cmakedefine HAVE_SYS_RESOURCE_H
#cmakedefine HAVE_SYS_SOCKET_H
#cmakedefine HAVE_SYS_WAIT_H
#cmakedefine HAVE_SYS_UN_H
#cmakedefine HAVE_SPAWN_H
#cmakedefine HAVE_CAPABILITY
#cmakedefine HAVE_PROTOBUF
#cmakedefine BUNDLED_PROTOBUF
#cmakedefine HAVE_MONGOC
#cmakedefine HAVE_LIBDATACHANNEL
// checked symbols
#cmakedefine MAJOR_IN_SYSMACROS
#cmakedefine MAJOR_IN_MKDEV
#cmakedefine HAVE_CLOCK_GETTIME
#cmakedefine HAVE_STRERROR_R
#cmakedefine HAVE_FINITE
#cmakedefine HAVE_ISFINITE
#cmakedefine HAVE_RECVMMSG
#cmakedefine HAVE_PTHREAD_GETTHREADID_NP
#cmakedefine HAVE_PTHREAD_THREADID_NP
#cmakedefine HAVE_GETTID
#cmakedefine HAVE_WAITID
#cmakedefine HAVE_NICE
#cmakedefine HAVE_GETPRIORITY
#cmakedefine HAVE_SETENV
#cmakedefine HAVE_DLSYM
#cmakedefine HAVE_LIBCURL
#cmakedefine HAVE_BACKTRACE
#cmakedefine HAVE_CLOSE_RANGE
#cmakedefine HAVE_SCHED_GETSCHEDULER
#cmakedefine HAVE_SCHED_SETSCHEDULER
#cmakedefine HAVE_SCHED_GET_PRIORITY_MIN
#cmakedefine HAVE_SCHED_GET_PRIORITY_MAX
#cmakedefine HAVE_SYSTEMD
#cmakedefine HAVE_SD_JOURNAL_OS_ROOT
#cmakedefine HAVE_SD_JOURNAL_OPEN_FILES_FD
#cmakedefine HAVE_SD_JOURNAL_RESTART_FIELDS
#cmakedefine HAVE_SD_JOURNAL_GET_SEQNUM
#cmakedefine ENABLE_SYSTEMD_DBUS
// checked source compilation
#cmakedefine HAVE_PTHREAD_GETNAME_NP
#cmakedefine HAVE_ACCEPT4
#cmakedefine STRERROR_R_CHAR_P
#cmakedefine HAVE_C__GENERIC
#cmakedefine HAVE_C_MALLOPT
#cmakedefine HAVE_SETNS
#cmakedefine HAVE_STRNDUP
#cmakedefine SSL_HAS_PENDING
#cmakedefine HAVE_FUNC_ATTRIBUTE_FORMAT_GNU_PRINTF
#cmakedefine HAVE_FUNC_ATTRIBUTE_FORMAT_PRINTF
#cmakedefine HAVE_FUNC_ATTRIBUTE_MALLOC
#cmakedefine HAVE_FUNC_ATTRIBUTE_NOINLINE
#cmakedefine HAVE_FUNC_ATTRIBUTE_NORETURN
#cmakedefine HAVE_FUNC_ATTRIBUTE_RETURNS_NONNULL
#cmakedefine HAVE_FUNC_ATTRIBUTE_WARN_UNUSED_RESULT
// enabled features
#cmakedefine ENABLE_ML
#cmakedefine ENABLE_EXPORTING_MONGODB
#cmakedefine ENABLE_H2O
#cmakedefine ENABLE_DBENGINE
#cmakedefine ENABLE_LZ4
#cmakedefine ENABLE_ZSTD
#cmakedefine ENABLE_BROTLI
#cmakedefine ENABLE_LOGSMANAGEMENT
#cmakedefine ENABLE_LOGSMANAGEMENT_TESTS
#cmakedefine ENABLE_PROMETHEUS_REMOTE_WRITE
// enabled plugins
#cmakedefine ENABLE_PLUGIN_DEBUGFS
#cmakedefine ENABLE_PLUGIN_APPS
#cmakedefine ENABLE_PLUGIN_FREEIPMI
#cmakedefine ENABLE_PLUGIN_NFACCT
#cmakedefine ENABLE_PLUGIN_XENSTAT
#cmakedefine ENABLE_PLUGIN_PERF
#cmakedefine ENABLE_PLUGIN_SLABINFO
#cmakedefine ENABLE_PLUGIN_CUPS
#cmakedefine ENABLE_PLUGIN_CGROUP_NETWORK
#cmakedefine ENABLE_PLUGIN_EBPF
// enabled sentry
#cmakedefine ENABLE_SENTRY
#cmakedefine NETDATA_SENTRY_ENVIRONMENT "@NETDATA_SENTRY_ENVIRONMENT@"
#cmakedefine NETDATA_SENTRY_DIST "@NETDATA_SENTRY_DIST@"
#cmakedefine NETDATA_SENTRY_DSN "@NETDATA_SENTRY_DSN@"
// enabled bundling
#cmakedefine ENABLE_BUNDLED_JSONC
#cmakedefine ENABLE_BUNDLED_YAML
#cmakedefine ENABLE_BUNDLED_PROTOBUF
// directory paths
#cmakedefine CACHE_DIR "@CACHE_DIR@"
#cmakedefine CONFIG_DIR "@CONFIG_DIR@"
#cmakedefine LIBCONFIG_DIR "@LIBCONFIG_DIR@"
#cmakedefine LOG_DIR "@LOG_DIR@"
#cmakedefine PLUGINS_DIR "@PLUGINS_DIR@"
#cmakedefine WEB_DIR "@WEB_DIR@"
#cmakedefine VARLIB_DIR "@VARLIB_DIR@"
// config command, user and version
#cmakedefine CONFIGURE_COMMAND "@CONFIGURE_COMMAND@"
#cmakedefine NETDATA_USER "@NETDATA_USER@"
#define NETDATA_VERSION_MAJOR "@NETDATA_VERSION_MAJOR@"
#define NETDATA_VERSION_MINOR "@NETDATA_VERSION_MINOR@"
#define NETDATA_VERSION_PATCH "@NETDATA_VERSION_PATCH@"
#define NETDATA_VERSION_TWEAK "@NETDATA_VERSION_TWEAK@"
#define NETDATA_VERSION_DESCR "@NETDATA_VERSION_DESCR@"
#define NETDATA_VERSION "@NETDATA_VERSION_STRING@"
#define ENABLE_JSONC 1
#cmakedefine HAVE_LIBYAML
#cmakedefine HAVE_LIBMNL
#cmakedefine HAVE_WEL
#cmakedefine HAVE_ETW
#cmakedefine RUN_UNDER_CLION
// /* Enable GNU extensions on systems that have them. */
// #ifndef _GNU_SOURCE
// # define _GNU_SOURCE 1
// #endif
// #cmakedefine HAVE_CRYPTO
// #cmakedefine ENABLE_PROMETHEUS_REMOTE_WRITE
// /* NSA spy stuff */
// #cmakedefine01 HAVE_X509_VERIFY_PARAM_set1_host
#define HAVE_CRYPTO
#define HAVE_X509_VERIFY_PARAM_set1_host 1
/* Enable GNU extensions on systems that have them. */
#ifndef _GNU_SOURCE
#define _GNU_SOURCE 1
#endif