]> git.ipfire.org Git - thirdparty/vectorscan.git/log
thirdparty/vectorscan.git
4 years agoMerge pull request #1 from VectorCamp/feature/add-arm-support 2/head
Konstantinos Margaritis [Wed, 16 Dec 2020 17:01:32 +0000 (19:01 +0200)] 
Merge pull request #1 from VectorCamp/feature/add-arm-support

Feature/add arm support

4 years agofix x86 compilation 1/head
Konstantinos Margaritis [Tue, 8 Dec 2020 09:42:30 +0000 (11:42 +0200)] 
fix x86 compilation

4 years agoremove forgotten printf
Konstantinos Margaritis [Mon, 7 Dec 2020 21:12:41 +0000 (23:12 +0200)] 
remove forgotten printf

4 years agooptimize *shiftbyte_m128() functions to use palign instead of variable_byte_shift_m128()
Konstantinos Margaritis [Mon, 7 Dec 2020 21:12:26 +0000 (23:12 +0200)] 
optimize *shiftbyte_m128() functions to use palign instead of variable_byte_shift_m128()

4 years agoclear zones array
Konstantinos Margaritis [Thu, 3 Dec 2020 17:30:50 +0000 (19:30 +0200)] 
clear zones array

4 years agoadd ARM platform
Konstantinos Margaritis [Thu, 3 Dec 2020 17:27:58 +0000 (19:27 +0200)] 
add ARM platform

4 years agofix movq and load_m128_from_u64a and resp. test for NEON
Konstantinos Margaritis [Thu, 3 Dec 2020 17:27:38 +0000 (19:27 +0200)] 
fix movq and load_m128_from_u64a and resp. test for NEON

4 years agodefine debug vector print functions to NULL in non-debug mode
Konstantinos Margaritis [Thu, 3 Dec 2020 17:27:05 +0000 (19:27 +0200)] 
define debug vector print functions to NULL in non-debug mode

4 years agosmall optimization that was for some reason failing in ARM, should be faster anyway
Konstantinos Margaritis [Tue, 24 Nov 2020 15:59:42 +0000 (17:59 +0200)] 
small optimization that was for some reason failing in ARM, should be faster anyway

4 years agohelper functions to print a m128 vector in debug mode
Konstantinos Margaritis [Tue, 24 Nov 2020 15:57:16 +0000 (17:57 +0200)] 
helper functions to print a m128 vector in debug mode

4 years agowhen building in debug mode, vgetq_lane_*() and vextq_*() need immediate operands...
Konstantinos Margaritis [Tue, 24 Nov 2020 15:56:40 +0000 (17:56 +0200)] 
when building in debug mode, vgetq_lane_*() and vextq_*() need immediate operands, and we have to use switch()'ed versions

4 years agofix compiler flag testcase
Konstantinos Margaritis [Tue, 24 Nov 2020 15:55:03 +0000 (17:55 +0200)] 
fix compiler flag testcase

4 years agoremove debug from functions
Konstantinos Margaritis [Thu, 5 Nov 2020 18:33:17 +0000 (20:33 +0200)] 
remove debug from functions

4 years agoadd some debug and minor optimizations in unit test
Konstantinos Margaritis [Thu, 5 Nov 2020 17:21:16 +0000 (19:21 +0200)] 
add some debug and minor optimizations in unit test

4 years agoadd some debug info
Konstantinos Margaritis [Thu, 5 Nov 2020 17:20:37 +0000 (19:20 +0200)] 
add some debug info

4 years agoadd compress128 function and implementation
Konstantinos Margaritis [Thu, 5 Nov 2020 17:20:06 +0000 (19:20 +0200)] 
add compress128 function and implementation

4 years agoadd extra instructions (currently arm-only), fix order of elements in set4x32/set2x64
Konstantinos Margaritis [Thu, 5 Nov 2020 17:18:53 +0000 (19:18 +0200)] 
add extra instructions (currently arm-only), fix order of elements in set4x32/set2x64

