-
Notifications
You must be signed in to change notification settings - Fork 349
Add memory usage scan possibility #3389
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
7438741
alloc: Add possibility to read memory usage in runtime
ktrzcinx 178c919
ipc: Rename function handling SOF_IPC_GLB_TRACE_MSG
ktrzcinx 8a9b5bb
ipc: debug: Add memory usage probing possibility
ktrzcinx 2e7e5c1
ipc: debug: Add KConfig to conditionally compile memory scan feature
ktrzcinx f64bfb1
ext_man: Add information about runtime memory scan possibility
ktrzcinx File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -10,3 +10,4 @@ CONFIG_COMP_SRC=n | |
| CONFIG_COMP_ASRC=n | ||
| CONFIG_COMP_TDFB=n | ||
| CONFIG_HAVE_AGENT=n | ||
| CONFIG_DEBUG_MEMORY_USAGE_SCAN=n | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -10,3 +10,4 @@ CONFIG_COMP_SRC=n | |
| CONFIG_COMP_ASRC=n | ||
| CONFIG_COMP_TDFB=n | ||
| CONFIG_HAVE_AGENT=n | ||
| CONFIG_DEBUG_MEMORY_USAGE_SCAN=n | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| /* SPDX-License-Identifier: BSD-3-Clause | ||
| * | ||
| * Copyright(c) 2020 Intel Corporation. All rights reserved. | ||
| * | ||
| * Author: Author: Karol Trzcinski <karolx.trzcinski@linux.intel.com> | ||
| */ | ||
|
|
||
| #ifndef __IPC_DEBUG_H__ | ||
| #define __IPC_DEBUG_H__ | ||
|
|
||
| #include <ipc/header.h> | ||
| #include <stdint.h> | ||
|
|
||
| /** ABI3.18 */ | ||
| enum sof_ipc_dbg_mem_zone { | ||
| SOF_IPC_MEM_ZONE_SYS = 0, /**< System zone */ | ||
| SOF_IPC_MEM_ZONE_SYS_RUNTIME = 1, /**< System-runtime zone */ | ||
| SOF_IPC_MEM_ZONE_RUNTIME = 2, /**< Runtime zone */ | ||
| SOF_IPC_MEM_ZONE_BUFFER = 3, /**< Buffer zone */ | ||
| }; | ||
|
|
||
| /** ABI3.18 */ | ||
| struct sof_ipc_dbg_mem_usage_elem { | ||
| uint32_t zone; /**< see sof_ipc_dbg_mem_zone */ | ||
| uint32_t id; /**< heap index within zone */ | ||
| uint32_t used; /**< number of bytes used in zone */ | ||
| uint32_t free; /**< number of bytes free to use within zone */ | ||
| uint32_t reserved; /**< reserved for future use */ | ||
| } __attribute__((packed)); | ||
|
|
||
| /** ABI3.18 */ | ||
| struct sof_ipc_dbg_mem_usage { | ||
| struct sof_ipc_reply rhdr; /**< generic IPC reply header */ | ||
| uint32_t reserved[4]; /**< reserved for future use */ | ||
| uint32_t num_elems; /**< elems[] counter */ | ||
| struct sof_ipc_dbg_mem_usage_elem elems[]; /**< memory usage information */ | ||
| } __attribute__((packed)); | ||
|
|
||
| #endif /* __IPC_DEBUG_H__ */ | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.