Lines Matching refs:heap
7 …esting :ref:`heap information <heap-information>`, :ref:`detecting heap corruption <heap-corruptio…
9 For general information about the heap memory allocator, see the :doc:`Heap Memory Allocation </api…
16 To obtain information about the state of the heap:
18 …RTOS function which returns the number of free bytes in the (data memory) heap. This is equivalent…
20 … heap. This is the largest single allocation which is currently possible. Tracking this value and …
21 …ated :cpp:func:`heap_caps_get_minimum_free_size` can be used to track the heap "low water mark" si…
22 …h contains the information from the above functions, plus some additional heap-specific data (numb…
24 …will output detailed information about the structure of each block in the heap. Note that this can…
32 Heap corruption detection allows you to detect various types of heap memory errors:
41 The heap implementation (``multi_heap.c``, etc.) includes a lot of assertions which will fail if th…
43 …heap integrity assertion fails, a line will be printed like ``CORRUPT HEAP: multi_heap.c:225 detec…
45 …heap integrity by calling :cpp:func:`heap_caps_check_integrity_all` or related functions. This fun…
79 …he crash is the symptom of memory corruption when the system realises the heap is corrupt, but usu…
81 …ned. You can move these checks around to "close in on" the section of code that corrupted the heap.
84 … buffer overflows, `heap tracing`_ in ``HEAP_TRACE_ALL`` mode lets you see which callers are alloc…
85 …ps_dump` or :cpp:func:`heap_caps_dump_all` can give an indication of what heap blocks are surround…
90 Temporarily increasing the heap corruption detection level can give more detailed information about…
97 …heap corruption features are enabled, but provided assertions are enabled (the default configurati…
101 Calling :cpp:func:`heap_caps_check_integrity` in Basic mode will check the integrity of all heap st…
106 At this level, heap memory is additionally "poisoned" with head and tail "canary bytes" before and …
110 …heap corruption checks can also detect most out of bounds writes, but this setting is more precise…
116 When :cpp:func:`heap_caps_check_integrity` is called, all allocated blocks of heap memory have thei…
133 …iables, because in IDF most task stacks are originally allocated from the heap and in C stack memo…
135 …ates it is reading heap memory after it has been freed (a "use after free bug".) The application s…
144 - For free heap blocks, the checker expects to find all bytes set to 0xFE. Any other values indicat…
145 - For allocated heap blocks, the behaviour is the same as for `Light Impact` mode. The canary bytes…
152 Heap Task Tracking can be used to get per task info for heap memory allocation.
153 Application has to specify the heap capabilities for which the heap allocation is to be tracked.
175 …apSize`, :cpp:func:`heap_caps_get_free_size`, or :ref:`related functions <heap-information>` to tr…
187 - Call the function :cpp:func:`heap_trace_dump` to dump the results of the heap trace.
216 The output from the heap trace will look something like this:
255 - ``@ 0x...`` is the heap address returned from malloc/calloc.
262 …e project configuration menu, under ``Heap Memory Debugging`` -> ``Enable heap tracing`` -> ``Heap…
277 …on :cpp:func:`heap_trace_init_tohost` early in the program, to initialize JTAG heap tracing module.
279 …In host-based mode argument to this function is ignored and heap tracing module behaves like ``HEA…
305 To gather and analyse heap trace do the following on the host:
324 mon esp sysview start file:///tmp/heap.svdat
339 5. Quit GDB when program stops at :cpp:func:`heap_trace_stop`. Trace data are saved in ``/tmp/heap.…
343 The output from the heap trace will look something like this::
345 Parse trace from '/tmp/heap.svdat'...
347 Process events from '['/tmp/heap.svdat']'...
407 Processed 14 heap events.
429 Heap tracing can also be used to help track down heap corruption. When a region in heap is corrupte…
431 If you have some idea at what time the corruption occurred, enabling heap tracing in ``HEAP_TRACE_A…
433 Using heap tracing in this way is very similar to memory leak detection as described above. For mem…
438 …heap tracing in menuconfig increases the code size of your program, and has a very small negative …
440 When heap tracing is running, heap allocation/free operations are substantially slower than when he…
450 …ch as printing floating point numbers, will allocate some memory from the heap on demand. These al…
451 …llocate heap memory buffers to handle incoming or outgoing data. These memory buffers are usually …
454 …tracing is running, and look for patterns (multiple matching allocations) in the heap trace output.