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

i#7355 per-sys-stats: Add per-syscall-number whether-switch latency histograms #7391

Merged
merged 7 commits into from
Mar 21, 2025

Conversation

derekbruening
Copy link
Contributor

Augments the schedule_stats drmemtrace tool to keep two histograms for each system call number: one for latencies of system calls causing a context switch, and one for latencies not switching. Unfortunately the latencies are all 0 for core-sharded-on-disk traces; we live with that for now.

Generalizes the histogram support through virtual methods create_histogram() and find_or_add_histogram() to make it easier to use different histograms in subclasses with all the new histograms being added here.

Adds a unit test and augments top-level test expected output.

Fixes #7355

…istograms

Augments the schedule_stats drmemtrace tool to keep two histograms for
each system call number: one for latencies of system calls causing a
context switch, and one for latencies not switching.  Unfortunately
the latencies are all 0 for core-sharded-on-disk traces; we live with
that for now.

Generalizes the histogram support through virtual methods
create_histogram() and find_or_add_histogram() to make it easier to
use different histograms in subclasses with all the new histograms
being added here.

Adds a unit test and augments top-level test expected output.

Fixes #7355
@derekbruening
Copy link
Contributor Author

x86-32 failure is a flake: sample.callstack on new ub22. Filed #7394. Re-running.

@derekbruening derekbruening merged commit 770798b into master Mar 21, 2025
27 of 28 checks passed
@derekbruening derekbruening deleted the i7355-per-sys-lat branch March 21, 2025 22:55
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.

Add per-sysnum latency and switch stats to the drmemtrace schedule_stats tool
2 participants