"Frank Ch. Eigler" <fche(a)redhat.com> writes:
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
I'll try those locally, thanks!
In my original post, I should have also mentioned that the goal should
also be to provide a trace in production -- in my opinion, it's good to
see the trace in logs together with everything else if need be.
--
Jan Synacek
Software Engineer, Red Hat