Skip to content

Commit dd1b038

Browse files
authored
Revert "Release 4.5.0"
1 parent 00d5ccd commit dd1b038

File tree

174 files changed

+3208
-2642
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

174 files changed

+3208
-2642
lines changed

.github/actions/build-cpp/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ WORKDIR /pktvisor-src
1515
RUN apt-get update && \
1616
apt-get upgrade --yes --force-yes && \
1717
apt-get install --yes --force-yes --no-install-recommends ${BUILD_DEPS} && \
18-
pip3 install 'conan==1.61.0' --force-reinstall
18+
pip3 install 'conan==1.59.0' --force-reinstall
1919

2020
RUN chmod +x /entrypoint.sh
2121

.github/actions/build-go/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM golang:bullseye
1+
FROM golang:latest
22

33
LABEL author="Everton Haise Taques <[email protected]>"
44
LABEL maintainer="netboxlabs"

.github/workflows/build-develop.yml

Lines changed: 42 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -24,58 +24,56 @@ jobs:
2424
# cross-platform coverage.
2525
# See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
2626

27-
runs-on: macos-latest
27+
runs-on: macos-11
2828
steps:
2929
- uses: actions/checkout@v3
30-
30+
- name: install gcc 12.2
31+
run: |
32+
gcc --version
33+
brew search gcc
34+
brew install gcc@12
35+
gcc --version
36+
3137
- name: Create Build Environment
3238
# Some projects don't allow in-source building, so create a separate build directory
3339
# We'll use this as our working directory for all subsequent commands
3440
run: cmake -E make_directory ${{github.workspace}}/build
3541

36-
- name: Python Setup
37-
uses: actions/setup-python@v4
38-
with:
39-
python-version: '3.10'
40-
4142
- name: Get Conan
4243
id: conan
4344
uses: turtlebrowser/get-conan@main
4445
with:
45-
version: 1.61.0
46-
47-
- name: Setup OSX Environment
48-
run: echo "SDKROOT=$(xcrun --sdk macosx --show-sdk-path)" >> $GITHUB_ENV
49-
50-
- name: Setup Conan Cache
51-
uses: actions/cache@v3
52-
with:
53-
path: ${{github.workspace}}/build/conan_home/
54-
key: conan-${{ runner.os }}-${{ hashFiles('conanfile.txt', '*/conanfile.txt') }}
55-
restore-keys: conan-${{ runner.os }}-
56-
57-
- name: Configure CMake
58-
# Use a bash shell so we can use the same syntax for environment variable
59-
# access regardless of the host operating system
60-
shell: bash
61-
working-directory: ${{github.workspace}}/build
62-
# Note the current convention is to use the -S and -B options here to specify source
63-
# and build directories, but this is only available with CMake 3.13 and higher.
64-
# The CMake binaries on the Github Actions machines are (as of this writing) 3.12
65-
run: PKG_CONFIG_PATH=${{github.workspace}}/local/lib/pkgconfig cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE
66-
67-
- name: Build
68-
working-directory: ${{github.workspace}}/build
69-
shell: bash
70-
# Execute the build. You can specify a specific target with "--target <NAME>"
71-
run: cmake --build . --config $BUILD_TYPE -- -j 2
72-
73-
- name: Test
74-
working-directory: ${{github.workspace}}/build
75-
shell: bash
76-
# Execute tests defined by the CMake configuration.
77-
# See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
78-
run: ctest -C $BUILD_TYPE
46+
version: 1.59.0
47+
48+
# - name: Setup Conan Cache
49+
# uses: actions/cache@v3
50+
# with:
51+
# path: ${{github.workspace}}/build/conan_home/
52+
# key: conan-${{ runner.os }}-${{ hashFiles('conanfile.txt', '*/conanfile.txt') }}
53+
# restore-keys: conan-${{ runner.os }}-
54+
55+
# - name: Configure CMake
56+
# # Use a bash shell so we can use the same syntax for environment variable
57+
# # access regardless of the host operating system
58+
# shell: bash
59+
# working-directory: ${{github.workspace}}/build
60+
# # Note the current convention is to use the -S and -B options here to specify source
61+
# # and build directories, but this is only available with CMake 3.13 and higher.
62+
# # The CMake binaries on the Github Actions machines are (as of this writing) 3.12
63+
# run: PKG_CONFIG_PATH=${{github.workspace}}/local/lib/pkgconfig cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE
64+
65+
# - name: Build
66+
# working-directory: ${{github.workspace}}/build
67+
# shell: bash
68+
# # Execute the build. You can specify a specific target with "--target <NAME>"
69+
# run: cmake --build . --config $BUILD_TYPE -- -j 2
70+
71+
# - name: Test
72+
# working-directory: ${{github.workspace}}/build
73+
# shell: bash
74+
# # Execute tests defined by the CMake configuration.
75+
# # See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
76+
# run: ctest -C $BUILD_TYPE
7977

