Created attachment 265007 [details] git patch Hi I recently came upon this small problem, that truss does not show the first parameter of the nmount system call, which is of type "struct *iovec". I have looked at the source code of truss, and I believe I have identified and fixed the problem (note - I tested the patch, and it looks/runs fine...). So, I would like to send the patch (see attachment) for consideration. Thanks!
Created attachment 265008 [details] git patch sorry for spamming - format should be a patch...
In the future, instead of opening a ticket, don't hesitate to create a Phabricator review (using git-arc from devel/freebsd-git-devtools) and add me as reviewer.
A commit in branch main references this bug: 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(-)
(In reply to Dag-Erling Smørgrav from comment #2) OK, and thanks!
A commit in branch stable/15 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=a6ae5d3a2ed313eee8aabece5c8d8347f4db7baf commit a6ae5d3a2ed313eee8aabece5c8d8347f4db7baf Author: Tiago Gasiba <tiga@FreeBSD.org> AuthorDate: 2025-10-29 20:09:39 +0000 Commit: Dag-Erling Smørgrav <des@FreeBSD.org> CommitDate: 2025-11-05 13:54:57 +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 (cherry picked from commit b9f848ecbafce4e56ba9c8b7993b85347e83484a) usr.bin/truss/syscalls.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
A commit in branch stable/14 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=b775b191b6bf02bab3322ffe7a2c2396a54e9f7b commit b775b191b6bf02bab3322ffe7a2c2396a54e9f7b Author: Tiago Gasiba <tiga@FreeBSD.org> AuthorDate: 2025-10-29 20:09:39 +0000 Commit: Dag-Erling Smørgrav <des@FreeBSD.org> CommitDate: 2025-11-05 15:29:19 +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 (cherry picked from commit b9f848ecbafce4e56ba9c8b7993b85347e83484a) usr.bin/truss/syscalls.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
A commit in branch stable/13 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=58f534ec408c77d365426a03e8037d874151c421 commit 58f534ec408c77d365426a03e8037d874151c421 Author: Tiago Gasiba <tiga@FreeBSD.org> AuthorDate: 2025-10-29 20:09:39 +0000 Commit: Dag-Erling Smørgrav <des@FreeBSD.org> CommitDate: 2025-11-05 15:37:44 +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 (cherry picked from commit b9f848ecbafce4e56ba9c8b7993b85347e83484a) usr.bin/truss/syscalls.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)