XenevaOS
Loading...
Searching...
No Matches
Public Attributes | List of all members
amdxdna_drm_bo_usage Struct Reference

#include <amdxdna_accel.h>

Public Attributes

__s64 pid
 
__u64 total_usage
 
__u64 internal_usage
 
__u64 heap_usage
 

Detailed Description

struct amdxdna_drm_bo_usage - all types of BO usage BOs managed by XRT/SHIM/driver is counted as internal. Others are counted as external which are managed by applications.

Among all types of BOs: AMDXDNA_BO_DEV_HEAP - is counted for internal. AMDXDNA_BO_SHARE - is counted for external. AMDXDNA_BO_CMD - is counted for internal. AMDXDNA_BO_DEV - is counted by heap_usage only, not internal or external. It does not add to the total memory footprint since its mem comes from heap which is already counted as internal.

Member Data Documentation

◆ heap_usage

__u64 amdxdna_drm_bo_usage::heap_usage

@heap_usage: Total device BO size used by process.

◆ internal_usage

__u64 amdxdna_drm_bo_usage::internal_usage

@internal_usage: Total internal BO size used by process.

◆ pid

__s64 amdxdna_drm_bo_usage::pid

@pid: The ID of the process to query from.

◆ total_usage

__u64 amdxdna_drm_bo_usage::total_usage

@total_usage: Total BO size used by process.


The documentation for this struct was generated from the following file: