Re: [PATCH v6 2/8] lib/ref_tracker: improve printing stats

2023-03-29 Thread Andi Shyti
Hi Andrzej, [...] > -void ref_tracker_dir_print_locked(struct ref_tracker_dir *dir, > - unsigned int display_limit) > +struct ref_tracker_dir_stats { > + int total; > + int count; > + struct { > + depot_stack_handle_t stack_handle; > +

[PATCH v6 2/8] lib/ref_tracker: improve printing stats

2023-03-29 Thread Andrzej Hajda
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