4 years agofix 32-bit/64-bit detection
Konstantinos Margaritis [Thu, 5 Nov 2020 15:31:20 +0000 (17:31 +0200)] 
fix 32-bit/64-bit detection

4 years agoneeded for ARM vector type conversions
Konstantinos Margaritis [Fri, 30 Oct 2020 08:50:24 +0000 (10:50 +0200)] 
needed for ARM vector type conversions

4 years agosmall optimization in storecompress*()
Konstantinos Margaritis [Fri, 30 Oct 2020 08:49:50 +0000 (10:49 +0200)] 
small optimization in storecompress*()

4 years agofix ARM implementations
Konstantinos Margaritis [Fri, 30 Oct 2020 08:38:41 +0000 (10:38 +0200)] 
fix ARM implementations

4 years agodon't use SSE directly in the tests
Konstantinos Margaritis [Fri, 30 Oct 2020 08:38:05 +0000 (10:38 +0200)] 
don't use SSE directly in the tests

4 years agodon't redefine function on x86
Konstantinos Margaritis [Fri, 16 Oct 2020 10:09:08 +0000 (13:09 +0300)] 
don't redefine function on x86

4 years agoscalar implementations of diffrich256 and diffrich384
Konstantinos Margaritis [Fri, 16 Oct 2020 10:02:40 +0000 (13:02 +0300)] 
scalar implementations of diffrich256 and diffrich384

4 years agoRevert "move x86 popcount.h implementations to util/arch/x86/popcount.h"
Konstantinos Margaritis [Fri, 16 Oct 2020 09:32:44 +0000 (12:32 +0300)] 
Revert "move x86 popcount.h implementations to util/arch/x86/popcount.h"

This reverts commit 6581aae90e55520353c03edb716de80ecc03521a.

4 years agosplit arch-agnostic simd_utils.h functions into the common file
Konstantinos Margaritis [Fri, 16 Oct 2020 09:30:34 +0000 (12:30 +0300)] 
split arch-agnostic simd_utils.h functions into the common file

4 years agofix compilation paths for cpuid_flags for x86
Konstantinos Margaritis [Fri, 16 Oct 2020 09:29:45 +0000 (12:29 +0300)] 
fix compilation paths for cpuid_flags for x86

4 years agoadd scalar versions of the vectorized functions for architectures that don't support...
Konstantinos Margaritis [Thu, 15 Oct 2020 13:30:18 +0000 (16:30 +0300)] 
add scalar versions of the vectorized functions for architectures that don't support 256-bit/512-bit SIMD vectors such as ARM

4 years agoadd ARM simd_utils vectorized functions for 128-bit vectors
Konstantinos Margaritis [Thu, 15 Oct 2020 13:26:49 +0000 (16:26 +0300)] 
add ARM simd_utils vectorized functions for 128-bit vectors

4 years agoadd arm simple cpuid_flags
Konstantinos Margaritis [Thu, 15 Oct 2020 13:25:29 +0000 (16:25 +0300)] 
add arm simple cpuid_flags

4 years agoadd ARM version of simd_utils.h
Konstantinos Margaritis [Tue, 13 Oct 2020 06:19:56 +0000 (09:19 +0300)] 
add ARM version of simd_utils.h

4 years agoadd arm bitutils.h header
Konstantinos Margaritis [Thu, 8 Oct 2020 17:50:55 +0000 (20:50 +0300)] 
add arm bitutils.h header

4 years agoadd C implementation of pdep64()
Konstantinos Margaritis [Thu, 8 Oct 2020 17:50:18 +0000 (20:50 +0300)] 
add C implementation of pdep64()

4 years agomove cpuid_flags.h header to common
Konstantinos Margaritis [Thu, 8 Oct 2020 17:48:20 +0000 (20:48 +0300)] 
move cpuid_flags.h header to common

4 years agouse C implementation of popcount for arm
Konstantinos Margaritis [Wed, 7 Oct 2020 11:28:45 +0000 (14:28 +0300)] 
use C implementation of popcount for arm

