Skip to content

feat!: drop some syscalls enter events gen, testing and parsing code (part 1)#2590

Merged
poiana merged 10 commits intomasterfrom
ekoops/drop-syscalls-e
Aug 22, 2025
Merged

feat!: drop some syscalls enter events gen, testing and parsing code (part 1)#2590
poiana merged 10 commits intomasterfrom
ekoops/drop-syscalls-e

Conversation

@ekoops
Copy link
Copy Markdown
Contributor

@ekoops ekoops commented Aug 22, 2025

What type of PR is this?

Uncomment one (or more) /kind <> lines:

/kind bug

/kind cleanup

/kind design

/kind documentation

/kind failing-test

/kind test

/kind feature

Any specific area of the project related to this PR?

Uncomment one (or more) /area <> lines:

/area API-version

/area build

/area CI

/area driver-kmod

/area driver-bpf

/area driver-modern-bpf

/area libscap-engine-bpf

/area libscap-engine-gvisor

/area libscap-engine-kmod

/area libscap-engine-modern-bpf

/area libscap-engine-nodriver

/area libscap-engine-noop

/area libscap-engine-source-plugin

/area libscap-engine-savefile

/area libscap

/area libpman

/area libsinsp

/area tests

/area proposals

Does this PR require a change in the driver versions?

/version driver-API-version-major

/version driver-API-version-minor

/version driver-API-version-patch

/version driver-SCHEMA-version-major

/version driver-SCHEMA-version-minor

/version driver-SCHEMA-version-patch

What this PR does / why we need it:

This PR is part of #2588.

Specifically, this addresses the following system calls:

  • getsockname
  • getpeername
  • socketpair
  • setsockopt
  • getsockopt
  • pipe
  • eventfd
  • futex
  • stat
  • lstat

Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewer:

/milestone 0.22.0

Does this PR introduce a user-facing change?:

feat!: drop `lstat` enter events gen, testing and parsing code
feat!: drop `stat` enter events gen, testing and parsing code
feat!: drop `futex` enter events gen, testing and parsing code
feat!: drop `eventfd` enter events gen, testing and parsing code
feat!: drop `pipe` enter events gen, testing and parsing code
feat!: drop `getsockopt` enter events gen, testing and parsing code
feat!: drop `setsockopt` enter events gen, testing and parsing code
feat!: drop `socketpair` enter events gen, testing and parsing code
feat!: drop `getpeername` enter events gen, testing and parsing code
feat!: drop `getsockname` enter events gen, testing and parsing code

ekoops added 10 commits August 22, 2025 12:57
As the `getsockname` exit events contain all the information needed,
drop `getsockname` enter events generation from all drivers, and all
related testing and parsing code.

BREAKING CHANGE: drop `getsockname` enter events generation and parsing

Signed-off-by: Leonardo Di Giovanna <leonardodigiovanna1@gmail.com>
As the `getpeername` exit events contain all the information needed,
drop `getpeername` enter events generation from all drivers, and all
related testing and parsing code.

BREAKING CHANGE: drop `getpeername` enter events generation and parsing

Signed-off-by: Leonardo Di Giovanna <leonardodigiovanna1@gmail.com>
As the `socketpair` exit events contain all the information needed,
drop `socketpair` enter events generation from all drivers, and all
related testing and parsing code.

BREAKING CHANGE: drop `socketpair` enter events generation and parsing

Signed-off-by: Leonardo Di Giovanna <leonardodigiovanna1@gmail.com>
As the `setsockopt` exit events contain all the information needed,
drop `setsockopt` enter events generation from all drivers, and all
related testing and parsing code.

BREAKING CHANGE: drop `setsockopt` enter events generation and parsing

Signed-off-by: Leonardo Di Giovanna <leonardodigiovanna1@gmail.com>
As the `getsockopt` exit events contain all the information needed,
drop `getsockopt` enter events generation from all drivers, and all
related testing and parsing code.

BREAKING CHANGE: drop `getsockopt` enter events generation and parsing

Signed-off-by: Leonardo Di Giovanna <leonardodigiovanna1@gmail.com>
As the `pipe` exit events contain all the information needed, drop
`pipe` enter events generation from all drivers, and all related
testing and parsing code.

