lkml.org 
[lkml]   [2009]   [May]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC] convert ftrace syscall tracer to TRACE_EVENT()

* Frédéric Weisbecker <fweisbec@gmail.com> wrote:

> > Note, this assumes that all syscall types can be described via
> > __field() - i think that's correct. (we dont want to deref
> > strings as they are untrusted, and there are no arrays in
> > syscall parameters)
>
> Yeah, but we can also define a __string_from_user(), should be
> trivial.

We cannot really do that, because we cannot check the type in a
macro. So we dont know when to inject __field() versus
__string_from_user().

> > Can you see any complication?
>
> Just about the order of headers to include and headers
> dependencies....

That is testable and any problems will be found at the build stage,
so it should be solvable.

Ingo
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2009-05-09 16:11    [W:0.065 / U:0.752 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site