This patch adds memory info in npu_stat_app structure.
Signed-off-by: Yelin Jeong <yelini.jeong@samsung.com>
} npu_app_status;
/**
+ * struct npu_mem_info - Describes memory info
+ * @alloc: Size of allocated memory in the device
+ * @freed: Size of freed memory in the device
+ */
+typedef struct {
+ uint64_t alloc;
+ uint64_t freed;
+} npu_mem_info;
+
+/**
* @brief Description of npu request (per inference) status
*/
typedef enum {
uint32_t num_total_reqs;
uint32_t num_active_reqs;
- uint64_t total_alloc_mem;
- uint64_t total_freed_mem;
+ npu_mem_info reserved;
+ npu_mem_info reserved_cont;
+ npu_mem_info system;
} npu_stat_app;
typedef struct {