lkml.org 
[lkml]   [2012]   [Jan]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [GIT PULL] tracing: make signal tracepoints more useful
From
Date
On Tue, 2012-01-17 at 11:02 +0100, Ingo Molnar wrote:

> That is not true *AT ALL* in such an unqualified manner. Steve,
> stop being stupid.
>
> The kernel syscall ABI may indeed sometimes expand *INPUT*
> structures (if via some mechanism it's possible to make sure
> that old ABI uses don't cause the kernel to read undefined
> data), but the trace events are *OUTPUT* structures.

The difference between syscalls and tracepoints is that a tracepoint
always reports the size of the structure that was read, where a syscall
does not. So I do consider this similar to reading the /proc/stat file
as the user can see how much was read. The backwards compatibility
should be easy to write. Old tools should not break, because it wont be
reading the new fields, and new tools can determine which tracepoint is
there because it is trivial to see which version of the tracepoint is
there because of the size read.

But as I'm stupid, I'll shut up now.

-- Steve




\
 
 \ /
  Last update: 2012-01-17 13:05    [W:0.110 / U:0.520 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site