diff options
author | Greg Kurz <groug@kaod.org> | 2018-05-02 08:59:24 +0200 |
---|---|---|
committer | Greg Kurz <groug@kaod.org> | 2018-05-02 08:59:24 +0200 |
commit | 8f9c64bfa584ab66b8bcbfc162efa179f7f1cd41 (patch) | |
tree | b2967a81f5f10a81e8ce8e600c04e4baf435a252 /hw/9pfs/9p.c | |
parent | 26bd8d98c4b3284a4c6fe3b67c98b1edd00e9beb (diff) | |
download | qemu-8f9c64bfa584ab66b8bcbfc162efa179f7f1cd41.zip qemu-8f9c64bfa584ab66b8bcbfc162efa179f7f1cd41.tar.gz qemu-8f9c64bfa584ab66b8bcbfc162efa179f7f1cd41.tar.bz2 |
9p: add trace event for v9fs_setattr()
Don't print the tv_nsec part of atime and mtime, to stay below the 10
argument limit of trace events.
Signed-off-by: Greg Kurz <groug@kaod.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Diffstat (limited to 'hw/9pfs/9p.c')
-rw-r--r-- | hw/9pfs/9p.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/hw/9pfs/9p.c b/hw/9pfs/9p.c index 48fa48e..d74302d 100644 --- a/hw/9pfs/9p.c +++ b/hw/9pfs/9p.c @@ -1195,6 +1195,10 @@ static void coroutine_fn v9fs_setattr(void *opaque) goto out_nofid; } + trace_v9fs_setattr(pdu->tag, pdu->id, fid, + v9iattr.valid, v9iattr.mode, v9iattr.uid, v9iattr.gid, + v9iattr.size, v9iattr.atime_sec, v9iattr.mtime_sec); + fidp = get_fid(pdu, fid); if (fidp == NULL) { err = -EINVAL; @@ -1259,6 +1263,7 @@ static void coroutine_fn v9fs_setattr(void *opaque) } } err = offset; + trace_v9fs_setattr_return(pdu->tag, pdu->id); out: put_fid(pdu, fidp); out_nofid: |