8078
unit-tests-linux:
8179
# The CMake configure and build commands are platform agnostic and should work equally
@@ -101,7 +99,7 @@ jobs:
10199
id: conan
102100
uses: turtlebrowser/get-conan@main
103101
with:
104-
version: 1.61.0
102+
version: 1.59.0
105103

106104
- name: linux package install
107105
run: |
@@ -168,7 +166,7 @@ jobs:
168166
id: conan
169167
uses: turtlebrowser/get-conan@main
170168
with:
171-
version: 1.61.0
169+
version: 1.59.0
172170

173171
- name: Remove libpcap from conanfile
174172
shell: bash
@@ -398,7 +396,7 @@ jobs:
398396
id: conan
399397
uses: turtlebrowser/get-conan@main
400398
with:
401-
version: 1.61.0
399+
version: 1.59.0
402400

403401
- name: Configure CMake to generate VERSION
404402
shell: bash
@@ -850,7 +848,6 @@ jobs:
850848
with:
851849
context: "."
852850
file: "./Dockerfile"
853-
goarch: "arm64"
854851

855852
- name: Debug artifacts
856853
run: ls -lha .

.github/workflows/build-release.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
id: conan
3333
uses: turtlebrowser/get-conan@main
3434
with:
35-
version: 1.61.0
35+
version: 1.59.0
3636

3737
- name: Setup Conan Cache
3838
uses: actions/cache@v3
@@ -84,7 +84,7 @@ jobs:
8484
id: conan
8585
uses: turtlebrowser/get-conan@main
8686
with:
87-
version: 1.61.0
87+
version: 1.59.0
8888

8989
- name: Configure CMake to generate VERSION
9090
shell: bash
@@ -134,7 +134,7 @@ jobs:
134134
id: conan
135135
uses: turtlebrowser/get-conan@main
136136
with:
137-
version: 1.61.0
137+
version: 1.59.0
138138

139139
- name: Configure CMake to generate VERSION
140140
shell: bash
@@ -279,7 +279,7 @@ jobs:
279279
id: conan
280280
uses: turtlebrowser/get-conan@main
281281
with:
282-
version: 1.61.0
282+
version: 1.59.0
283283

284284
- name: Remove libpcap from conanfile
285285
shell: bash
@@ -423,7 +423,6 @@ jobs:
423423
uses: ./.github/actions/build-go
424424
with:
425425
context: "."
426-
goarch: arm64
427426
file: "./Dockerfile"
428427

429428
- name: Debug artifacts

.github/workflows/build_cross.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ jobs:
6969
curl -L "${{matrix.toolchain}}" | tar -C toolchain -xz --strip-components=1
7070
7171
- name: Install Conan
72-
run: pip install --no-cache-dir 'conan==1.61.0' --force-reinstall
72+
run: pip install --no-cache-dir 'conan==1.59.0' --force-reinstall
7373

7474
- name: Create Conan configuration
7575
run: |

.github/workflows/build_debug.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
id: conan
3434
uses: turtlebrowser/get-conan@main
3535
with:
36-
version: 1.61.0
36+
version: 1.59.0
3737

3838
- name: Setup Conan Cache
3939
uses: actions/cache@v3

.github/workflows/code-ql.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ jobs:
6060
- run: |
6161
# Run Build - set up dependencies, env vars, compile, and make test
6262
#install conan
63-
pip install --no-cache-dir 'conan==1.61.0' --force-reinstall
63+
pip install --no-cache-dir 'conan==1.59.0' --force-reinstall
6464
# create conan config
6565
CONAN_V2_MODE=1 conan config init
6666
conan config set general.revisions_enabled=1