4 years agoadd arm architecture basic defines
Konstantinos Margaritis [Wed, 7 Oct 2020 11:28:12 +0000 (14:28 +0300)] 
add arm architecture basic defines

4 years agominor fix
Konstantinos Margaritis [Wed, 7 Oct 2020 11:26:41 +0000 (14:26 +0300)] 
minor fix

4 years agouse right intrinsic
Konstantinos Margaritis [Tue, 6 Oct 2020 10:45:52 +0000 (13:45 +0300)] 
use right intrinsic

4 years agoadd necessary modifications to CMake system to enable building on ARM, add arm_neon...
Konstantinos Margaritis [Tue, 6 Oct 2020 09:44:23 +0000 (12:44 +0300)] 
add necessary modifications to CMake system to enable building on ARM, add arm_neon.h intrinsic header to intrinsics.h

4 years agoadd arm checks in platform.cmake
Konstantinos Margaritis [Tue, 6 Oct 2020 05:09:18 +0000 (08:09 +0300)] 
add arm checks in platform.cmake

4 years agoRevert "Revert "move x86 popcount.h implementations to util/arch/x86/popcount.h""
Konstantinos Margaritis [Thu, 24 Sep 2020 08:52:59 +0000 (11:52 +0300)] 
Revert "Revert "move x86 popcount.h implementations to util/arch/x86/popcount.h""

This reverts commit 04fbf2468140cc4d7ccabc62a2bdc4503a3d31c5.

4 years agoRevert "move x86 popcount.h implementations to util/arch/x86/popcount.h"
Konstantinos Margaritis [Wed, 23 Sep 2020 18:38:12 +0000 (21:38 +0300)] 
Revert "move x86 popcount.h implementations to util/arch/x86/popcount.h"

This reverts commit 6581aae90e55520353c03edb716de80ecc03521a.

4 years agofix names, use own intrinsic instead of explicit _mm* ones
Konstantinos Margaritis [Wed, 23 Sep 2020 08:51:21 +0000 (11:51 +0300)] 
fix names, use own intrinsic instead of explicit _mm* ones

4 years agoadd some set*() functions, harmonize names, rename setAxB to set1_AxB when using...
Konstantinos Margaritis [Wed, 23 Sep 2020 08:49:26 +0000 (11:49 +0300)] 
add some set*() functions, harmonize names, rename setAxB to set1_AxB when using mm_set1_* internally

4 years agomove x86 implementations of simd_utils.h to util/arch/x86/
Konstantinos Margaritis [Tue, 22 Sep 2020 10:12:07 +0000 (13:12 +0300)] 
move x86 implementations of simd_utils.h to util/arch/x86/

4 years agono need to check for WIN32*
Konstantinos Margaritis [Tue, 22 Sep 2020 10:10:52 +0000 (13:10 +0300)] 
no need to check for WIN32*

4 years agomove andn helper function to bitutils.h
Konstantinos Margaritis [Tue, 22 Sep 2020 09:17:27 +0000 (12:17 +0300)] 
move andn helper function to bitutils.h

4 years agomove x86 popcount.h implementations to util/arch/x86/popcount.h
Konstantinos Margaritis [Tue, 22 Sep 2020 08:45:24 +0000 (11:45 +0300)] 
move x86 popcount.h implementations to util/arch/x86/popcount.h

4 years agomove x86 bitutils.h implementations to util/arch/x86/bitutils.h
Konstantinos Margaritis [Tue, 22 Sep 2020 08:02:07 +0000 (11:02 +0300)] 
move x86 bitutils.h implementations to util/arch/x86/bitutils.h

4 years agofix include paths for masked_move
Konstantinos Margaritis [Fri, 18 Sep 2020 09:55:57 +0000 (12:55 +0300)] 
fix include paths for masked_move

4 years agomove masked_move* AVX2 implementation to util/arch/x86
Konstantinos Margaritis [Fri, 18 Sep 2020 09:51:39 +0000 (12:51 +0300)] 
move masked_move* AVX2 implementation to util/arch/x86

4 years agomove crc32 SSE42 implementation to util/arch/x86
Konstantinos Margaritis [Fri, 18 Sep 2020 09:48:14 +0000 (12:48 +0300)] 
move crc32 SSE42 implementation to util/arch/x86

4 years agomove cpuid stuff to util/arch/x86
Konstantinos Margaritis [Thu, 17 Sep 2020 17:35:39 +0000 (20:35 +0300)] 
move cpuid stuff to util/arch/x86

4 years agomove x86 arch and SIMD types to x86 arch folder
Konstantinos Margaritis [Thu, 17 Sep 2020 16:00:48 +0000 (19:00 +0300)] 
move x86 arch and SIMD types to x86 arch folder

5 years agoMerge branch 'github_develop' into github_master v5.3.0
Hong, Yang A [Mon, 25 May 2020 14:30:57 +0000 (14:30 +0000)] 
Merge branch 'github_develop' into github_master

5 years agoBump version number for release
Hong, Yang A [Fri, 8 May 2020 14:34:28 +0000 (14:34 +0000)] 
Bump version number for release

5 years agochangelog: updates for 5.3.0 release
Hong, Yang A [Tue, 19 May 2020 09:49:19 +0000 (09:49 +0000)] 
changelog: updates for 5.3.0 release

5 years agotools/fuzz: add test scripts for synthetic pattern generation.
Hong, Yang A [Mon, 25 May 2020 14:22:18 +0000 (14:22 +0000)] 
tools/fuzz: add test scripts for synthetic pattern generation.

5 years agogcc-10: fix hyperscan compile issue
Hong, Yang A [Mon, 18 May 2020 20:08:20 +0000 (20:08 +0000)] 
gcc-10: fix hyperscan compile issue

Fixes github issue #239

5 years agoliteral API: remove HS_FLAG_MULTILINE flag support
Hong, Yang A [Wed, 13 May 2020 16:37:57 +0000 (16:37 +0000)] 
literal API: remove HS_FLAG_MULTILINE flag support

fixes github issue #237

5 years agoadd AVX512 support for vermicelli model
Hong, Yang A [Tue, 28 Apr 2020 10:15:40 +0000 (10:15 +0000)] 
add AVX512 support for vermicelli model

5 years agohsbench: add hyphen support for -T option
Hong, Yang A [Tue, 28 Apr 2020 10:14:55 +0000 (10:14 +0000)] 
hsbench: add hyphen support for -T option

5 years agoadd Hyperscan version marcro in public header
Hong, Yang A [Mon, 20 Apr 2020 13:05:37 +0000 (13:05 +0000)] 
add Hyperscan version marcro in public header

5 years agoRevert to AVX2 Fat Teddy instead of AVX512 reinforced Fat Teddy.
Chang, Harry [Tue, 14 Apr 2020 07:56:31 +0000 (15:56 +0800)] 
Revert to AVX2 Fat Teddy instead of AVX512 reinforced Fat Teddy.

5 years agoAVX512VBMI Teddy.
Chang, Harry [Tue, 5 Nov 2019 13:19:38 +0000 (21:19 +0800)] 
AVX512VBMI Teddy.

5 years agoFix undefined behaviour
Federico G. Schwindt [Fri, 20 Mar 2020 11:44:18 +0000 (11:44 +0000)] 
Fix undefined behaviour

Just use stat and opendir.  Fixes #228.

While here correct the error message.

5 years agoFix few typos in CMakeLists.txt
Petr Vaněk [Thu, 6 Feb 2020 10:28:34 +0000 (11:28 +0100)] 
Fix few typos in CMakeLists.txt

Signed-off-by: Petr Vaněk <pv@excello.cz>
5 years agoupdate description of HS_FLAG_SOM_LEFTMOST to eliminate ambiguity
Hong, Yang A [Thu, 16 Apr 2020 12:16:14 +0000 (12:16 +0000)] 
update description of HS_FLAG_SOM_LEFTMOST to eliminate ambiguity

5 years agoavoid crash in addLitExpression()
Hong, Yang A [Tue, 14 Apr 2020 09:36:46 +0000 (09:36 +0000)] 
avoid crash in addLitExpression()

fixes github issue #205

5 years agohscollider: fix UTF8 check for patterns
Wang Xiang W [Wed, 8 Apr 2020 15:26:05 +0000 (11:26 -0400)] 
hscollider: fix UTF8 check for patterns

5 years agosmallwrite: add report dedupe check
Wang Xiang W [Fri, 3 Apr 2020 16:08:10 +0000 (12:08 -0400)] 
smallwrite: add report dedupe check

5 years agoLimex: fix acceleration path analysis
Wang Xiang W [Wed, 18 Mar 2020 13:36:51 +0000 (09:36 -0400)] 
Limex: fix acceleration path analysis

5 years agoNoodle: avoid an extra convert instruction
Wang Xiang W [Fri, 6 Mar 2020 08:24:07 +0000 (03:24 -0500)] 
Noodle: avoid an extra convert instruction

fixes github issue #221

5 years agogcc-9: fix CMake parsing of CPU architecture for non-English locale
Wang Xiang W [Mon, 17 Feb 2020 09:41:36 +0000 (04:41 -0500)] 
gcc-9: fix CMake parsing of CPU architecture for non-English locale

Fixes github issue #217

5 years agoProcessing VLAN packets in pcapCorpus.py
Nan Xiao [Tue, 7 Jan 2020 01:52:46 +0000 (09:52 +0800)] 
Processing VLAN packets in pcapCorpus.py

Signed-off-by: Nan Xiao <xiaonan830818@gmail.com>
5 years agoCyclic redundancy: change DFS termination condition into successors of cyclic vertex
Hong, Yang A [Mon, 6 Jan 2020 15:32:37 +0000 (15:32 +0000)] 
Cyclic redundancy: change DFS termination condition into successors of cyclic vertex

5 years agoFix platform compatibility check
Dmitry Yakovenko [Sat, 11 Jan 2020 21:35:37 +0000 (00:35 +0300)] 
Fix platform compatibility check

5 years agoUpdate compilation.rst
flip111 [Fri, 29 Nov 2019 14:59:42 +0000 (15:59 +0100)] 
Update compilation.rst

fixed two spelling mistakes

5 years agoA tiny cleanup
Pavel Shlyak [Sun, 18 Aug 2019 21:50:03 +0000 (00:50 +0300)] 
A tiny cleanup

5 years agoFix small typo
Frank Wessels [Thu, 1 Aug 2019 20:47:54 +0000 (13:47 -0700)] 
Fix small typo

5 years agoMerge branch 'github_develop' into github_master v5.2.1
Hong, Yang A [Wed, 30 Oct 2019 15:23:56 +0000 (15:23 +0000)] 
Merge branch 'github_develop' into github_master

5 years agoBump version number for release
Hong, Yang A [Mon, 14 Oct 2019 13:02:26 +0000 (13:02 +0000)] 
Bump version number for release

5 years agochangelog: updates for 5.2.1 release
Hong, Yang A [Mon, 14 Oct 2019 12:56:01 +0000 (12:56 +0000)] 
changelog: updates for 5.2.1 release

5 years agotools: fix compile issue for RELEASE_BUILD code
Hong, Yang A [Thu, 22 Aug 2019 13:54:54 +0000 (21:54 +0800)] 
tools: fix compile issue for RELEASE_BUILD code

Fixes github issue #186

5 years agogcc-9:disable redundant move check for older compiler versions
Wang, Xiang W [Thu, 5 Sep 2019 12:16:08 +0000 (08:16 -0400)] 
gcc-9:disable redundant move check for older compiler versions

5 years agoDoc changes in "pure negative" logical combination support.
Chang, Harry [Fri, 23 Aug 2019 02:50:22 +0000 (10:50 +0800)] 
Doc changes in "pure negative" logical combination support.

