aboutsummaryrefslogtreecommitdiffhomepage
path: root/zluda_dump/src
diff options
context:
space:
mode:
authorAndrzej Janik <[email protected]>2021-09-12 15:12:26 +0200
committerAndrzej Janik <[email protected]>2021-09-12 15:12:26 +0200
commit5290190727bafcea9b184411aedb184744bbec5a (patch)
tree6e7ca7238081d446b32cbf7307608cb6241b0198 /zluda_dump/src
parentab67cd46fcda1c98179d659124ef730c31143b18 (diff)
downloadZLUDA-5290190727bafcea9b184411aedb184744bbec5a.tar.gz
ZLUDA-5290190727bafcea9b184411aedb184744bbec5a.zip
Add support for a new export table
Diffstat (limited to 'zluda_dump/src')
-rw-r--r--zluda_dump/src/lib.rs11
1 files changed, 10 insertions, 1 deletions
diff --git a/zluda_dump/src/lib.rs b/zluda_dump/src/lib.rs
index 1d49187..f3dd44a 100644
--- a/zluda_dump/src/lib.rs
+++ b/zluda_dump/src/lib.rs
@@ -813,6 +813,13 @@ const HEAP_ACCESS_GUID: CUuuid = CUuuid {
],
};
+const DEVICE_EXTENDED_RT_GUID: CUuuid = CUuuid {
+ bytes: [
+ 0xB1u8, 0x05, 0x41, 0xE1, 0xF7, 0xC7, 0xC7, 0x4A, 0x9F, 0x64, 0xF2, 0x23, 0xBE, 0x99, 0xF1,
+ 0xE2,
+ ],
+};
+
unsafe fn get_export_override_fn(
original_fn: *const c_void,
guid: *const CUuuid,
@@ -828,7 +835,9 @@ unsafe fn get_export_override_fn(
| (CONTEXT_LOCAL_STORAGE_INTERFACE_V0301_GUID, 2)
| (CTX_CREATE_BYPASS_GUID, 1)
| (HEAP_ACCESS_GUID, 1)
- | (HEAP_ACCESS_GUID, 2) => original_fn,
+ | (HEAP_ACCESS_GUID, 2)
+ | (DEVICE_EXTENDED_RT_GUID, 5)
+ | (DEVICE_EXTENDED_RT_GUID, 13) => original_fn,
(CUDART_INTERFACE_GUID, 1) => {
ORIGINAL_GET_MODULE_FROM_CUBIN = mem::transmute(original_fn);
get_module_from_cubin as *const _