Project

General

Profile

Actions

Bug #14553

open

Add example of using -x to truss man page.

Added by Ryan Goodfellow 4 months ago.

Status:
New
Priority:
Low
Category:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Difficulty:
Bite-size
Tags:
Gerrit CR:

Description

I ran across the need to use truss today to monitor ioctls. The default output decompiles the ioctl request parameter into a macro. The man page references a -x switch that presents parameters in raw hexadecimal form. However, it requires a syscall parameter and it's not totally clear from the man page what that should be. It turns out in my case this needed to be -xioctl, which seems obvious in retrospect, but it was not at the time. I think adding usage of -x to the examples section would be helpful.

There is also a bit of text that says "See man pages section 2: System Calls for system call names accepted by the -t, -T, -v, and -x options". And this is probably me being dense .... but

man -2 "System Calls" 

and a few other dash/underscore delimited variations of the phrase "System Calls" did not land me on such a man page.

No data to display

Actions

Also available in: Atom PDF