cosmopolitan/tool/build
Justine Tunney 14e192e5ba Introduce --strace flag for system call tracing
This is similar to the --ftrace (c function call trace) flag, except
it's less noisy since it only logs system calls to stderr. Having this
flag is valuable because (1) system call tracing tells us a lot about
the behavior of complex programs and (2) it's usually very hard to get
system call tracing on various operating systems, e.g. strace, ktrace,
dtruss, truss, nttrace, etc. Especially on Apple platforms where even
with the special boot trick, debuggers still aren't guaranteed to work.

    make -j8 o//examples
    o//examples/hello.com --strace

This is enabled by default in MODE=, MODE=opt, and MODE=dbg. In MODE=dbg
extra information will be printed.

    make -j8 MODE=dbg o/dbg/examples
    o/dbg/examples/hello.com --strace |& less

This change also changes:

- Rename IsText() → _istext()
- Rename IsUtf8() → _isutf8()
- Fix madvise() on Windows NT
- Fix empty string case of inet_ntop()
- vfork() wrapper now saves and restores errno
- Update xsigaction() to yoink syscall support
2022-03-18 18:07:28 -07:00
..
emubin Change noinline to dontinline () 2021-11-12 15:12:18 -08:00
emucrt Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
lib Introduce --strace flag for system call tracing 2022-03-18 18:07:28 -07:00
ar.c Improve memory safety 2021-10-13 17:27:13 -07:00
bigmul.c Add SNI support to redbean and improve SSL perf 2021-07-23 13:56:13 -07:00
blinkenlights.c Make exciting improvements 2022-03-18 03:02:00 -07:00
build.mk Make mkdeps.com go faster 2021-10-04 06:46:46 -07:00
calculator.c Make exciting improvements 2022-03-18 03:02:00 -07:00
calculator.ctest Add cpu / mem / fsz limits to build system 2021-08-13 23:40:53 -07:00
calculator.inc Add SSL to redbean 2021-06-24 13:20:50 -07:00
compile.c Make exciting improvements 2022-03-18 03:02:00 -07:00
deltaify.c Improve deltaify.com program 2021-08-17 00:06:45 -07:00
dis.c Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
dropcache.c Change license 2020-12-27 17:18:44 -08:00
helpop.c Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
lz4toasm.c Make numerous improvements 2021-09-28 01:52:34 -07:00
mkdeps.c Improve memory safety 2021-10-13 17:27:13 -07:00
package.c Make improvements 2022-03-16 13:40:10 -07:00
pstrace.c Make numerous improvements 2021-09-28 01:52:34 -07:00
refactor.c Remove garbage collector macro from header () 2021-03-07 20:23:29 -08:00
rle.c Make numerous improvements 2021-09-28 01:52:34 -07:00
rollup.c Improve memory safety 2021-10-13 17:27:13 -07:00
runit.c Make improvements 2022-03-16 13:40:10 -07:00
runit.h Make fixes, improvements, and chibicc python bindings 2021-10-08 08:41:57 -07:00
runitd.c Make improvements 2022-03-16 13:40:10 -07:00
summy.c Fix build and delete superfluous files 2021-08-09 06:57:14 -07:00
tinyemu.c Fix our remarkable 184kb x86_64 emulator 2021-01-27 20:02:23 -08:00
x86combos.c Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
zipobj.c Choose better deterministic timestamp for zip 2022-03-16 16:59:45 -07:00