Skip to content

[v5.1] [Heap Trace Standalone] support external memory for hash map (IDFGH-9845) #11172

Closed
@chipweinberger

Description

@SoucheSouche

Thanks for all your work on #10793.

I noticed that the hash map no longer supports external memory. I wont be able to use the hash map in my project without it as I don't have very much spare internal RAM. =(

Can you please add support for external ram?

    config HEAP_TRACE_HASH_MAP
        bool "Use hash map mechanism to access heap trace records"
        depends on HEAP_TRACING_STANDALONE
        default n
        help
            ....
            External ram can be used for this map if both CONFIG_SPIRAM_ALLOW_BSS_SEG_EXTERNAL_MEMORY 
            and HEAP_TRACE_HASH_MAP_USE_EXTRAM are enabled

    config HEAP_TRACE_HASH_MAP_USE_EXTRAM
        depends on CONFIG_SPIRAM_ALLOW_BSS_SEG_EXTERNAL_MEMORY
        depends on HEAP_TRACE_HASH_MAP
        default n
static 
#if HEAP_TRACE_HASH_MAP_USE_EXTRAM
EXT_RAM_BSS_ATTR
#endif
heap_trace_hash_list_t hash_map[(size_t)CONFIG_HEAP_TRACE_HASH_MAP_SIZE];

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions