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

detect rdtscp instruction at runtime #51

Merged
merged 1 commit into from
Jan 17, 2018
Merged

Conversation

teknoraver
Copy link
Contributor

Signed-off-by: Matteo Croce mcroce@redhat.com

@paboldin
Copy link
Owner

Thanks! But get_access_time is inlined, so having a branch in it is not a very good idea. Probably, we can write a make-time check for rdtscp (like ./configure)? Another option for me was to change code on the fly, replacing all the rdtscps with rdtscs.

Signed-off-by: Matteo Croce <mcroce@redhat.com>
@teknoraver
Copy link
Contributor Author

This looks better? RDTSCP detected at compile time by a shellscript and generated .h file with inline get_access_time()

@paboldin
Copy link
Owner

Let me check both of these and I will merge then.

@paboldin paboldin merged commit 1663362 into paboldin:master Jan 17, 2018
@paboldin
Copy link
Owner

@teknoraver thanks!

@ghost ghost mentioned this pull request Apr 27, 2019
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