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

agent: Support composite events #64

Merged
merged 4 commits into from
Apr 9, 2024
Merged

agent: Support composite events #64

merged 4 commits into from
Apr 9, 2024

Conversation

ueno
Copy link
Contributor

@ueno ueno commented Dec 30, 2023

CRYPTO_AUDITING_*_DATA defines a single USDT probe point for each
invocation. This causes multiple context switches to happen if they
are writen in series. This adds a new macro, CRYPTO_AUDITING_DATA and
CRYPTO_AUDITING_DATAV, which take an array of events to limit
the number of context switches.

@ueno ueno force-pushed the wip/array branch 3 times, most recently from 29d89b0 to ed756c1 Compare December 31, 2023 06:39
@ueno ueno marked this pull request as draft December 31, 2023 14:25
@ueno ueno force-pushed the wip/array branch 2 times, most recently from dff4e8a to 9915bd9 Compare January 1, 2024 03:27
@ueno ueno marked this pull request as ready for review March 31, 2024 08:33
@ueno
Copy link
Contributor Author

ueno commented Mar 31, 2024

@t184256 @neverpanic now that CI is passing, could you give this a quick review?

@ueno
Copy link
Contributor Author

ueno commented Apr 3, 2024

With this change, the number of probe points in GnuTLS downs to half.

Before:

readelf -nW lib/.libs/libgnutls.so.30 | grep 'Provider: crypto_auditing' | wc -l
33

After:

readelf -nW lib/.libs/libgnutls.so.30 | grep 'Provider: crypto_auditing' | wc -l
15

@ueno ueno requested a review from simo5 April 3, 2024 23:21
agent/src/bpf/audit.bpf.c Outdated Show resolved Hide resolved
agent/src/bpf/audit.bpf.c Outdated Show resolved Hide resolved
.gitignore Show resolved Hide resolved
dist/audit.h Show resolved Hide resolved
agent/src/bpf/audit.bpf.c Show resolved Hide resolved
agent/src/bpf/audit.bpf.c Show resolved Hide resolved
agent/tests/composite.rs Show resolved Hide resolved
@ueno ueno force-pushed the wip/array branch 2 times, most recently from d5df5fa to 8fddad1 Compare April 5, 2024 05:54
ueno added 4 commits April 6, 2024 19:54
CRYPTO_AUDITING_*_DATA defines a single USDT probe point for each
invocation.  This causes multiple context switches to happen if they
are writen in series.  This adds a new macro, CRYPTO_AUDITING_DATA and
CRYPTO_AUDITING_DATAV, which take an array of events to limit the
number of context switches.

Signed-off-by: Daiki Ueno <[email protected]>
@ueno ueno merged commit 1b20641 into latchset:main Apr 9, 2024
6 checks passed
@ueno
Copy link
Contributor Author

ueno commented Apr 9, 2024

Thank you for the review!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants