temporary home of some graphics of openbsd syscalls made some some common
applications.
cat.ps
graph of the syscalls made by a call to "cat"
configure.ps
graph of the syscalls done by a ./configure process (for ns, the
network simulator)
netscape.ps
graph of netscape 4.7, visited two sites.
how to generate your own on openbsd:
1. use ktrace to trace the process (flags are for inherited and sysem calls):
$ ktrace -i -tc cat /tmp/somefile
2. process the ktrace to generate a sequence of the syscalls:
$ kdump -f ktrace.out | awk '{if ($2 != "ktrace" && $3 ~/CALL/) \
{print $4}}' | awk -F\( '{print $1}' > cat.calls
3. make the graph using the awk script provided:
$ ./make_graph.awk cat.calls | sort | uniq > cat.dot
3a. edit cat.dot to fix up the format of the file to dot. specifically, move
line n-1 to line 1.
4. generate the graph in dot:
$ dot -Tps -o cat.ps cat.dot