NV services: Difference between revisions
No edit summary |
|||
(3 intermediate revisions by the same user not shown) | |||
Line 1,542: | Line 1,542: | ||
= nvmemp = | = nvmemp = | ||
NVIDIA memory profiler (this service is not available on retail units). | NVIDIA memory profiler (this service is not available on retail units). | ||
/dev/nvhost-ctrl sends the ioctl NVHOST_IOCTL_CTRL_GET_CONFIG to check the config "nv!NV_MEMORY_PROFILER". If config_str returns "1", the | /dev/nvhost-ctrl sends the ioctl NVHOST_IOCTL_CTRL_GET_CONFIG to check the config "nv!NV_MEMORY_PROFILER". If config_str returns "1", the application attempts to use nvmemp. | ||
{| class="wikitable" border="1" | {| class="wikitable" border="1" | ||
Line 1,550: | Line 1,550: | ||
| 0 || Open | | 0 || Open | ||
|- | |- | ||
| 1 || | | 1 || GetAruid | ||
|} | |} | ||
Line 1,560: | Line 1,560: | ||
! Cmd || Name | ! Cmd || Name | ||
|- | |- | ||
| 0 || [[# | | 0 || [[#OpenDebugFS]] | ||
|- | |- | ||
| 1 || [[# | | 1 || [[#CloseDebugFS]] | ||
|- | |- | ||
| 2 || [[# | | 2 || [[#GetDebugFSKeys]] | ||
|- | |- | ||
| 3 || | | 3 || GetDebugFSValue | ||
|- | |- | ||
| 4 || | | 4 || SetDebugFSValue | ||
|} | |} | ||
== | == OpenDebugFS == | ||
Takes process handle. Returns | Takes a process handle. Returns a u32 '''fd'''. | ||
== | == CloseDebugFS == | ||
Takes fd and closes it. | Takes a u32 '''fd''' and closes it. | ||
== | == GetDebugFSKeys == | ||
Takes fd and reads | Takes a u32 '''fd''' and reads debug contents into a type-6 buffer. | ||
= nvgem:c = | = nvgem:c = | ||
Line 1,587: | Line 1,587: | ||
! Cmd || Name | ! Cmd || Name | ||
|- | |- | ||
| 0 || | | 0 || Initialize | ||
|- | |- | ||
| 1 || | | 1 || GetGemEvent | ||
|- | |- | ||
| 2 || | | 2 || | ||
|- | |- | ||
| 3 || | | 3 || RegisterUnregisterAppIdLocked | ||
|- | |- | ||
| 4 || | | 4 || | ||
|- | |- | ||
| [1.0.0-4.1.0] 5 || | | [1.0.0-4.1.0] 5 || GetAruid | ||
|- | |- | ||
| 6 || | | 6 || HandleDeferredErrors | ||
|- | |- | ||
| 7 || [3.0.0+] | | 7 || [3.0.0+] | ||
Line 1,611: | Line 1,611: | ||
! Cmd || Name | ! Cmd || Name | ||
|- | |- | ||
| 0 || | | 0 || Initialize | ||
|- | |- | ||
| 1 || | | 1 || GetAruid | ||
|- | |- | ||
| [1.0.0-8.1.0] 2 || | | [1.0.0-8.1.0] 2 || ReadNextCdBlock | ||
|- | |- | ||
| 3 || [8.0.0+] | | 3 || [8.0.0+] |