[PATCH 0/4] ref_tracker: register debugfs files for each ref_tracker_dir
From: Jeff Layton
Date: Mon Apr 14 2025 - 11:03:03 EST
I had previously sent some patches to add debugfs files for the net
namespace refcount trackers, but Andrew convinced me to make this more
generic and better-integrated into the ref_tracker infrastructure.
This adds a new ref_tracker_dir_debugfs() call that subsystems can call
to finalize the name of their dir and register a debugfs file for it.
The last two patches add these calls for the netns and netdev
ref_trackers.
Signed-off-by: Jeff Layton <jlayton@xxxxxxxxxx>
---
Jeff Layton (4):
ref_tracker: add a top level debugfs directory for ref_tracker
ref_tracker: add ability to register a file in debugfs for a ref_tracker_dir
net: add ref_tracker_dir_debugfs() calls for netns refcount tracking
net: register debugfs file for net_device refcnt tracker
include/linux/ref_tracker.h | 13 ++++++
lib/ref_tracker.c | 98 ++++++++++++++++++++++++++++++++++++++++++++-
net/core/dev.c | 2 +
net/core/net_namespace.c | 34 +++++++++++++++-
4 files changed, 145 insertions(+), 2 deletions(-)
---
base-commit: 695caca9345a160ecd9645abab8e70cfe849e9ff
change-id: 20250413-reftrack-dbgfs-3767b303e2fa
Best regards,
--
Jeff Layton <jlayton@xxxxxxxxxx>