]> git.ipfire.org Git - thirdparty/snort3.git/commit
Allow use of ARM64 CNTVCT_EL0 register for timing (#46)
authorJonathan McDowell <noodles-github@earth.li>
Fri, 23 Mar 2018 00:35:52 +0000 (00:35 +0000)
committersnortadmin <snortadmin@users.noreply.github.com>
Fri, 23 Mar 2018 00:35:52 +0000 (20:35 -0400)
commitfc465074c99962dbbb2d9716709963831de689f1
tree41eca2582cc499e2558f8705a412e323ebb8a2c9
parentb4170a14a2cc7b738629982bca42c380291852c7
Allow use of ARM64 CNTVCT_EL0 register for timing (#46)

snort supports the use of rdtsc to get fast, accurate-enough timing on
x86 platforms. The CNTVCT_EL0 register on ARM64 provides a usable
equivalent to userspace code on that platform. It's not the actual
processor clock rate but can vary in accuracy from 1-50Mhz. Its use
gives a ~10% performance improvement on an A53 based platform.
src/time/tsc_clock.h