diff options
author | Breno Leitao <leitao@debian.org> | 2025-02-06 14:05:54 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2025-02-10 18:04:18 +0300 |
commit | 563fe939a81ab08198b78dc8451ef3090969f30b (patch) | |
tree | d45c4d99f1a3370738db64c0f81f5117acac2f00 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 4205f6495eea62c7f4042346e045e4ac706e1830 (diff) | |
download | linux-563fe939a81ab08198b78dc8451ef3090969f30b.tar.xz |
netconsole: Helper to count number of used entries
Add a helper function nr_extradata_entries() to count the number of used
extradata entries in a netconsole target. This refactors the duplicate
code for counting entries into a single function, which will be reused
by upcoming CPU sysdata changes.
The helper uses list_count_nodes() to count the number of children in
the userdata group configfs hierarchy.
Signed-off-by: Breno Leitao <leitao@debian.org>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions