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#6662 func_id_filter: large function IDs #6870

Merged
merged 2 commits into from
Jul 10, 2024
Merged

i#6662 func_id_filter: large function IDs #6870

merged 2 commits into from
Jul 10, 2024

Conversation

edeiana
Copy link
Contributor

@edeiana edeiana commented Jul 9, 2024

When filtering function related markers (i.e., TRACE_MARKER_TYPE_FUNC_) by function ID we need to provide the original marker value (function ID) in the trace to func_id_filter.
When filtering out system calls, the ID can be large due to TRACE_FUNC_ID_SYSCALL_BASE (which is 0x100000000ULL == 4294967296 for x64) that is added to the system call number, and can cause an std::out_of_range error.
We now use std::stoull to handle large function IDs.
We add a test which runs func_id_filter (part of record_filter) with a large function ID and then checks that there is no function marker left in the filtered trace with basic_counts.

Issue #6662

When filtering function related markers by function ID we need to
provide the original marker value (i.e., function ID) in the trace.
When filtering out system calls, the ID can be large due to
TRACE_FUNC_ID_SYSCALL_BASE (which is 0x100000000ULL == 4294967296 for x64)
that is added to the system call number, and can cause an std::out_of_range
error.
We now use std::stoll to handle large function IDs.

Issue #6662
@edeiana edeiana merged commit f63d03d into master Jul 10, 2024
17 checks passed
@edeiana edeiana deleted the i6662-func-id branch July 10, 2024 00:02
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