BREAKING CHANGE: drop `pipe` enter events generation and parsing

Signed-off-by: Leonardo Di Giovanna <leonardodigiovanna1@gmail.com>
As the `eventfd` exit events contain all the information needed, drop
`eventfd` enter events generation from all drivers, and all related
testing and parsing code.

BREAKING CHANGE: drop `eventfd` enter events generation and parsing

Signed-off-by: Leonardo Di Giovanna <leonardodigiovanna1@gmail.com>
As the `futex` exit events contain all the information needed, drop
`futex` enter events generation from all drivers, and all related
testing and parsing code.

BREAKING CHANGE: drop `futex` enter events generation and parsing

Signed-off-by: Leonardo Di Giovanna <leonardodigiovanna1@gmail.com>
As the `stat` exit events contain all the information needed, drop
`stat` enter events generation from all drivers, and all related
testing and parsing code.

BREAKING CHANGE: drop `stat` enter events generation and parsing

Signed-off-by: Leonardo Di Giovanna <leonardodigiovanna1@gmail.com>
As the `lstat` exit events contain all the information needed, drop
`lstat` enter events generation from all drivers, and all related
testing and parsing code.

BREAKING CHANGE: drop `lstat` enter events generation and parsing

Signed-off-by: Leonardo Di Giovanna <leonardodigiovanna1@gmail.com>
@poiana
Copy link
Copy Markdown
Contributor

poiana commented Aug 22, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ekoops

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@github-actions
Copy link
Copy Markdown

Please double check driver/SCHEMA_VERSION file. See versioning.

/hold

@ekoops
Copy link
Copy Markdown
Contributor Author

ekoops commented Aug 22, 2025

Not bumping the driver schema version is currently a practice we are following as we will bump it in a single shot once we are done with the #2068 proposal.
/hold cancel

@codecov
Copy link
Copy Markdown

codecov bot commented Aug 22, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 78.17%. Comparing base (0285b8f) to head (043fbc7).
⚠️ Report is 11 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #2590   +/-   ##
=======================================
  Coverage   78.17%   78.17%           
=======================================
  Files         298      298           
  Lines       32094    32088    -6     
  Branches     4691     4691           
=======================================
- Hits        25088    25084    -4     
+ Misses       7006     7004    -2     
Flag Coverage Δ
libsinsp 78.17% <100.00%> (+<0.01%) ⬆️

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

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@github-actions
Copy link
Copy Markdown

Perf diff from master - unit tests

   100.00%    -99.68%  [.] 0x000000000007ee90

Heap diff from master - unit tests

peak heap memory consumption: -110.26K
peak RSS (including heaptrack overhead): 0B
total memory leaked: 373.97K

Heap diff from master - scap file

peak heap memory consumption: 7.90K
peak RSS (including heaptrack overhead): 0B
total memory leaked: 0B

Benchmarks diff from master

Comparing gbench_data.json to /root/actions-runner/_work/libs/libs/build/gbench_data.json
Benchmark                                                         Time             CPU      Time Old      Time New       CPU Old       CPU New
----------------------------------------------------------------------------------------------------------------------------------------------
BM_sinsp_split_mean                                            +0.0070         +0.0071           146           148           146           148
BM_sinsp_split_median                                          +0.0068         +0.0068           147           148           147           147
BM_sinsp_split_stddev                                          +1.5451         +1.5141             1             1             1             1
BM_sinsp_split_cv                                              +1.5273         +1.4963             0             0             0             0
BM_sinsp_concatenate_paths_relative_path_mean                  -0.0935         -0.0934            64            58            64            58
BM_sinsp_concatenate_paths_relative_path_median                -0.0928         -0.0928            64            58            64            58
BM_sinsp_concatenate_paths_relative_path_stddev                +1.2732         +1.2793             0             1             0             1
BM_sinsp_concatenate_paths_relative_path_cv                    +1.5076         +1.5140             0             0             0             0
BM_sinsp_concatenate_paths_empty_path_mean                     -0.0125         -0.0123            25            25            25            25
BM_sinsp_concatenate_paths_empty_path_median                   -0.0141         -0.0141            25            24            25            24
BM_sinsp_concatenate_paths_empty_path_stddev                   +0.8867         +0.8868             0             0             0             0
BM_sinsp_concatenate_paths_empty_path_cv                       +0.9105         +0.9104             0             0             0             0
BM_sinsp_concatenate_paths_absolute_path_mean                  -0.0705         -0.0704            64            59            64            59
BM_sinsp_concatenate_paths_absolute_path_median                -0.0523         -0.0522            62            59            62            59
BM_sinsp_concatenate_paths_absolute_path_stddev                -0.6279         -0.6281             2             1             2             1
BM_sinsp_concatenate_paths_absolute_path_cv                    -0.5997         -0.6000             0             0             0             0

