jsynacek wrote:
[...] I suggest that all the providers (I'm now mainly
concerned
about openlmi-providers) have a common, unified tracing facility. We
should be able to turn it on as the lowest logging level and it
should trace entrance/exit of all functions. This would make
debugging and pinpointing failures much easier. [...]
You might find on-demand dynamic tracing with a tool such as perf or
systemtap can do this particular job, without manual instrumentation.
(If you do wish to compile in tracing code, I'd recommend KISS; maybe
consider systemtap <sys/sdt.h> markers that gdb can trace too.)
- FChE