Skip to content

tools: memleak: support custom allocator symbols - #5578

Open
sairex53 wants to merge 1 commit into
iovisor:masterfrom
sairex53:fix-memleak-custom-symbols-5392
Open

sairex53 wants to merge 1 commit into
iovisor:masterfrom
sairex53:fix-memleak-custom-symbols-5392

Conversation

@sairex53

Copy link
Copy Markdown

memleak currently builds allocator probe names by prepending --symbols-prefix to standard names. That does not cover allocators such as jemalloc 5.3, where the relevant entry points can be je_malloc_default and je_free_default.

Add --malloc-symbol and --free-symbol to both Python and libbpf memleak. The exact names override the corresponding prefixed defaults. Add regression coverage for allocations and frees through custom symbols, and document the options.

Fixes #5392.

Testing:

  • make -C libbpf-tools memleak — passed
  • Python syntax checks, test fixture compilation, CLI parsing, and git diff --check — passed
  • BPF integration tests could not run locally because pyroute2 is missing and the session has no effective BPF privileges.

This branch has not been deployed

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

memleak.py no result with jemalloc5.3.0

1 participant