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

Add syscall errno stats to syscall_mix drmemtrace analyzer #7381

Closed
derekbruening opened this issue Mar 19, 2025 · 0 comments · Fixed by #7390
Closed

Add syscall errno stats to syscall_mix drmemtrace analyzer #7381

derekbruening opened this issue Mar 19, 2025 · 0 comments · Fixed by #7390

Comments

@derekbruening
Copy link
Contributor

For studying drmemtrace context switch fidelity, I want to know how often syscalls are interrupted by EINTR. I'm thinking of augmenting syscall_mix with a map of errno values to counts. Would be nice to have the DR API or drsyscall API for cross-platform failure value support: but for now could start out with just Linux errno support.

@derekbruening derekbruening self-assigned this Mar 19, 2025
derekbruening added a commit that referenced this issue Mar 20, 2025
Augments the syscall_mix tool to record a map from syscall failure
codes to counts. The caveat is that the trace only contains this
information explicitly for syscall that were traced with
`-record_syscall`.

Generalizes the syscall_mix results in a statistics_t struct with an accessor.

Adds testing to the burst_syscall_inject test by adding failing
syscall, running syscall_mix, accessing its stats, and confirming the
results.

Fixes #7381
derekbruening added a commit that referenced this issue Mar 21, 2025
Augments the syscall_mix tool to record a map from syscall failure
codes to counts for each syscall number. The caveat is that the trace only
contains this information explicitly for syscall that were traced with
`-record_syscall`.

Generalizes the syscall_mix results in a statistics_t struct with an
accessor.

Adds testing to the burst_syscall_inject test by adding failing
syscalls, running syscall_mix, accessing its stats, and confirming the
results.

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

Successfully merging a pull request may close this issue.

1 participant