Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

next/519/20240704/v1 #11431

Merged
merged 2 commits into from
Jul 4, 2024
Merged

Conversation

Lukas Sismis and others added 2 commits July 4, 2024 15:39
Getting clock through Time Stamp Counter (TSC) can be precise and fast,
however only for a short duration of time.
The implementation across CPUs seems to vary. The original idea is to
increment the counter with every tick. Then dividing the delta of CPU ticks
by the CPU frequency can return the time that passed.
However, the CPU clock/frequency can change over time, resulting in uneven
incrementation of TSC. On some CPUs this is handled by extra logic.
As a result, obtaining time through this method might drift from the real
time.

This commit therefore substitues TSC time retrieval by the standard system
call wrapped in GetTime function - on Linux it is gettimeofday.

Ticket: 7115
THashInitConfig may not allocate array and increase memuse.
Such a failure leads to THashShutdown which should not decrease
the memuse.

Ticket: 7135
Copy link
Contributor

@catenacyber catenacyber left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consistent with the approved PRs :-)

@suricata-qa
Copy link

Information: QA ran without warnings.

Pipeline 21372

Copy link

codecov bot commented Jul 4, 2024

Codecov Report

Attention: Patch coverage is 83.33333% with 1 line in your changes missing coverage. Please review.

Project coverage is 82.44%. Comparing base (a7af371) to head (eeec609).

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #11431      +/-   ##
==========================================
- Coverage   82.44%   82.44%   -0.01%     
==========================================
  Files         938      938              
  Lines      248086   248068      -18     
==========================================
- Hits       204534   204513      -21     
- Misses      43552    43555       +3     
Flag Coverage Δ
fuzzcorpus 60.10% <100.00%> (ø)
livemode 18.71% <83.33%> (-0.01%) ⬇️
pcap 43.72% <100.00%> (-0.07%) ⬇️
suricata-verify 61.42% <100.00%> (+<0.01%) ⬆️
unittests 59.43% <100.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

@victorjulien victorjulien merged commit eeec609 into OISF:master Jul 4, 2024
56 of 57 checks passed
@victorjulien victorjulien deleted the next/519/20240704/v1 branch July 4, 2024 20:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants