diff options
author | Ping-Ke Shih <pkshih@realtek.com> | 2025-01-22 14:03:03 +0800 |
---|---|---|
committer | Ping-Ke Shih <pkshih@realtek.com> | 2025-02-03 10:24:26 +0800 |
commit | 831cceed3baf498984add821d288ced95a4ec4cf (patch) | |
tree | 62629f4c970c82393c17c0e32c4dcb2a3dbda624 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 4afde17d266795eff3ebb94526c7b04ea876259d (diff) |
wifi: rtw89: debugfs: implement file_ops::read/write to replace seq_file
Since debugfs needs wiphy lock held, wiphy_locked_debugfs_{read,write}()
will be adopted, so implmenet file_ops::read/write along with their
arguments.
For reading part, it needs lots of changes because seq_file is not
suitable for wiphy_locked_debugfs_{read,write}(), so use spatch script
below to convert basically, and manually implement the functions.
@ rule1 @
identifier m;
@@
- seq_printf(m,
+ p += scnprintf(p, end - p,
...)
@ rule2 @
identifier m;
@@
- seq_puts(m,
+ p += scnprintf(p, end - p,
...)
For current version, only 4K buffer to output. To note ourselves, add
ellipsis symbol "..." to trailing if buffer is full. Later, add an option
to specify buffer size needed by a debugfs entry.
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Link: https://patch.msgid.link/20250122060310.31976-4-pkshih@realtek.com
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions