Skip to content

Commit a850601

Browse files
author
Jyri Sarha
committed
topology2: Add lifetime and shaded -bytes_requirement widget attributes
Add lifetime_bytes_requirement and shared_bytes_requirement widget attributes. This token's value indicates the amount of heap memory needed at component initialization phase. Signed-off-by: Jyri Sarha <jyri.sarha@linux.intel.com>
1 parent 1067470 commit a850601

2 files changed

Lines changed: 16 additions & 0 deletions

File tree

tools/topology/topology2/include/common/tokens.conf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ Object.Base.VendorToken {
2929
domain_id 419
3030
stack_bytes_requirement 420
3131
heap_bytes_requirement 421
32+
lifetime_bytes_requirement 422
33+
shared_bytes_requirement 423
3234
}
3335

3436
"2" {

tools/topology/topology2/include/components/widget-common.conf

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,3 +155,17 @@ DefineAttribute."heap_bytes_requirement" {
155155
token_ref "comp.word"
156156
}
157157

158+
## Liftime memory alllocation requirement in bytes for this component.
159+
## this token's value indicates the amount of allocated memory needed at component init phase
160+
DefineAttribute."lifetime_bytes_requirement" {
161+
# Token set reference name and type
162+
token_ref "comp.word"
163+
}
164+
165+
## Shared memory alllocation requirement in bytes for this component.
166+
## this token's value indicates the amount of shared memory the component may need to alocated
167+
DefineAttribute."shared_bytes_requirement" {
168+
# Token set reference name and type
169+
token_ref "comp.word"
170+
}
171+

0 commit comments

Comments
 (0)