[PATCH v1] changing mmap flags and memfd_create flags to print abbreviated values under -Xraw

Dmitry V. Levin ldv at altlinux.org
Tue Dec 11 00:38:17 UTC 2018


Hi Shankara,

On Sun, Dec 09, 2018 at 09:18:29AM -0800, shankarapailoor wrote:
> Hi Dmitry,
> 
> I am a little confused. For example, under -Xraw couldn't we just
> print the  values in the array shown here:
> https://github.com/strace/strace/blob/master/signal.c#L266 (after the
> umoven) and then only under -Xabbrev or -Xverbose would we execute
> sprintsigmask_n? There are other places we might need to change. Any
> clarification would be appreciated.

We can print it as an array, but we should be very clear about the type
of array elements because their size may vary between personalities.
This is the reason why I don't think that "long" is the best choice here.
Maybe uint8_t?


-- 
ldv
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: not available
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20181211/cc122b33/attachment.bin>


More information about the Strace-devel mailing list