.gitignore

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,3 @@ docs/internals/html
1010
appimage/*.AppImage
1111
/test-config*.yaml
1212
localconfig/
13-
.cache/
14-
.vscode/
15-
build/

3rd/datasketches/common/CMakeLists.txt

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,4 @@ target_sources(common
3737
${CMAKE_CURRENT_SOURCE_DIR}/include/conditional_back_inserter.hpp
3838
${CMAKE_CURRENT_SOURCE_DIR}/include/conditional_forward.hpp
3939
${CMAKE_CURRENT_SOURCE_DIR}/include/ceiling_power_of_2.hpp
40-
${CMAKE_CURRENT_SOURCE_DIR}/include/kolmogorov_smirnov.hpp
41-
${CMAKE_CURRENT_SOURCE_DIR}/include/kolmogorov_smirnov_impl.hpp
42-
${CMAKE_CURRENT_SOURCE_DIR}/include/quantiles_sorted_view.hpp
43-
${CMAKE_CURRENT_SOURCE_DIR}/include/quantiles_sorted_view_impl.hpp
44-
${CMAKE_CURRENT_SOURCE_DIR}/include/version.hpp.in
45-
)
40+
)

3rd/datasketches/common/include/MurmurHash3.h

Lines changed: 27 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -29,30 +29,37 @@ typedef unsigned char uint8_t;
2929
typedef unsigned int uint32_t;
3030
typedef unsigned __int64 uint64_t;
3131

32-
#define MURMUR3_FORCE_INLINE __forceinline
32+
#define FORCE_INLINE __forceinline
3333

3434
#include <stdlib.h>
3535

36-
#define MURMUR3_ROTL64(x,y) _rotl64(x,y)
36+
#define ROTL32(x,y) _rotl(x,y)
37+
#define ROTL64(x,y) _rotl64(x,y)
3738

38-
#define MURMUR3_BIG_CONSTANT(x) (x)
39+
#define BIG_CONSTANT(x) (x)
3940

4041
// Other compilers
4142

4243
#else // defined(_MSC_VER)
4344

4445
#include <stdint.h>
4546

46-
#define MURMUR3_FORCE_INLINE inline __attribute__((always_inline))
47+
#define FORCE_INLINE inline __attribute__((always_inline))
48+
49+
inline uint32_t rotl32 ( uint32_t x, int8_t r )
50+
{
51+
return (x << r) | (x >> (32 - r));
52+
}
4753

4854
inline uint64_t rotl64 ( uint64_t x, int8_t r )
4955
{
5056
return (x << r) | (x >> (64 - r));
5157
}
5258

53-
#define MURMUR3_ROTL64(x,y) rotl64(x,y)
59+
#define ROTL32(x,y) rotl32(x,y)
60+
#define ROTL64(x,y) rotl64(x,y)
5461

55-
#define MURMUR3_BIG_CONSTANT(x) (x##LLU)
62+
#define BIG_CONSTANT(x) (x##LLU)
5663

5764
#endif // !defined(_MSC_VER)
5865

@@ -71,7 +78,7 @@ typedef struct {
7178
// Block read - if your platform needs to do endian-swapping or can only
7279
// handle aligned reads, do the conversion here
7380

74-
MURMUR3_FORCE_INLINE uint64_t getblock64 ( const uint64_t * p, size_t i )
81+
FORCE_INLINE uint64_t getblock64 ( const uint64_t * p, size_t i )
7582
{
7683
uint64_t res;
7784
memcpy(&res, p + i, sizeof(res));
@@ -81,21 +88,20 @@ MURMUR3_FORCE_INLINE uint64_t getblock64 ( const uint64_t * p, size_t i )
8188
//-----------------------------------------------------------------------------
8289
// Finalization mix - force all bits of a hash block to avalanche
8390

84-
MURMUR3_FORCE_INLINE uint64_t fmix64 ( uint64_t k )
91+
FORCE_INLINE uint64_t fmix64 ( uint64_t k )
8592
{
8693
k ^= k >> 33;
87-
k *= MURMUR3_BIG_CONSTANT(0xff51afd7ed558ccd);
94+
k *= BIG_CONSTANT(0xff51afd7ed558ccd);
8895
k ^= k >> 33;
89-
k *= MURMUR3_BIG_CONSTANT(0xc4ceb9fe1a85ec53);
96+
k *= BIG_CONSTANT(0xc4ceb9fe1a85ec53);
9097
k ^= k >> 33;
9198

9299
return k;
93100
}
94101

95-
MURMUR3_FORCE_INLINE void MurmurHash3_x64_128(const void* key, size_t lenBytes,
96-
uint64_t seed, HashState& out) {
97-
static const uint64_t c1 = MURMUR3_BIG_CONSTANT(0x87c37b91114253d5);
98-
static const uint64_t c2 = MURMUR3_BIG_CONSTANT(0x4cf5ad432745937f);
102+
FORCE_INLINE void MurmurHash3_x64_128(const void* key, size_t lenBytes, uint64_t seed, HashState& out) {
103+
static const uint64_t c1 = BIG_CONSTANT(0x87c37b91114253d5);
104+
static const uint64_t c2 = BIG_CONSTANT(0x4cf5ad432745937f);
99105

100106
const uint8_t* data = (const uint8_t*)key;
101107

@@ -112,13 +118,13 @@ MURMUR3_FORCE_INLINE void MurmurHash3_x64_128(const void* key, size_t lenBytes,
112118
uint64_t k1 = getblock64(blocks, i * 2 + 0);
113119
uint64_t k2 = getblock64(blocks, i * 2 + 1);
114120

115-
k1 *= c1; k1 = MURMUR3_ROTL64(k1,31); k1 *= c2; out.h1 ^= k1;
116-
out.h1 = MURMUR3_ROTL64(out.h1,27);
121+
k1 *= c1; k1 = ROTL64(k1,31); k1 *= c2; out.h1 ^= k1;
122+
out.h1 = ROTL64(out.h1,27);
117123
out.h1 += out.h2;
118124
out.h1 = out.h1*5+0x52dce729;
119125

120-
k2 *= c2; k2 = MURMUR3_ROTL64(k2,33); k2 *= c1; out.h2 ^= k2;
121-
out.h2 = MURMUR3_ROTL64(out.h2,31);
126+
k2 *= c2; k2 = ROTL64(k2,33); k2 *= c1; out.h2 ^= k2;
127+
out.h2 = ROTL64(out.h2,31);
122128
out.h2 += out.h1;
123129
out.h2 = out.h2*5+0x38495ab5;
124130
}
@@ -138,7 +144,7 @@ MURMUR3_FORCE_INLINE void MurmurHash3_x64_128(const void* key, size_t lenBytes,
138144
case 11: k2 ^= ((uint64_t)tail[10]) << 16; // falls through
139145
case 10: k2 ^= ((uint64_t)tail[ 9]) << 8; // falls through
140146
case 9: k2 ^= ((uint64_t)tail[ 8]) << 0;
141-
k2 *= c2; k2 = MURMUR3_ROTL64(k2,33); k2 *= c1; out.h2 ^= k2;
147+
k2 *= c2; k2 = ROTL64(k2,33); k2 *= c1; out.h2 ^= k2;
142148
// falls through
143149
case 8: k1 ^= ((uint64_t)tail[ 7]) << 56; // falls through
144150
case 7: k1 ^= ((uint64_t)tail[ 6]) << 48; // falls through
@@ -148,7 +154,7 @@ MURMUR3_FORCE_INLINE void MurmurHash3_x64_128(const void* key, size_t lenBytes,
148154
case 3: k1 ^= ((uint64_t)tail[ 2]) << 16; // falls through
149155
case 2: k1 ^= ((uint64_t)tail[ 1]) << 8; // falls through
150156
case 1: k1 ^= ((uint64_t)tail[ 0]) << 0;
151-
k1 *= c1; k1 = MURMUR3_ROTL64(k1,31); k1 *= c2; out.h1 ^= k1;
157+
k1 *= c1; k1 = ROTL64(k1,31); k1 *= c2; out.h1 ^= k1;
152158
};
153159

154160
//----------
@@ -169,14 +175,10 @@ MURMUR3_FORCE_INLINE void MurmurHash3_x64_128(const void* key, size_t lenBytes,
169175

170176
//-----------------------------------------------------------------------------
171177

172-
MURMUR3_FORCE_INLINE uint16_t compute_seed_hash(uint64_t seed) {
178+
FORCE_INLINE uint16_t compute_seed_hash(uint64_t seed) {
173179
HashState hashes;
174180
MurmurHash3_x64_128(&seed, sizeof(seed), 0, hashes);
175181
return static_cast<uint16_t>(hashes.h1 & 0xffff);
176182
}
177183

178-
#undef MURMUR3_FORCE_INLINE
179-
#undef MURMUR3_ROTL64
180-
#undef MURMUR3_BIG_CONSTANT
181-
182184
#endif // _MURMURHASH3_H_

0 commit comments

Comments
 (0)