Skip to content

Disable x86 specific prctl on aarch64 #3170

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

Merged
merged 1 commit into from
Apr 18, 2022

Conversation

yuyichao
Copy link
Contributor

These are documented in the manual as x86-only.
Even if we have a version for aarch64/other arch with similar function, they'll probably have a different name.

src/Task.cc Outdated
@@ -112,13 +112,15 @@ void Task::detach() {
}

void Task::reenable_cpuid_tsc() {
#if defined(__i386__) || defined(__x86_64__)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of conditional compilation how about just checking if (Arch::is_x86ish())?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fewer #ifdefs means less cross-platform compilation bustage.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

These are documented in the manual as x86-only.
Even if we have a version for aarch64/other arch with similar function, they'll probably have a different name.
@rocallahan rocallahan merged commit 1a50b91 into rr-debugger:master Apr 18, 2022
@yuyichao yuyichao deleted the x86-prctl branch April 18, 2022 11:52
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