@github-actions
Copy link
Copy Markdown

X64 kernel testing matrix

KERNEL CMAKE-CONFIGURE KMOD BUILD KMOD SCAP-OPEN BPF-PROBE BUILD BPF-PROBE SCAP-OPEN MODERN-BPF SCAP-OPEN
amazonlinux2-4.19 🟢 🟢 🟢 🟢 🟢 🟡
amazonlinux2-5.10 🟢 🟢 🟢 🟢 🟢 🟢
amazonlinux2-5.15 🟢 🟢 🟢 🟢 🟢 🟢
amazonlinux2-5.4 🟢 🟢 🟢 🟢 🟢 🟡
amazonlinux2022-5.15 🟢 🟢 🟢 🟢 🟢 🟢
amazonlinux2023-6.1 🟢 🟢 🟢 🟢 🟢 🟢
archlinux-6.0 🟢 🟢 🟢 🟢 🟢 🟢
archlinux-6.7 🟢 🟢 🟢 🟢 🟢 🟢
centos-3.10 🟢 🟢 🟢 🟡 🟡 🟡
centos-4.18 🟢 🟢 🟢 🟢 🟢 🟢
centos-5.14 🟢 🟢 🟢 🟢 🟢 🟢
fedora-5.17 🟢 🟢 🟢 🟢 🟢 🟢
fedora-5.8 🟢 🟢 🟢 🟢 🟢 🟢
fedora-6.2 🟢 🟢 🟢 🟢 🟢 🟢
oraclelinux-3.10 🟢 🟢 🟢 🟡 🟡 🟡
oraclelinux-4.14 🟢 🟢 🟢 🟢 🟢 🟡
oraclelinux-5.15 🟢 🟢 🟢 🟢 🟢 🟢
oraclelinux-5.4 🟢 🟢 🟢 🟢 🟢 🟡
ubuntu-4.15 🟢 🟢 🟢 🟢 🟢 🟡
ubuntu-5.8 🟢 🟢 🟢 🟢 🟢 🟡
ubuntu-6.5 🟢 🟢 🟢 🟢 🟢 🟢

ARM64 kernel testing matrix

KERNEL CMAKE-CONFIGURE KMOD BUILD KMOD SCAP-OPEN BPF-PROBE BUILD BPF-PROBE SCAP-OPEN MODERN-BPF SCAP-OPEN
amazonlinux2-5.4 🟢 🟢 🟢 🟢 🟢 🟡
amazonlinux2022-5.15 🟢 🟢 🟢 🟢 🟢 🟢
fedora-6.2 🟢 🟢 🟢 🟢 🟢 🟢
oraclelinux-4.14 🟢 🟢 🟢 🟡 🟡 🟡
oraclelinux-5.15 🟢 🟢 🟢 🟢 🟢 🟢
ubuntu-6.5 🟢 🟢 🟢 🟢 🟢 🟢

@poiana
Copy link
Copy Markdown
Contributor

poiana commented Aug 22, 2025

LGTM label has been added.

DetailsGit tree hash: daa036f0558ac58221c5cde1d0ba3a177d85d234

@github-project-automation github-project-automation bot moved this from Todo to In progress in Falco Roadmap Aug 22, 2025
@poiana poiana merged commit a5fb0fb into master Aug 22, 2025
68 of 70 checks passed
@poiana poiana deleted the ekoops/drop-syscalls-e branch August 22, 2025 12:32
@github-project-automation github-project-automation bot moved this from In progress to Done in Falco Roadmap Aug 22, 2025
@leogr leogr modified the milestones: 0.22.0, 9.0.0+driver Oct 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

4 participants