Kconfig 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239
  1. # Kconfig - Actions memory manager
  2. #
  3. # Copyright (c) 2016 Actions Corporation
  4. #
  5. # SPDX-License-Identifier: Apache-2.0
  6. #
  7. menuconfig MEMORY
  8. bool
  9. prompt "Actions Memory Manager Support"
  10. default y
  11. help
  12. This option enables mem manager support
  13. config SYS_MEMORY_DEBUG
  14. bool
  15. prompt "sys mem debug"
  16. default n
  17. help
  18. This option sys mem debug enable
  19. choice
  20. prompt "app Memory Manager Funciton Selection"
  21. default APP_USED_MEM_POOL
  22. depends on MEMORY
  23. help
  24. Select Memory Manager Funciton to compile.
  25. config APP_USED_MEM_POOL
  26. bool
  27. prompt "used mem pool as app mem manager"
  28. depends on MEMORY
  29. help
  30. This option enables used mem pool as app mem manager
  31. config APP_USED_MEM_SLAB
  32. bool
  33. prompt "used mem slab as app mem manager"
  34. depends on MEMORY
  35. help
  36. This option enables used mem slab as app mem manager
  37. config APP_USED_MEM_PAGE
  38. bool
  39. prompt "used mem page/buddy as app mem manager"
  40. depends on MEMORY
  41. help
  42. This option enables used mem page/buddy as app mem manager
  43. endchoice
  44. config APP_USED_SYSTEM_SLAB
  45. bool
  46. prompt "enable app shared system slab"
  47. depends on MEMORY
  48. help
  49. This option enables used system slab as app mem manager
  50. config APP_USED_DYNAMIC_SLAB
  51. bool
  52. prompt "used mem dynamic slab , one big slab maybe divided into multiple small slab"
  53. default n
  54. depends on APP_USED_MEM_SLAB
  55. depends on MEMORY
  56. help
  57. This option enables used mem dynamic slab , one big slab maybe divided into multiple small slab
  58. config MEM_GUARD
  59. bool
  60. prompt "enable mem guard for leak and overwrite"
  61. default n
  62. depends on MEMORY
  63. help
  64. This option enables detect memory leak
  65. config SLAB_TOTAL_NUM
  66. int
  67. prompt "total slabs num"
  68. default 9
  69. depends on APP_USED_MEM_SLAB
  70. help
  71. This option set total slabs num
  72. config SLAB0_BLOCK_SIZE
  73. int
  74. prompt "sys SLAB0 block size of per slabs"
  75. default 8
  76. depends on APP_USED_MEM_SLAB
  77. help
  78. This option set block size of slab0
  79. config SLAB0_NUM_BLOCKS
  80. int
  81. prompt "sys SLAB0 num of blocks of per slabs"
  82. default 32
  83. depends on APP_USED_MEM_SLAB
  84. help
  85. This option set num of blocks of slab0
  86. config SLAB1_BLOCK_SIZE
  87. int
  88. prompt "sys SLAB1 block size of per slabs"
  89. default 16
  90. depends on APP_USED_MEM_SLAB
  91. help
  92. This option set block size of slab1
  93. config SLAB1_NUM_BLOCKS
  94. int
  95. prompt "sys SLAB1 num of blocks of per slabs"
  96. default 11
  97. depends on APP_USED_MEM_SLAB
  98. help
  99. This option set num of blocks of slab1
  100. config SLAB2_BLOCK_SIZE
  101. int
  102. prompt "sys SLAB2 block size of per slabs"
  103. default 32
  104. depends on APP_USED_MEM_SLAB
  105. help
  106. This option set block size of slab2
  107. config SLAB2_NUM_BLOCKS
  108. int
  109. prompt "sys SLAB2 num of blocks of per slabs"
  110. default 60
  111. depends on APP_USED_MEM_SLAB
  112. help
  113. This option set num of blocks of slab2
  114. config SLAB3_BLOCK_SIZE
  115. int
  116. prompt "sys SLAB3 block size of per slabs"
  117. default 64
  118. depends on APP_USED_MEM_SLAB
  119. help
  120. This option set block size of slab3
  121. config SLAB3_NUM_BLOCKS
  122. int
  123. prompt "sys SLAB3 num of blocks of per slabs"
  124. default 12
  125. depends on APP_USED_MEM_SLAB
  126. help
  127. This option set num of blocks of slab3
  128. config SLAB4_BLOCK_SIZE
  129. int
  130. prompt "sys SLAB4 block size of per slabs"
  131. default 128
  132. depends on APP_USED_MEM_SLAB
  133. help
  134. This option set block size of slab4
  135. config SLAB4_NUM_BLOCKS
  136. int
  137. prompt "sys SLAB4 num of blocks of per slabs"
  138. default 4
  139. depends on APP_USED_MEM_SLAB
  140. help
  141. This option set num of blocks of slab4
  142. config SLAB5_BLOCK_SIZE
  143. int
  144. prompt "sys SLAB5 block size of per slabs"
  145. default 256
  146. depends on APP_USED_MEM_SLAB
  147. help
  148. This option set block size of slab5
  149. config SLAB5_NUM_BLOCKS
  150. int
  151. prompt "sys SLAB5 num of blocks of per slabs"
  152. default 9
  153. depends on APP_USED_MEM_SLAB
  154. help
  155. This option set num of blocks of slab5
  156. config SLAB6_BLOCK_SIZE
  157. int
  158. prompt "sys SLAB6 block size of per slabs"
  159. default 512
  160. depends on APP_USED_MEM_SLAB
  161. help
  162. This option set block size of slab6
  163. config SLAB6_NUM_BLOCKS
  164. int
  165. prompt "sys SLAB6 num of blocks of per slabs"
  166. default 7
  167. depends on APP_USED_MEM_SLAB
  168. help
  169. This option set num of blocks of slab6
  170. config SLAB7_BLOCK_SIZE
  171. int
  172. prompt "sys SLAB7 block size of per slabs"
  173. default 1024
  174. depends on APP_USED_MEM_SLAB
  175. help
  176. This option set block size of slab7
  177. config SLAB7_NUM_BLOCKS
  178. int
  179. prompt "sys SLAB7 num of blocks of per slabs"
  180. default 7
  181. depends on APP_USED_MEM_SLAB
  182. help
  183. This option set num of blocks of slab7
  184. config SLAB8_BLOCK_SIZE
  185. int
  186. prompt "sys SLAB8 block size of per slabs"
  187. default 1536
  188. depends on APP_USED_MEM_SLAB
  189. help
  190. This option set block size of slab7
  191. config SLAB8_NUM_BLOCKS
  192. int
  193. prompt "sys SLAB8 num of blocks of per slabs"
  194. default 2
  195. depends on APP_USED_MEM_SLAB
  196. help
  197. This option set num of blocks of slab8
  198. config RAM_POOL_PAGE_NUM
  199. int
  200. prompt "sys ram pool page num"
  201. default 10
  202. help
  203. This option set num of ram pool page