linux-perf-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Perf ABI versioning
@ 2011-01-24 16:04 Thomas Renninger
  2011-01-24 16:18 ` Thomas Renninger
                   ` (4 more replies)
  0 siblings, 5 replies; 17+ messages in thread
From: Thomas Renninger @ 2011-01-24 16:04 UTC (permalink / raw)
  To: tardyp
  Cc: jean.pihet, acme, fweisbec, linux-perf-users, mathieu.desnoyers,
	linux-trace-users

Hi,

as I recently cleaned up the power events with
some format/abi adjustings...

I realized that it was rather easy to adjust
the stuff in drivers/tools/perf, because there
are some nice facilities to query which events
are available.

I looked at pytimechart, there it's not that nice
and convenient would be some kind of version number.

pytimechart can parse traces which are simply copied
away from /sys/kernel/debug/trace and to check for
available events and their format, one would have to
do a separate, ugly to implement, iteration of parsing.

Would it make sense to introduce a trace
ABI version number?
It would be enough to increase it by one every time
any event (don't know about other perf facilities) is
added, removed or modified.
Ideally the modifications are tracked with a short
description in a file like Documentation/trace/format.changes

Untested, but the patch at the end should simply add
a version number on top of
/sys/kernel/debug/trace file

While this should be enough for the kernel, perf record
would need to include it into it's binary perf.data format
as well?

Then userspace apps could easily test whether supported
events would be included at all, whether only a subset of
supported events were made available and which format they have.

Does this make sense?

Thanks,

    Thomas

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

end of thread, other threads:[~2011-01-24 23:06 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-24 16:04 Perf ABI versioning Thomas Renninger
2011-01-24 16:18 ` Thomas Renninger
2011-01-24 17:26 ` Pierre Tardy
2011-01-24 17:28 ` Jean Pihet
2011-01-24 20:05   ` Frederic Weisbecker
2011-01-24 20:12 ` Mathieu Desnoyers
2011-01-24 21:02   ` Thomas Renninger
2011-01-24 20:34 ` Frederic Weisbecker
2011-01-24 20:39   ` Peter Zijlstra
2011-01-24 20:40     ` Frederic Weisbecker
2011-01-24 21:28   ` Ingo Molnar
2011-01-24 21:49     ` Thomas Renninger
2011-01-24 21:57       ` Arnaldo Carvalho de Melo
2011-01-24 22:30         ` Thomas Renninger
2011-01-24 22:46           ` Frederic Weisbecker
2011-01-24 23:05             ` Arnaldo Carvalho de Melo
2011-01-24 21:59     ` Frederic Weisbecker

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).