Do you whant to trace all function calls?
If so, is it possible to compile you C-code on linux with debugging information?
Once I used gdb and the tool “expect” to trace programm non-interactively.
The procedure is simple:
-list all function with ctags & grep
-“expect” starts gdb and sets breakpoints on all (desired) functions
-“expect” runs your programm, sends “continue” to gdb on every bp-stop