ref_tracker: add a static classname string to each ref_tracker_dir
authorJeff Layton <jlayton@kernel.org>
Wed, 18 Jun 2025 14:24:17 +0000 (10:24 -0400)
committerJakub Kicinski <kuba@kernel.org>
Fri, 20 Jun 2025 00:02:04 +0000 (17:02 -0700)
commitaa7d26c3c3497258b712fb97221e775733a710b7
tree5aad9861ba1825fd92a81b97e636fb2ded3c50df
parent49c94af071fc6c9f5e1db52b3031dec28daa90c3
ref_tracker: add a static classname string to each ref_tracker_dir

A later patch in the series will be adding debugfs files for each
ref_tracker that get created in ref_tracker_dir_init(). The format will
be "class@%px". The current "name" string can vary between
ref_tracker_dir objects of the same type, so it's not suitable for this
purpose.

Add a new "class" string to the ref_tracker dir that describes the
the type of object (sans any individual info for that object).

Also, in the i915 driver, gate the creation of debugfs files on whether
the dentry pointer is still set to NULL. CI has shown that the
ref_tracker_dir can be initialized more than once.

Signed-off-by: Jeff Layton <jlayton@kernel.org>
Link: https://patch.msgid.link/20250618-reftrack-dbgfs-v15-4-24fc37ead144@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/gpu/drm/display/drm_dp_tunnel.c
drivers/gpu/drm/i915/intel_runtime_pm.c
drivers/gpu/drm/i915/intel_wakeref.c
include/linux/ref_tracker.h
lib/test_ref_tracker.c
net/core/dev.c
net/core/net_namespace.c