Requirements
------------
-YouneedGCC3.4orlatertocompilethes390port.
-Torunvalgrindaz10machineoranylatermodelisrecommended.
Oldermachinemodelsdowntoandincludingz990mayworkbuthave
notbeentestedextensively.
Limitations
-----------
-31-bitclientprogramsarenotsupported.
-Hexadecimalfloatingpointisnotsupported.
-Transactionalmemoryisnotsupported.
-Instructionsoperatingonvectorregistersarenotsupported.
-memcheck,cachegrind,drd,helgrind,massif,lackey,andnoneare
supported.
-Onmachinemodelspredatingz10,cachegrindwillassumeaz10cache
architecture.Otherwise,cachegrindwillquerythehostscachesystem
andusethoseparameters.
-callgrindandallexperimentaltoolsarecurrentlynotsupported.
-Somegccversionsusemvctocopy4/8bytevalues.Thiswillaffect
certaindebugmessages.Forexample,memcheckwillcomplainabout
4one-bytereads/writesinsteadofjustasingleread/write.
-Thetransactional-executionfacilityisnotsupported;itismasked
offfromHWCAP.
-Thevectorfacilityisnotsupported;itismaskedofffromHWCAP.
Hardwarefacilities
-------------------
Valgrinddoesnotrequirethatthehostmachinehasthesamehardware
facilitiesasthemachineforwhichtheclientprogramwascompiled.
Thisisconvenient.Ifpossible,theJITcompilerwilltranslatethe
clientinstructionsaccordingtothefacilitiesavailableonthehost.
Thismeans,though,thatprobingforhardwarefacilitiesbyissuing
instructionsfromthatfacilityandobservingwhetherSIGILListhrown
maynotwork.Asaconsequence,programsthatattempttodosomay
behavedifferently.Itisbelievedthatthisisarareusecase.
Recommendations
---------------
Applicationsshouldbecompiledwith-fno-builtintoavoid
falsepositivesduetobuiltinstringoperationswhenrunningmemcheck.
ReadingMaterial
----------------
(1)LinuxforzSeriesELFABISupplement
http://refspecs.linuxfoundation.org/ELF/zSeries/index.html
(2)z/ArchitecturePrinciplesofOperation
http://publibfi.boulder.ibm.com/epubs/pdf/dz9zr010.pdf
(3)z/ArchitectureReferenceSummary
http://publibfi.boulder.ibm.com/epubs/pdf/dz9zs008.pdf