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

common: Add rdtsc() support for s390x #27797

Closed
wants to merge 1 commit into from
Closed

common: Add rdtsc() support for s390x #27797

wants to merge 1 commit into from

Conversation

nealef
Copy link

@nealef nealef commented Apr 25, 2019

Cycles: Add rdtsc() for s390x

z Systems (aka s390/s390x) supports a time-of-day clock of 64-bits.

Fixes: #39491

Signed-off-by: Neale Ferguson neale@sinenomine.net

  • References tracker ticket
  • Updates documentation if necessary
  • Includes tests for new functionality or reproducer for bug

@gregsfortytwo
Copy link
Member

Thanks for your contribution!

For us to merge this PR we need your Signed-off-By statement on all commits to indicate proper licensing: https://github.com/ceph/ceph/blob/master/SubmittingPatches.rst#signing-contributions

Can you please also rebase it so the PR just adds your commit and not the several merges back and forth? :)

Fixes: #39491

Signed-off-by: Neale Ferguson neale@sinenomine.net
@nealef
Copy link
Author

nealef commented Apr 29, 2019

I hope I got it right this time.

@gregsfortytwo
Copy link
Member

@smithfarm I think you're the last one to do anything with s390, care to comment?

@tchaikov
Copy link
Contributor

@nealef could you reference the tracker ticket like

Fixes: http://tracker.ceph.com/issues/39491

as in future, your comment would be connected to a PR with the same id.

also you might want to quote your email address with <>, like

Signed-off-by: Neale Ferguson <neale@sinenomine.net>

.

@smithfarm smithfarm self-requested a review May 1, 2019 09:31
@smithfarm smithfarm changed the title Fixes #39491: Add rdtsc() support for s390x common: Add rdtsc() support for s390x May 1, 2019
@smithfarm
Copy link
Contributor

@smithfarm I think you're the last one to do anything with s390, care to comment?

The only thing I can do is test whether it breaks the s390x build. Unfortunately, right now I can't do even that because the s390x build is already broken on tip of master branch - tracked at http://tracker.ceph.com/issues/39611 (any and all help fixing that would be appreciated!)

@nealef
Copy link
Author

nealef commented May 7, 2019

I can look at those issues. I was breaking with the fcontext stuff due to boost context not having s390x support for make_fcontext/jump_fcontext/ontop_fcontext. I have managed to provide this function within the last hour. I haven't seen the string problem you've seen. Does it need to build with the devtoolset-7 suite?

@smithfarm
Copy link
Contributor

@nealef Thanks! The build I'm referring to here is the RPM build, i.e. from the spec file.

The build referred to in that issue is on openSUSE Tumbleweed, but in general to reproduce the build failure you would need to run make-dist to produce a tarball and spec file, and then use rpmbuild to try to build the ceph RPMs from that tarball and spec file...

Alternatively, and perhaps simpler, you could look at the full build log and reproduce the cmake, make etc. commands that it uses to do the build: https://build.opensuse.org/public/build/filesystems:ceph:octopus:upstream/openSUSE_Tumbleweed_s390x/s390x/ceph/_log

@smithfarm
Copy link
Contributor

@nealef Also, you can run ./install-deps.sh in the top-level directory of the git clone to install all build the dependencies in your build environment.

The full build log above shows all the packages that get installed for the Tumbleweed build, but for RHEL/CentOS those will obviously be different.

@nealef
Copy link
Author

nealef commented May 7, 2019 via email

@nealef
Copy link
Author

nealef commented May 7, 2019 via email

@tchaikov
Copy link
Contributor

@smithfarm as http://tracker.ceph.com/issues/39611 has been addressed, could you help verify that this change builds?

@stale
Copy link

stale bot commented Aug 17, 2019

This pull request has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs for another 30 days.
If you are a maintainer or core committer, please follow-up on this pull request to identify what steps should be taken by the author to move this proposed change forward.
If you are the author of this pull request, thank you for your proposed contribution. If you believe this change is still appropriate, please ensure that any feedback has been addressed and ask for a code review.

@stale stale bot added the stale label Aug 17, 2019
@nealef
Copy link
Author

nealef commented Aug 19, 2019

Is there anything you need from me to help this progress?

@stale stale bot removed the stale label Aug 19, 2019
@cbodley
Copy link
Contributor

cbodley commented Aug 19, 2019

I was breaking with the fcontext stuff due to boost context not having s390x support for make_fcontext/jump_fcontext/ontop_fcontext. I have managed to provide this function within the last hour.

do you have patches working for boost context on s390x? it would be great to get those upstream - you might chime in on boostorg/context#111

@nealef
Copy link
Author

nealef commented Aug 19, 2019 via email

@tchaikov tchaikov mentioned this pull request Oct 14, 2019
3 tasks
@tchaikov
Copy link
Contributor

thanks Neale ! closed in favor of #30874 .

@tchaikov tchaikov closed this Oct 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants