You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
qemu/hw/9pfs
Christian Schoenebeck 9a0dd4b3e4 9pfs: improve v9fs_open() tracing
Improve tracing of 9p 'Topen' request type by showing open() flags as
human-readable text.

E.g. trace output:

  v9fs_open tag 0 id 12 fid 2 mode 100352

would become:

  v9fs_open tag=0 id=12 fid=2 mode=100352(RDONLY|NONBLOCK|DIRECTORY|
  TMPFILE|NDELAY)

Therefor add a new utility function qemu_open_flags_tostr() that converts
numeric open() flags from host's native O_* flag constants to a string
presentation.

9p2000.L and 9p2000.u protocol variants use different numeric 'mode'
constants for 'Topen' requests. Instead of writing string conversion code
for both protocol variants, use the already existing conversion functions
that convert the mode flags from respective protocol constants to host's
native open() numeric flag constants and pass that result to the new
string conversion function qemu_open_flags_tostr().

Signed-off-by: Christian Schoenebeck <qemu_oss@crudebyte.com>
Message-Id: <E1tTgDR-000oRr-9g@kylie.crudebyte.com>
2 weeks ago
..
9p-local.c 9pfs: make multidevs=remap default 2 weeks ago
9p-local.h
9p-posix-acl.c 9pfs: fix removing non-existent POSIX ACL xattr on macOS host 3 years ago
9p-synth.c include: Rename sysemu/ -> system/ 2 months ago
9p-synth.h
9p-util-darwin.c 9pfs: fix qemu_mknodat() to always return -1 on error on macOS host 3 years ago
9p-util-generic.c 9pfs: improve v9fs_open() tracing 2 weeks ago
9p-util-linux.c 9p: darwin: Implement compatibility for mknodat 3 years ago
9p-util.h 9pfs: improve v9fs_open() tracing 2 weeks ago
9p-xattr-user.c trivial typos: namesapce 3 years ago
9p-xattr.c
9p-xattr.h
9p.c 9pfs: improve v9fs_open() tracing 2 weeks ago
9p.h 9pfs: cleanup V9fsFidState 3 months ago
Kconfig
codir.c 9pfs: mark more coroutine_fns 2 years ago
cofile.c fsdev: Use ThrottleDirection instread of bool is_write 2 years ago
cofs.c coroutine: Clean up superfluous inclusion of qemu/coroutine.h 2 years ago
coth.c thread-pool: avoid passing the pool parameter every time 2 years ago
coth.h coroutine: Split qemu/coroutine-core.h off qemu/coroutine.h 2 years ago
coxattr.c coroutine: Clean up superfluous inclusion of qemu/coroutine.h 2 years ago
meson.build 9pfs: improve v9fs_open() tracing 2 weeks ago
trace-events 9pfs: improve v9fs_open() tracing 2 weeks ago
trace.h
virtio-9p-device.c Accel & Exec patch queue 2 months ago
virtio-9p.h
xen-9p-backend.c hw/xen: Make XenDevOps structures const 9 months ago
xen-9pfs.h