Skip to content

Instantly share code, notes, and snippets.

@jgarvin
Created September 7, 2023 23:17
Show Gist options
  • Save jgarvin/0ee73b1d4b9dc306c63b68e6e7d0fbca to your computer and use it in GitHub Desktop.
Save jgarvin/0ee73b1d4b9dc306c63b68e6e7d0fbca to your computer and use it in GitHub Desktop.
bazel system calls on incremental build
$ cut -d'(' -f 1 /tmp/log | grep -av attached | grep -aoE '\] [a-zA-Z0-9]+' | sort | uniq -c
4 ] accept4
18 ] chmod
194 ] clone
427 ] close
50 ] epoll
192 ] exit
12 ] fcntl
413 ] fstat
35636 ] futex
32 ] getdents64
194 ] getpid
1939 ] getrusage
4 ] getsockname
6 ] getsockopt
4533 ] gettid
189 ] lstat
194 ] madvise
14 ] mkdir
478 ] mmap
666 ] mprotect
84 ] munmap
425 ] openat
194 ] prctl
534 ] read
26 ] readlink
2 ] rename
8 ] rmdir
798 ] rt
402 ] sched
194 ] set
4 ] setsockopt
98 ] stat
12 ] symlink
240 ] sysinfo
6 ] timerfd
6 ] times
31 ] unlink
2 ] unlinkat
90 ] write
39 ] writev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment