cosmopolitan/libc/log
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
..
thunks Clean old .source directive out of asm code 2022-03-18 12:43:21 -07:00
addr2linepath.c Make exciting improvements 2022-03-18 03:02:00 -07:00
appendresourcereport.c Make numerous improvements 2021-09-28 01:52:34 -07:00
attachdebugger.c Make improvements 2022-03-16 13:40:10 -07:00
backtrace.internal.h Release redbean 1.5 2021-11-15 07:39:38 -08:00
backtrace2.c Make exciting improvements 2022-03-18 03:02:00 -07:00
backtrace3.c Make improvements 2022-03-16 13:40:10 -07:00
bsd.h Add chibicc 2020-12-06 16:20:21 -08:00
check.h Undiamond Python headers 2021-08-12 14:07:40 -07:00
checkaligned.c Add cpu / mem / fsz limits to build system 2021-08-13 23:40:53 -07:00
checkfail.c Make numerous improvements 2021-09-28 01:52:34 -07:00
checkfail_ndebug.c Make exciting improvements 2022-03-18 03:02:00 -07:00
color.internal.h Make exciting improvements 2022-03-18 03:02:00 -07:00
commandvenv.c Make exciting improvements 2022-03-18 03:02:00 -07:00
countbranch.h Make exciting improvements 2022-03-18 03:02:00 -07:00
countbranch_data.S Add ASAN guards to some asm data structures 2022-03-18 13:02:57 -07:00
countbranch_report.c Make exciting improvements 2022-03-18 03:02:00 -07:00
countexpr.h Make exciting improvements 2022-03-18 03:02:00 -07:00
countexpr_data.S Add ASAN guards to some asm data structures 2022-03-18 13:02:57 -07:00
countexpr_report.c Make exciting improvements 2022-03-18 03:02:00 -07:00
cxaprintexits.c Improve memory safety 2021-10-13 17:27:13 -07:00
die.c Add MODE=optlinux build mode (#141) 2021-10-14 19:36:49 -07:00
err.c Change license 2020-12-27 17:18:44 -08:00
errx.c Change license 2020-12-27 17:18:44 -08:00
flogf.c Change license 2020-12-27 17:18:44 -08:00
gdb.h Make improvements 2022-03-16 13:40:10 -07:00
gdbexec.c Make major improvements to redbean and libraries 2021-04-18 12:34:15 -07:00
gdbpath.c Change license 2020-12-27 17:18:44 -08:00
gdbsync.c Change license 2020-12-27 17:18:44 -08:00
getcallername.c Improve memory safety 2021-10-13 17:27:13 -07:00
getsicodename.c Make numerous improvements 2021-09-28 01:52:34 -07:00
getsymbolbyaddr.c Improve memory safety 2021-10-13 17:27:13 -07:00
getsymboltable.c Make exciting improvements 2022-03-18 03:02:00 -07:00
getttycols.c Change license 2020-12-27 17:18:44 -08:00
getttysize.c Make exciting improvements 2022-03-18 03:02:00 -07:00
internal.h Make exciting improvements 2022-03-18 03:02:00 -07:00
leaks.c Make exciting improvements 2022-03-18 03:02:00 -07:00
libfatal.internal.h Introduce --strace flag for system call tracing 2022-03-18 18:07:28 -07:00
log.h Make exciting improvements 2022-03-18 03:02:00 -07:00
log.mk Make exciting improvements 2022-03-18 03:02:00 -07:00
logerrno.c Make Cosmopolitan ANSI C89 compatible 2021-02-03 17:48:59 -08:00
logfile.initabi.c Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
loglevel.S Clean old .source directive out of asm code 2022-03-18 12:43:21 -07:00
malloc_stats.c Add cpu / mem / fsz limits to build system 2021-08-13 23:40:53 -07:00
meminfo.c Add cpu / mem / fsz limits to build system 2021-08-13 23:40:53 -07:00
memsummary.c Support proper %g, %f, and %a float formatting 2021-03-05 10:31:16 -08:00
oncrash.c Make exciting improvements 2022-03-18 03:02:00 -07:00
oncrashthunks.S Clean old .source directive out of asm code 2022-03-18 12:43:21 -07:00
onkill.c Make numerous improvements 2021-09-28 01:52:34 -07:00
perror.c Make minor improvements 2021-05-15 21:53:26 -07:00
printgarbage.c Make improvements 2022-03-16 13:40:10 -07:00
printgarbagenumeric.c Fix regression in _gclongjmp() 2021-08-19 09:34:24 -07:00
restoretty.c Make exciting improvements 2022-03-18 03:02:00 -07:00
showcrashreports.c Make exciting improvements 2022-03-18 03:02:00 -07:00
startfatal.c Make exciting improvements 2022-03-18 03:02:00 -07:00
traceme.c Undiamond Python headers 2021-08-12 14:07:40 -07:00
traceme.h Undiamond Python headers 2021-08-12 14:07:40 -07:00
verr.c Change license 2020-12-27 17:18:44 -08:00
verrx.c Change license 2020-12-27 17:18:44 -08:00
vflogf.c Improve logger API (#262) 2021-09-03 21:14:26 -07:00
vwarn.c Change license 2020-12-27 17:18:44 -08:00
vwarnx.c Change license 2020-12-27 17:18:44 -08:00
warn.c Change license 2020-12-27 17:18:44 -08:00
warnx.c Change license 2020-12-27 17:18:44 -08:00