linux.cfg 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. # Copyright (c) 2021 Project CHIP Authors
  2. #
  3. # Licensed under the Apache License, Version 2.0 (the "License");
  4. # you may not use this file except in compliance with the License.
  5. # You may obtain a copy of the License at
  6. #
  7. # http://www.apache.org/licenses/LICENSE-2.0
  8. #
  9. # Unless required by applicable law or agreed to in writing, software
  10. # distributed under the License is distributed on an "AS IS" BASIS,
  11. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. # See the License for the specific language governing permissions and
  13. # limitations under the License.
  14. # Memory tools default configuation for Linux.
  15. {
  16. 'section': {
  17. # By default, only these sections will be included
  18. # when operating by sections.
  19. 'default': [
  20. '.text', '.data', '.data.rel.ro', '.bss', '.dynamic', '.got',
  21. '.init', '.init_array', '.rodata'
  22. ]
  23. },
  24. # 'symbol': {
  25. # 'free': {
  26. # # These symbols mark the start or end of areas where memory that
  27. # # does not belong to any symbol is considered unused (rather than
  28. # # a gap that may be in use for some non-symbol purpose, e.g. string
  29. # # constants or alignment).
  30. # 'start': [],
  31. # 'end': [],
  32. # }
  33. # },
  34. 'region': {
  35. # Regions are sets of sections that can be used for aggregate reports.
  36. 'sections': {
  37. 'FLASH': [
  38. ".dynstr",
  39. ".dynsym",
  40. ".eh_frame_hdr",
  41. ".eh_frame",
  42. ".fini",
  43. ".gcc_except_table",
  44. ".gnu.version_d",
  45. ".gnu.version_r",
  46. ".gnu.version",
  47. ".hash",
  48. ".init",
  49. ".interp",
  50. ".note.ABI-tag",
  51. ".rodata1",
  52. ".rodata",
  53. ".strtab",
  54. ".symtab",
  55. ".text",
  56. ],
  57. 'RAM': [
  58. ".bss",
  59. ".ctors",
  60. ".data1",
  61. ".data.rel.ro",
  62. ".data",
  63. ".dtors",
  64. ".dynamic",
  65. ".fini_array",
  66. ".got.plt",
  67. ".init_array",
  68. ".jcr",
  69. ".preinit_array",
  70. ".tbss",
  71. ".tdata",
  72. ]
  73. }
  74. },
  75. }