aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorJiri Slaby <jslaby@suse.cz>2020-08-18 10:56:55 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-08-18 13:45:20 +0200
commit71d4abfab322e827a75304431fe0fad3c805cb80 (patch)
treea02ae2f771384146ca38f643cb6c560932373e62 /tools/perf/scripts/python/export-to-sqlite.py
parentvc_screen: document and cleanup vcs_vc (diff)
downloadwireguard-linux-71d4abfab322e827a75304431fe0fad3c805cb80.tar.xz
wireguard-linux-71d4abfab322e827a75304431fe0fad3c805cb80.zip
vc_screen: rewrite vcs_size to accept vc, not inode
It is weird to fetch the information from the inode over and over. Read and write already have the needed information, so rewrite vcs_size to accept a vc, attr and unicode and adapt vcs_lseek to that. Also make sure all sites check the return value of vcs_size for errors. And document it using kernel-doc. Signed-off-by: Jiri Slaby <jslaby@suse.cz> Link: https://lore.kernel.org/r/20200818085706.12163-5-jslaby@suse.cz Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions