diff options
author | Andrzej Hajda <andrzej.hajda@intel.com> | 2023-06-02 12:21:34 +0200 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2023-06-06 00:28:42 +0200 |
commit | b6d7c0eb2dcbd238fa233a3a1737654e380e784a (patch) | |
tree | a11f410b265ed595980304df26f444c9d5b97828 /lib/test_ref_tracker.c | |
parent | lib/ref_tracker: add unlocked leak print helper (diff) | |
download | linux-b6d7c0eb2dcbd238fa233a3a1737654e380e784a.tar.xz linux-b6d7c0eb2dcbd238fa233a3a1737654e380e784a.zip |
lib/ref_tracker: improve printing stats
In case the library is tracking busy subsystem, simply
printing stack for every active reference will spam log
with long, hard to read, redundant stack traces. To improve
readabilty following changes have been made:
- reports are printed per stack_handle - log is more compact,
- added display name for ref_tracker_dir - it will differentiate
multiple subsystems,
- stack trace is printed indented, in the same printk call,
- info about dropped references is printed as well.
Signed-off-by: Andrzej Hajda <andrzej.hajda@intel.com>
Reviewed-by: Andi Shyti <andi.shyti@linux.intel.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'lib/test_ref_tracker.c')
-rw-r--r-- | lib/test_ref_tracker.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/test_ref_tracker.c b/lib/test_ref_tracker.c index 19d7dec70cc6..49970a7c96f3 100644 --- a/lib/test_ref_tracker.c +++ b/lib/test_ref_tracker.c @@ -64,7 +64,7 @@ static int __init test_ref_tracker_init(void) { int i; - ref_tracker_dir_init(&ref_dir, 100); + ref_tracker_dir_init(&ref_dir, 100, "selftest"); timer_setup(&test_ref_tracker_timer, test_ref_tracker_timer_func, 0); mod_timer(&test_ref_tracker_timer, jiffies + 1); |