diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-05 11:19:16 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-05 12:07:37 +0000 |
commit | b485aab7e71c1625cfc27e0f92c9509f42378458 (patch) | |
tree | ae9abe108601079d1679194de237c9a435ae5b55 /src/libnetdata/gorilla | |
parent | Adding upstream version 1.44.3. (diff) | |
download | netdata-b485aab7e71c1625cfc27e0f92c9509f42378458.tar.xz netdata-b485aab7e71c1625cfc27e0f92c9509f42378458.zip |
Adding upstream version 1.45.3+dfsg.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | src/libnetdata/gorilla/README.md (renamed from libnetdata/gorilla/README.md) | 0 | ||||
-rwxr-xr-x | src/libnetdata/gorilla/benchmark.sh (renamed from libnetdata/gorilla/benchmark.sh) | 0 | ||||
-rwxr-xr-x | src/libnetdata/gorilla/fuzzer.sh (renamed from libnetdata/gorilla/fuzzer.sh) | 0 | ||||
-rw-r--r-- | src/libnetdata/gorilla/gorilla.cc (renamed from libnetdata/gorilla/gorilla.cc) | 4 | ||||
-rw-r--r-- | src/libnetdata/gorilla/gorilla.h (renamed from libnetdata/gorilla/gorilla.h) | 4 |
5 files changed, 4 insertions, 4 deletions
diff --git a/libnetdata/gorilla/README.md b/src/libnetdata/gorilla/README.md index dc3718d13..dc3718d13 100644 --- a/libnetdata/gorilla/README.md +++ b/src/libnetdata/gorilla/README.md diff --git a/libnetdata/gorilla/benchmark.sh b/src/libnetdata/gorilla/benchmark.sh index a5d111435..a5d111435 100755 --- a/libnetdata/gorilla/benchmark.sh +++ b/src/libnetdata/gorilla/benchmark.sh diff --git a/libnetdata/gorilla/fuzzer.sh b/src/libnetdata/gorilla/fuzzer.sh index 19098a615..19098a615 100755 --- a/libnetdata/gorilla/fuzzer.sh +++ b/src/libnetdata/gorilla/fuzzer.sh diff --git a/libnetdata/gorilla/gorilla.cc b/src/libnetdata/gorilla/gorilla.cc index e6138ce38..c76018365 100644 --- a/libnetdata/gorilla/gorilla.cc +++ b/src/libnetdata/gorilla/gorilla.cc @@ -212,7 +212,7 @@ bool gorilla_writer_serialize(const gorilla_writer_t *gw, uint8_t *dst, uint32_t do { const gorilla_buffer_t *next_gbuf = curr_gbuf->header.next; - size_t bytes = GORILLA_BUFFER_SIZE; + size_t bytes = RRDENG_GORILLA_32BIT_BUFFER_SIZE; if (bytes > dst_size) return false; @@ -232,7 +232,7 @@ uint32_t gorilla_buffer_patch(gorilla_buffer_t *gbuf) { while (curr_gbuf->header.next) { uint32_t *buf = reinterpret_cast<uint32_t *>(gbuf); - gbuf = reinterpret_cast<gorilla_buffer_t *>(&buf[GORILLA_BUFFER_SLOTS]); + gbuf = reinterpret_cast<gorilla_buffer_t *>(&buf[RRDENG_GORILLA_32BIT_BUFFER_SLOTS]); assert(((uintptr_t) (gbuf) % sizeof(uintptr_t)) == 0 && "Gorilla buffer not aligned to uintptr_t"); diff --git a/libnetdata/gorilla/gorilla.h b/src/libnetdata/gorilla/gorilla.h index d57c07cf0..7975d85ee 100644 --- a/libnetdata/gorilla/gorilla.h +++ b/src/libnetdata/gorilla/gorilla.h @@ -67,8 +67,8 @@ uint32_t gorilla_buffer_patch(gorilla_buffer_t *buf); gorilla_reader_t gorilla_reader_init(gorilla_buffer_t *buf); bool gorilla_reader_read(gorilla_reader_t *gr, uint32_t *number); -#define GORILLA_BUFFER_SLOTS 128 -#define GORILLA_BUFFER_SIZE (GORILLA_BUFFER_SLOTS * sizeof(uint32_t)) +#define RRDENG_GORILLA_32BIT_BUFFER_SLOTS 128 +#define RRDENG_GORILLA_32BIT_BUFFER_SIZE (RRDENG_GORILLA_32BIT_BUFFER_SLOTS * sizeof(uint32_t)) #ifdef __cplusplus } |