sendmsg data truncated

Luca Clementi luca.clementi at gmail.com
Fri Sep 5 22:05:24 UTC 2014


On Fri, Sep 5, 2014 at 1:10 PM, Travis Emmert <trav.emme at gmail.com> wrote:
> Hi All,
>
> I apologize if this is a topic thats been discussed at length, if so, please
> point me to any previous discussions and I will educate myself.
>
> Is there a way to get strace to not truncate the data within a sendmsg call?
> I'm trying to trace a client that interacts with a server over a unix
> socket, and simply want access to the full sendmsg data. The alternative
> solutions include socat and system-tap; but I'd like to simply get strace to
> function in this capacity.
>
> Anyone familar with the strace code know how difficult a change this would
> be? I'd rather do a quick hack in strace than work with system-tap.
>
> Thanks,
> Travis
>
>

Hey Travis,
have you tried with:
----
  -s strsize  Specify the maximum string size to print (the default is
32).  Note that filenames are not considered strings and are always
printed in full.
----

Luca




More information about the Strace-devel mailing list