Bug 264029 - [patch] truss(1): add ppoll(2) argument decoding
Summary: [patch] truss(1): add ppoll(2) argument decoding
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 13.1-STABLE
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-05-16 22:45 UTC by Christian Weisgerber
Modified: 2022-05-20 13:12 UTC (History)
1 user (show)

See Also:


Attachments
Add ppoll() argument decoding to truss/syscalls.c (663 bytes, patch)
2022-05-16 22:45 UTC, Christian Weisgerber
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Weisgerber freebsd_committer freebsd_triage 2022-05-16 22:45:43 UTC
Created attachment 233975 [details]
Add ppoll() argument decoding to truss/syscalls.c

truss(1) decodes poll(2)'s arguments, but fails to do so for ppoll(2).

The attached small patch adds this missing part.  I wrote and tested it on 13.1-STABLE, but it should apply to -CURRENT as well.
Comment 1 Ed Maste freebsd_committer freebsd_triage 2022-05-17 14:46:17 UTC
Patch LGTM, please go ahead and commit. Or if you wish I can do it on your behalf.
Comment 2 commit-hook freebsd_committer freebsd_triage 2022-05-17 18:24:26 UTC
A commit in branch main references this bug:

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

commit 9bf4983f54919c38a0e3aae2bea09c04c8ee4421
Author:     Christian Weisgerber <naddy@FreeBSD.org>
AuthorDate: 2022-05-17 18:20:53 +0000
Commit:     Christian Weisgerber <naddy@FreeBSD.org>
CommitDate: 2022-05-17 18:23:25 +0000

    truss: add ppoll(2) argument decoding

    PR:             264029
    Approved by:    emaste
    MFC after:      3 days

 usr.bin/truss/syscalls.c | 3 +++
 1 file changed, 3 insertions(+)
Comment 3 commit-hook freebsd_committer freebsd_triage 2022-05-20 12:52:12 UTC
A commit in branch stable/13 references this bug:

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

commit 657219c49dc0c5289245c4817f5691cc0357c6f7
Author:     Christian Weisgerber <naddy@FreeBSD.org>
AuthorDate: 2022-05-17 18:20:53 +0000
Commit:     Christian Weisgerber <naddy@FreeBSD.org>
CommitDate: 2022-05-20 12:51:40 +0000

    truss: add ppoll(2) argument decoding

    PR:             264029
    Approved by:    emaste
    MFC after:      3 days

    (cherry picked from commit 9bf4983f54919c38a0e3aae2bea09c04c8ee4421)

 usr.bin/truss/syscalls.c | 3 +++
 1 file changed, 3 insertions(+)
Comment 4 commit-hook freebsd_committer freebsd_triage 2022-05-20 13:12:16 UTC
A commit in branch stable/12 references this bug:

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

commit ca4703ef1f65dbeb8c7870dec7afc7cdf026d217
Author:     Christian Weisgerber <naddy@FreeBSD.org>
AuthorDate: 2022-05-17 18:20:53 +0000
Commit:     Christian Weisgerber <naddy@FreeBSD.org>
CommitDate: 2022-05-20 13:10:36 +0000

    truss: add ppoll(2) argument decoding

    PR:             264029
    Approved by:    emaste
    MFC after:      3 days

    (cherry picked from commit 9bf4983f54919c38a0e3aae2bea09c04c8ee4421)

 usr.bin/truss/syscalls.c | 3 +++
 1 file changed, 3 insertions(+)