]> git.puffer.fish Git - mirror/frr.git/commit
lib: generate trace events for log messages
authorQuentin Young <qlyoung@nvidia.com>
Mon, 14 Sep 2020 22:05:47 +0000 (18:05 -0400)
committerQuentin Young <qlyoung@nvidia.com>
Fri, 23 Oct 2020 19:13:51 +0000 (15:13 -0400)
commit1bd1ebaa08e9ca2e120f31fb9db3bd6be8111989
tree514d607e86217ee2799578498e3522d2ca49a46a
parentabf96a87f3f2f9527885ee78930787ecb4068530
lib: generate trace events for log messages

LTTng supports tracef() and tracelog() macros, which work like printf,
and are used to ease transition between logging and tracing. Messages
printed using these macros end up as trace events. For our uses we are
not interested in dropping logging, but it is nice to get log messages
in trace output, so I've added a call to tracelog() in zlog that dumps
our zlog messages as trace events.

Signed-off-by: Quentin Young <qlyoung@nvidia.com>
lib/trace.h
lib/zlog.c