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 applications attempts to talk to use nvmemp.
/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 || GetPid
| 1 || GetAruid
|}
|}


Line 1,560: Line 1,560:
! Cmd || Name
! Cmd || Name
|-
|-
| 0 || [[#OpenLog]]
| 0 || [[#OpenDebugFS]]
|-
|-
| 1 || [[#CloseLog]]
| 1 || [[#CloseDebugFS]]
|-
|-
| 2 || [[#ReadLog]]
| 2 || [[#GetDebugFSKeys]]
|-
|-
| 3 ||
| 3 || GetDebugFSValue
|-
|-
| 4 ||
| 4 || SetDebugFSValue
|}
|}


== OpenLog ==
== OpenDebugFS ==
Takes process handle. Returns an fd.
Takes a process handle. Returns a u32 '''fd'''.


== CloseLog ==
== CloseDebugFS ==
Takes fd and closes it.
Takes a u32 '''fd''' and closes it.


== ReadLog ==
== GetDebugFSKeys ==
Takes fd and reads log into a type-6 buffer.
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+]