linux-trace-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* How to solve the coupling between libtraceevent and kernel trace?
@ 2023-08-04  9:52 Lv Ying
  2023-08-04 16:15 ` Steven Rostedt
  0 siblings, 1 reply; 6+ messages in thread
From: Lv Ying @ 2023-08-04  9:52 UTC (permalink / raw)
  To: linux-trace-users, linux-trace-devel; +Cc: Fangxiuning (Jack, EulerOS)

Hi, all:

I am a rasdaemon developer which depeneds on libtraceevent to parse 
kernel trace events. There is coupling between libtraceevnt and kernel 
trace, if something in libtraceevent and kernel does not match, which 
will cause libtraceevent parse wrong thing. e.g 
https://github.com/mchehab/rasdaemon/pull/98

We also encounter similar problem:
* libtrace(old) KBUFFER_TYPE_TIME_STAMP size = 12
* kernel(new) KBUFFER_TYPE_TIME_STAMP size = 8
Such mismatch will cause strange behavior when parsing trace events.

So if libtraceevent is released out of(independent) kernel, how does 
libtraceevnt to keep compatible with the running kernel(maybe not the 
newest)?

-- 
Thanks!
Lv Ying

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2023-08-08  2:36 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-04  9:52 How to solve the coupling between libtraceevent and kernel trace? Lv Ying
2023-08-04 16:15 ` Steven Rostedt
2023-08-05  3:49   ` Lv Ying
2023-08-05  3:57   ` Lv Ying
2023-08-08  1:09     ` Steven Rostedt
2023-08-08  2:36       ` Lv Ying

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).