Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 31 Oct 2025 16:20:10 GMT
From:      Dag-Erling =?utf-8?Q?Sm=C3=B8rgrav?= <des@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: b9f848ecbafc - main - truss: Properly display first argument to nmount
Message-ID:  <202510311620.59VGKAo8044473@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch main has been updated by des:

URL: https://cgit.FreeBSD.org/src/commit/?id=b9f848ecbafce4e56ba9c8b7993b85347e83484a

commit b9f848ecbafce4e56ba9c8b7993b85347e83484a
Author:     Tiago Gasiba <tiga@FreeBSD.org>
AuthorDate: 2025-10-29 20:09:39 +0000
Commit:     Dag-Erling Smørgrav <des@FreeBSD.org>
CommitDate: 2025-10-31 16:15:06 +0000

    truss: Properly display first argument to nmount
    
    The first argument to nmount(2) is an nvlist in the form of an iovec,
    which truss already knows how to decode.  Set the correct flag so
    this happens automatically.
    
    MFC after:      1 week
    PR:             290667
---
 usr.bin/truss/syscalls.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/usr.bin/truss/syscalls.c b/usr.bin/truss/syscalls.c
index 656d642e1f19..7b299bd2e1ff 100644
--- a/usr.bin/truss/syscalls.c
+++ b/usr.bin/truss/syscalls.c
@@ -403,7 +403,7 @@ static const struct syscall_decode decoded_syscalls[] = {
 	{ .name = "nanosleep", .ret_type = 1, .nargs = 1,
 	  .args = { { Timespec, 0 } } },
 	{ .name = "nmount", .ret_type = 1, .nargs = 3,
-	  .args = { { Ptr, 0 }, { UInt, 1 }, { Mountflags, 2 } } },
+	  .args = { { Iovec | IN, 0 }, { UInt, 1 }, { Mountflags, 2 } } },
 	{ .name = "open", .ret_type = 1, .nargs = 3,
 	  .args = { { Name | IN, 0 }, { Open, 1 }, { Octal, 2 } } },
 	{ .name = "openat", .ret_type = 1, .nargs = 4,


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202510311620.59VGKAo8044473>