| 1 | // SPDX-License-Identifier: GPL-3.0-or-later |
| 2 | |
| 3 | #ifndef NETDATA_PULSE_H |
| 4 | #define NETDATA_PULSE_H 1 |
| 5 | |
| 6 | #include "database/rrd.h" |
| 7 | |
| 8 | extern bool pulse_enabled; |
| 9 | extern bool pulse_extended_enabled; |
| 10 | |
| 11 | #include "pulse-http-api.h" |
| 12 | #include "pulse-queries.h" |
| 13 | #include "pulse-ingestion.h" |
| 14 | #include "pulse-ml.h" |
| 15 | #include "pulse-gorilla.h" |
| 16 | #include "pulse-daemon.h" |
| 17 | #include "pulse-daemon-memory.h" |
| 18 | #include "pulse-sqlite3.h" |
| 19 | #include "pulse-db-dbengine.h" |
| 20 | #include "pulse-db-dbengine-retention.h" |
| 21 | #include "pulse-db-rrd.h" |
| 22 | #include "pulse-string.h" |
| 23 | #include "pulse-heartbeat.h" |
| 24 | #include "pulse-dictionary.h" |
| 25 | #include "pulse-workers.h" |
| 26 | #include "pulse-trace-allocations.h" |
| 27 | #include "pulse-aral.h" |
| 28 | #include "pulse-network.h" |
| 29 | #include "pulse-parents.h" |
| 30 | |
| 31 | void pulse_thread_main(void *ptr); |
| 32 | void pulse_thread_sqlite3_main(void *ptr); |
| 33 | void pulse_thread_workers_main(void *ptr); |
| 34 | void pulse_thread_memory_extended_main(void *ptr); |
| 35 | |
| 36 | #define p1_add_fetch(variable, value) __atomic_add_fetch(variable, value, __ATOMIC_RELAXED) |
| 37 | #define p1_sub_fetch(variable, value) __atomic_sub_fetch(variable, value, __ATOMIC_RELAXED) |
| 38 | |
| 39 | #define p1_fetch_add(variable, value) __atomic_fetch_add(variable, value, __ATOMIC_RELAXED) |
| 40 | #define p1_fetch_sub(variable, value) __atomic_fetch_sub(variable, value, __ATOMIC_RELAXED) |
| 41 | |
| 42 | #define p1_store(variable, value) __atomic_store_n(variable, value, __ATOMIC_RELAXED) |
| 43 | #define p1_load(variable) __atomic_load_n(variable, value, __ATOMIC_RELAXED) |
| 44 | |
| 45 | #define p2_add_fetch(variable, value) __atomic_add_fetch(variable, value, __ATOMIC_RELAXED) |
| 46 | #define p2_sub_fetch(variable, value) __atomic_sub_fetch(variable, value, __ATOMIC_RELAXED) |
| 47 | |
| 48 | #define p2_fetch_add(variable, value) __atomic_fetch_add(variable, value, __ATOMIC_RELAXED) |
| 49 | #define p2_fetch_sub(variable, value) __atomic_fetch_sub(variable, value, __ATOMIC_RELAXED) |
| 50 | |
| 51 | #define p2_store(variable, value) __atomic_store_n(variable, value, __ATOMIC_RELAXED) |
| 52 | #define p2_load(variable) __atomic_load_n(variable, value, __ATOMIC_RELAXED) |
| 53 | |
| 54 | #endif /* NETDATA_PULSE_H */ |