diary

Text-based journaling program
git clone https://git.in0rdr.ch/diary.git
Log | Files | Refs | README | LICENSE

commit f206c1cd15cc53395fa37da8a96428b1ee610ffe
parent 8745400ed3bea6ed6c0df765a321e7d0ff938e59
Author: Andreas Gruhler <andreas.gruhler@adfinis.com>
Date:   Tue, 28 Mar 2023 00:35:20 +0200

feat(lttng): add debug_tm tracepoint

Diffstat:
Msrc/diary-tp.h | 22++++++++++++++++++++++
1 file changed, 22 insertions(+), 0 deletions(-)

diff --git a/src/diary-tp.h b/src/diary-tp.h @@ -134,6 +134,27 @@ TRACEPOINT_EVENT( TRACEPOINT_EVENT( diary, + debug_tm, + TP_ARGS( + char*, msg_arg, + const struct tm*, date + ), + TP_FIELDS( + ctf_string(msg, msg_arg) + ctf_integer(int, tm_sec, date->tm_sec) + ctf_integer(int, tm_min, date->tm_min) + ctf_integer(int, tm_hour, date->tm_hour) + ctf_integer(int, tm_mday, date->tm_mday) + ctf_integer(int, tm_mon, date->tm_mon) + ctf_integer(int, tm_year, date->tm_year) + ctf_integer(int, tm_wday, date->tm_wday) + ctf_integer(int, tm_yday, date->tm_yday) + ctf_integer(int, tm_isdst, date->tm_isdst) + ) +) + +TRACEPOINT_EVENT( + diary, warning_string, TP_ARGS( char*, msg_arg, @@ -159,6 +180,7 @@ TRACEPOINT_LOGLEVEL(diary, debug_string, TRACE_DEBUG) TRACEPOINT_LOGLEVEL(diary, debug_int, TRACE_DEBUG) TRACEPOINT_LOGLEVEL(diary, debug_double, TRACE_DEBUG) TRACEPOINT_LOGLEVEL(diary, debug_sizet, TRACE_DEBUG) +TRACEPOINT_LOGLEVEL(diary, debug_tm, TRACE_DEBUG) TRACEPOINT_LOGLEVEL(diary, warning_string, TRACE_WARNING) #endif /* _DIARY_TP_H */