[Toybox] [PATCH] strace: initial commit.

enh enh at google.com
Fri Sep 17 15:46:32 PDT 2021


This is most notably lacking -p and -f, and only covers a small subset
of system calls, but it's "useful" in the sense that you can strace
something like toybox date, say, and see everything.

There's a fundamental assumption here that we don't need to worry about
multiple personalities. (This is what makes "real" strace's build so
complex, and why Android has _never_ actually shipped a fully correct
strace build.) Given that the desktop's already been 64-bit only
for a while, microcontrollers are likely to stay 32-bit only for a
while, and the odd one out -- mobile -- is moving to be 64-bit only
(https://www.arm.com/blogs/blueprint/64-bit), so by the time this is
ready to graduate from pending, I'm assuming no-one will care!
---
 lib/portability.h     |   2 +
 toys/pending/strace.c | 618 ++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 620 insertions(+)
 create mode 100644 toys/pending/strace.c
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20210917/abb9f721/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-strace-initial-commit.patch
Type: text/x-patch
Size: 18941 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20210917/abb9f721/attachment-0002.bin>


More information about the Toybox mailing list