Bug #59953 Performance schema cycle-counting code lacks S390 support
Submitted: 4 Feb 2011 17:46 Modified: 16 Oct 2012 4:43
Reporter: [ name withheld ] Email Updates:
Status: Won't fix Impact on me:
None 
Category:MySQL Server: Performance Schema Severity:S4 (Feature request)
Version:5.5.8 OS:Any
Assigned to: Marc ALFF CPU Architecture:Any
Tags: Contribution

[4 Feb 2011 17:46] [ name withheld ]
Description:
mysql 5.5.8 fails its regression tests on s390 and s390x systems because my_rdtsc.c lacks support for that platform.

How to repeat:
1. Build on s390 or s390x

2. Run regression tests

Suggested fix:
I will attach a proposed patch that works if the compiler is gcc.  This has been tested on RHEL-6 and current Fedora.
[4 Feb 2011 17:46] [ name withheld ]
Proposed patch

Attachment: mysql-s390-tsc.patch (application/octet-stream, text), 1.65 KiB.

[4 Feb 2011 18:07] Valeriy Kravchuk
Thank you for the feature request and code contributed. 

I do not see s390 among supported platforms at http://www.mysql.com/support/supportedplatforms/database.html though, so I am not sure this patch will be added any time soon...
[16 Oct 2012 4:43] Erlend Dahl
Internal review by Marc Alff:

Thanks for the contributed patch.

I don't doubt the patch is correct and working, it looks simple enough.

However:
- S390 is not a supported platform,
- there are no plans to support S390 (that I know of), and no hardware /
engineering resources for that.

Closing this enhancement request.

If building on S390 is really needed, the best course of action is probably
to maintain a patchset for makefiles, rdtsc, etc, and build from source ...
which seems to be the case already.