diff options
author | Matthew Wood <thepacketgeek@gmail.com> | 2024-02-05 02:27:36 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2024-02-09 13:23:45 +0300 |
commit | 8a6d5fec6c7f952d66ad362c249100d040a21e3f (patch) | |
tree | 3f01104f5baee2f84340abc85892747b99c1a4a4 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | aa7b608d69ea9dfd65ef3694b22a2017d54e3d5b (diff) | |
download | linux-8a6d5fec6c7f952d66ad362c249100d040a21e3f.tar.xz |
net: netconsole: add a userdata config_group member to netconsole_target
Create configfs machinery for netconsole userdata appending, which depends
on CONFIG_NETCONSOLE_DYNAMIC (for configfs interface). Add a userdata
config_group to netconsole_target for managing userdata entries as a tree
under the netconsole configfs subsystem. Directory names created under the
userdata directory become userdatum keys; the userdatum value is the
content of the value file.
Include the minimum-viable-changes for userdata configfs config_group.
init_target_config_group() ties in the complete configfs machinery to
avoid unused func/variable errors during build. Initializing the
netconsole_target->group is moved to init_target_config_group, which
will also init and add the userdata config_group.
Each userdatum entry has a limit of 256 bytes (54 for
the key/directory, 200 for the value, and 2 for '=' and '\n'
characters), which is enforced by the configfs functions for updating
the userdata config_group.
When a new netconsole_target is created, initialize the userdata
config_group and add it as a default group for netconsole_target
config_group, allowing the userdata configfs sub-tree to be presented
in the netconsole configfs tree under the userdata directory.
Co-developed-by: Breno Leitao <leitao@debian.org>
Signed-off-by: Breno Leitao <leitao@debian.org>
Signed-off-by: Matthew Wood <thepacketgeek@gmail.com>
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