aboutsummaryrefslogtreecommitdiff
path: root/scripts/qapi/error.py
diff options
context:
space:
mode:
authorChristian Schoenebeck <qemu_oss@crudebyte.com>2024-12-06 16:56:40 +0100
committerChristian Schoenebeck <qemu_oss@crudebyte.com>2025-02-06 17:10:45 +0100
commit0ad7cb925edff3f14bd47fdb7ef3c0b6186960d4 (patch)
treecc7e6cb307e8e825af3e16aa312259ee74bd24b9 /scripts/qapi/error.py
parentd922088eb4ba6bc31a99f17b32cf75e59dd306cd (diff)
downloadqemu-0ad7cb925edff3f14bd47fdb7ef3c0b6186960d4.zip
qemu-0ad7cb925edff3f14bd47fdb7ef3c0b6186960d4.tar.gz
qemu-0ad7cb925edff3f14bd47fdb7ef3c0b6186960d4.tar.bz2
9pfs: improve v9fs_walk() tracing
'Twalk' is the most important request type in the 9p protocol to look out for when debugging 9p communication. That's because it is the only part of the 9p protocol which actually deals with human-readable path names, whereas all other 9p request types work on numeric file IDs (FIDs) only. Improve tracing of 'Twalk' requests, e.g. let's say client wanted to walk to "/home/bob/src", then improve trace output from: v9fs_walk tag 0 id 110 fid 0 newfid 1 nwnames 3 to: v9fs_walk tag=0 id=110 fid=0 newfid=1 nwnames=3 wnames={home, bob, src} To achieve this, add a new helper function trace_v9fs_walk_wnames() which converts the received V9fsString array of individual path elements into a comma-separated string presentation for being passed to the tracing system. As this conversion is somewhat expensive, this conversion function is only called if tracing of event 'v9fs_walk' is currently enabled. Signed-off-by: Christian Schoenebeck <qemu_oss@crudebyte.com> Reviewed-by: Greg Kurz <groug@kaod.org> Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> Message-Id: <E1tJamT-007Cqk-9E@kylie.crudebyte.com>
Diffstat (limited to 'scripts/qapi/error.py')
0 files changed, 0 insertions, 0 deletions