Advanced and improved absolute paths decoding
Mike Frysinger
vapier at gentoo.org
Tue Mar 11 11:44:20 UTC 2014
On Tue 11 Mar 2014 12:31:39 Philippe Ombredanne wrote:
> On Tue, Mar 11, 2014 at 6:36 AM, Mike Frysinger <vapier at gentoo.org> wrote:
> > On Mon 03 Mar 2014 10:26:22 Philippe Ombredanne wrote:
> >> or possibly (not sure which form I like best) using a more compact
> >> entirely and positional list of lists:
> >> [
> >> "open",
> >> "-1",
> >> [
> >> "/usr/lib/locale/UTF-8/LC_CTYPE",
> >> "O_RDONLY|O_CLOEXEC"
> >> ]
> >> ]
> >
> > that's a good way to not be future-proof. considering you're already
> > serializing to json, adding a few extra fields to keep things sane isn't
> > really going to hurt.
>
> Good point. So let's go with explicit field names, except for things
> like "call_one" "call_two" that really do not make sense.
> i.e. the top level structure should likely be a list of calls.
true, trying to fabricate indexes with things like "call_one" and "call_two"
doesn't make much sense. i read it as "one call has been made" rather than
"this is the first call" which is why i didn't object right away ;).
the format will need some way of marking suspended/resumed calls and making
sure the other side is able to sanely re-assemble them. and do so across
processes/threads/signals/etc... :).
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20140311/54e7be43/attachment.bin>
More information about the Strace-devel
mailing list