5 years agoMerge branch develop to master v5.2.0
Chang, Harry [Tue, 13 Aug 2019 06:56:02 +0000 (14:56 +0800)] 
Merge branch develop to master

5 years agoBump version number for release
Hong, Yang A [Fri, 12 Jul 2019 15:01:00 +0000 (23:01 +0800)] 
Bump version number for release

5 years agochangelog: updates for 5.2.0 release
Hong, Yang A [Fri, 12 Jul 2019 14:55:44 +0000 (22:55 +0800)] 
changelog: updates for 5.2.0 release

5 years agoAdd windows DLL support
Bobby Martin [Wed, 27 Mar 2019 16:52:00 +0000 (09:52 -0700)] 
Add windows DLL support
(with AVX2 flag removed currently)

5 years agoScratch: fix scratch free issue when memory allocation fails
Wang, Xiang W [Wed, 10 Jul 2019 00:18:42 +0000 (20:18 -0400)] 
Scratch: fix scratch free issue when memory allocation fails

Fixes github issue #174

5 years agoChimera: don't disable single match flag when checking Hyperscan support
Wang, Xiang W [Wed, 3 Jul 2019 03:37:21 +0000 (23:37 -0400)] 
Chimera: don't disable single match flag when checking Hyperscan support

5 years agoLiteral API: update dev-reference
Hong, Yang A [Wed, 17 Jul 2019 15:45:59 +0000 (23:45 +0800)] 
Literal API: update dev-reference

5 years agoadd new Literal API for pure literal expressions:
Hong, Yang A [Wed, 17 Jul 2019 16:29:27 +0000 (00:29 +0800)] 
add new Literal API for pure literal expressions:

Design compile time api hs_compile_lit() and hs_compile_lit_multi()
to handle pure literal pattern sets. Corresponding option --literal-on
is added for hyperscan testing suites. Extended parameters and part of
flags are not supported for this api.

5 years agoDo not free stream unless hs_close_stream returns success.
Chang, Harry [Thu, 20 Jun 2019 00:59:18 +0000 (08:59 +0800)] 
Do not free stream unless hs_close_stream returns success.
(by unit-hyperscan HyperscanArgChecks.CloseStreamNoScratch)

5 years agoLogical combination: add purely negative match at EOD unit test
Chang, Harry [Sun, 31 Mar 2019 03:16:50 +0000 (11:16 +0800)] 
Logical combination: add purely negative match at EOD unit test
MultiCombPurelyNegativeUniSubEOD6.

5 years agoLogical combination: add streaming mode unit test MultiCombStream1.
Chang, Harry [Fri, 7 Jun 2019 03:38:37 +0000 (11:38 +0800)] 
Logical combination: add streaming mode unit test MultiCombStream1.

5 years agoLogical Combination: avoid corruption of pending combination report
Chang, Harry [Thu, 6 Jun 2019 07:12:24 +0000 (15:12 +0800)] 
Logical Combination: avoid corruption of pending combination report
in streaming mode.

Fixes github issue #165

5 years agoLogical combination: support EOD match from purely negative case.
Chang, Harry [Wed, 27 Mar 2019 07:19:14 +0000 (15:19 +0800)] 
Logical combination: support EOD match from purely negative case.

5 years agotools: hscollider FTBS in alpine linux
Carlo Marcelo Arenas Belón [Mon, 3 Jun 2019 22:32:38 +0000 (15:32 -0700)] 
tools: hscollider FTBS in alpine linux

alpine uses musl instead of glibc and therefore doesn't have backtrace()
as part of its libc.

POSIX mandates that _exit() be defined through unistd.h which used to be
included together with execinfo.h when backtrace() was detected and
therefore it happened to build fine for linux or freebsd (when using
libexecinfo from the system or ports).

since there was a macro already defined to test for unistd.h use that
instead and decouple this dependency, so that the code could be built
even when no backtrace() is provided (as expected also in OpenBSD)