Cherry-pick CL 1250286 from SC stg.

HSA Finalizer: Add dumping of code object, ISA and executable to loader.

This is controlled by loader options -dump-all, -dump-isa, -dump-code, -dump-exec

The options can now also be set with env variable LOADER_OPTIONS_APPEND.

Added tests to finalizer_offline

Testing: smoke, dumping on hardware

Reviewed by: Konstantin Zhuravlyov

[git-p4: depot-paths = "//depot/stg/hsa/drivers/hsa/runtime/": change = 1255351]
This commit is contained in:
Nikolay Haustov [TEXT]
2016-04-07 06:01:20 -05:00
parent 823c254d61
commit a795909bca
5 ha cambiato i file con 177 aggiunte e 0 eliminazioni
@@ -319,6 +319,9 @@ public:
virtual uint64_t FindHostAddress(uint64_t device_address) = 0;
virtual void Print(std::ostream& out) = 0;
virtual bool PrintToFile(const std::string& filename) = 0;
protected:
Executable() {}