Thread (7 messages) 7 messages, 3 authors, 2021-11-17

Re: [RFC net-next 1/2] net: add netdev_refs debug

flat view

From: Eric Dumazet <hidden>
Date: 2021-11-17 19:13:20

On Wed, Nov 17, 2021 at 9:47 AM Jakub Kicinski [off-list ref] wrote:
Debugging netdev ref leaks is still pretty hard. Eric added
optional use of a normal refcount which is useful for tracking
abuse of existing users.

For new code, however, it'd be great if we could actually track
the refs per-user. Allowing us to detect leaks where they happen.
This patch introduces a netdev_ref type and uses the debug_objects
infra to track refs being lost or misused.

In the future we can extend this structure to also catch those
who fail to release the ref on unregistering notification.

Signed-off-by: Jakub Kicinski <kuba@kernel.org>
---
Interesting, I was working on something very different, let me send
the RFC (it is absolutely not complete at this point)
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help