-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using heap checker with external memory pool #803
Comments
By design of this api, you're not supposed to call malloc hooks yourself. What are you trying to achieve? |
Actually looking at ticket subject, it looks like you want heap checker to "check" your dma-ful memory allocator. But it is not capable of that. What exactly you want it to check? I think you probably want to look at asan api instead. I.e. so that you can integrate your custom malloc with it. |
Yes. I want to track memory allocations from a custom allocator. El El dom, 26 jun 2016 a las 3:58, Aliaksey Kandratsenka (aka Aliaksei
|
Hm. What kind of tracking is that? Can you please elaborate ? Have you looked at asan ? |
I'm trying to use the gperftools heap checker with DPDK packet buffers.
DPDK is an library that allocates packet buffers in an specially mapped memory that a network card can access directly using DMA. Therefore, I can't use tcmalloc to allocate them.
I'm trying to invoke MallocHook::InvokeNewHook & MallocHook::InvokeDeleteHook when allocating and releasing packet buffers but they are undefined inline functions. Also, the slow variants are private members of MallocHook class.
How this API is supposed to work? Can you make public the Slow variants?
The text was updated successfully, but these errors were encountered: