Re: [patch] trace: Add user-space event tracing/injection

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Ingo Molnar
Date: Wednesday, November 17, 2010 - 6:36 am

* Peter Zijlstra <peterz@infradead.org> wrote:


But Jato is special there (it's a special execution machine with its own symbol 
space) - and most apps that generate trace events are not such.

Also, while it's not a big deal to not get symbols, it's a big deal to not get trace 
events _exactly when they are needed most_: when the app crashes or corrupts itself.

I.e. the kernel does us a real and useful service of extracting and then protecting 
data.


I agree that a prctl() isnt particularly nice - a new syscall would be nicer, if it 
wasnt such a PITA to get new syscalls supported by widely available libraries like 
glibc.

But i disagree that there should be pending buffers in the tracee context. Having 
app-side data buffering introduces the sorts of problems i outlined, that the data 
can be lost or corrupted when we need _reliable_ (and non-corrupted) trace data the 
most.

We could use the vDSO approach for super-fast and super-voluminous tracing needs, 
although i really doubt that it's the common case.

Availability is the biggest issue by far - and availability is inverse proportional 
to deployment complexity.


Yes but i dont want complex interfaces at all - i want rich trace data from many 
apps, so that tracing tools start to make sense.


Well, it covers about 80-90% of the needs, so it was the first thing i considered.

Thanks,

	Ingo
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[ANNOUNCE] New utility: 'trace', Thomas Gleixner, (Tue Nov 16, 2:04 pm)
Re: [ANNOUNCE] New utility: 'trace', Darren Hart, (Tue Nov 16, 2:27 pm)
Re: [ANNOUNCE] New utility: 'trace', Ingo Molnar, (Tue Nov 16, 2:35 pm)
Re: [ANNOUNCE] New utility: 'trace', Ingo Molnar, (Tue Nov 16, 2:59 pm)
Re: [ANNOUNCE] New utility: 'trace', Peter Zijlstra, (Tue Nov 16, 3:03 pm)
Re: [ANNOUNCE] New utility: 'trace', Darren Hart, (Tue Nov 16, 3:07 pm)
Re: [ANNOUNCE] New utility: 'trace', Ingo Molnar, (Tue Nov 16, 3:08 pm)
Re: [ANNOUNCE] New utility: 'trace', Darren Hart, (Tue Nov 16, 3:09 pm)
Re: [ANNOUNCE] New utility: 'trace', Frederic Weisbecker, (Tue Nov 16, 3:17 pm)
Re: [ANNOUNCE] New utility: 'trace', Darren Hart, (Tue Nov 16, 3:48 pm)
Re: [ANNOUNCE] New utility: 'trace', Ted Ts'o, (Tue Nov 16, 6:37 pm)
Re: [ANNOUNCE] New utility: 'trace', Steven Rostedt, (Tue Nov 16, 6:47 pm)
Re: [ANNOUNCE] New utility: 'trace', Ted Ts'o, (Tue Nov 16, 8:16 pm)
Re: [ANNOUNCE] New utility: 'trace', Steven Rostedt, (Tue Nov 16, 8:34 pm)
Re: [ANNOUNCE] New utility: 'trace', Ingo Molnar, (Wed Nov 17, 1:30 am)
Re: [ANNOUNCE] New utility: 'trace', Philipp Marek, (Wed Nov 17, 2:49 am)
Re: [ANNOUNCE] New utility: 'trace', Peter Zijlstra, (Wed Nov 17, 4:35 am)
[patch] trace: Add user-space event tracing/injection, Ingo Molnar, (Wed Nov 17, 5:07 am)
Re: [patch] trace: Add user-space event tracing/injection, Peter Zijlstra, (Wed Nov 17, 5:29 am)
Re: [patch] trace: Add user-space event tracing/injection, Peter Zijlstra, (Wed Nov 17, 5:37 am)
Re: [patch] trace: Add user-space event tracing/injection, Peter Zijlstra, (Wed Nov 17, 5:42 am)
Re: [ANNOUNCE] New utility: 'trace', Török Edwin, (Wed Nov 17, 5:47 am)
Re: [ANNOUNCE] New utility: 'trace', Peter Zijlstra, (Wed Nov 17, 5:51 am)
Re: [ANNOUNCE] New utility: 'trace', Frederic Weisbecker, (Wed Nov 17, 5:53 am)
Re: [ANNOUNCE] New utility: 'trace', Peter Zijlstra, (Wed Nov 17, 6:02 am)
Re: [ANNOUNCE] New utility: 'trace', Török Edwin, (Wed Nov 17, 6:05 am)
Re: [patch] trace: Add user-space event tracing/injection, Peter Zijlstra, (Wed Nov 17, 6:09 am)
Re: [ANNOUNCE] New utility: 'trace', Peter Zijlstra, (Wed Nov 17, 6:10 am)
Re: [ANNOUNCE] New utility: 'trace', Ingo Molnar, (Wed Nov 17, 6:10 am)
Re: [patch] trace: Add user-space event tracing/injection, Frederic Weisbecker, (Wed Nov 17, 6:10 am)
Re: [ANNOUNCE] New utility: 'trace', Ingo Molnar, (Wed Nov 17, 6:24 am)
Re: [patch] trace: Add user-space event tracing/injection, Peter Zijlstra, (Wed Nov 17, 6:31 am)
Re: [ANNOUNCE] New utility: 'trace', Frederic Weisbecker, (Wed Nov 17, 6:32 am)
Re: [patch] trace: Add user-space event tracing/injection, Frederic Weisbecker, (Wed Nov 17, 6:33 am)
Re: [patch] trace: Add user-space event tracing/injection, Ingo Molnar, (Wed Nov 17, 6:36 am)
Re: [ANNOUNCE] New utility: 'trace', Peter Zijlstra, (Wed Nov 17, 6:36 am)
Re: [ANNOUNCE] New utility: 'trace', Peter Zijlstra, (Wed Nov 17, 6:38 am)
Re: [ANNOUNCE] New utility: 'trace', Frederic Weisbecker, (Wed Nov 17, 6:43 am)
Re: [ANNOUNCE] New utility: 'trace', Peter Zijlstra, (Wed Nov 17, 6:53 am)
Re: [ANNOUNCE] New utility: 'trace', Ingo Molnar, (Wed Nov 17, 7:00 am)
Re: [ANNOUNCE] New utility: 'trace', Frederic Weisbecker, (Wed Nov 17, 7:10 am)
Re: [ANNOUNCE] New utility: 'trace', Peter Zijlstra, (Wed Nov 17, 7:11 am)
Re: [ANNOUNCE] New utility: 'trace', Peter Zijlstra, (Wed Nov 17, 7:18 am)
Re: [ANNOUNCE] New utility: 'trace', Thomas Gleixner, (Wed Nov 17, 7:37 am)
Re: [ANNOUNCE] New utility: 'trace', Peter Zijlstra, (Wed Nov 17, 7:41 am)
Re: [ANNOUNCE] New utility: 'trace', Steven Rostedt, (Wed Nov 17, 8:02 am)
Re: [ANNOUNCE] New utility: 'trace', Steven Rostedt, (Wed Nov 17, 8:10 am)
Re: [ANNOUNCE] New utility: 'trace', Tom Zanussi, (Wed Nov 17, 8:33 am)
Re: [ANNOUNCE] New utility: 'trace', Tom Zanussi, (Wed Nov 17, 8:41 am)
Re: [ANNOUNCE] New utility: 'trace', Peter Zijlstra, (Wed Nov 17, 8:43 am)
Re: [ANNOUNCE] New utility: 'trace', Avi Kivity, (Wed Nov 17, 8:55 am)
Re: [ANNOUNCE] New utility: 'trace', Thomas Gleixner, (Wed Nov 17, 8:58 am)
Re: [ANNOUNCE] New utility: 'trace', Peter Zijlstra, (Wed Nov 17, 8:59 am)
Re: [ANNOUNCE] New utility: 'trace', Steven Rostedt, (Wed Nov 17, 9:04 am)
Re: [ANNOUNCE] New utility: 'trace', Avi Kivity, (Wed Nov 17, 9:08 am)
Re: [ANNOUNCE] New utility: 'trace', Steven Rostedt, (Wed Nov 17, 9:15 am)
Re: [ANNOUNCE] New utility: 'trace', Avi Kivity, (Wed Nov 17, 9:20 am)
Re: [ANNOUNCE] New utility: 'trace', Darren Hart, (Wed Nov 17, 9:49 am)
Re: [ANNOUNCE] New utility: 'trace', Ted Ts'o, (Wed Nov 17, 11:13 am)
Re: [ANNOUNCE] New utility: 'trace', Mathieu Desnoyers, (Wed Nov 17, 11:23 am)
Re: [ANNOUNCE] New utility: 'trace', Frederic Weisbecker, (Wed Nov 17, 11:29 am)
Re: [ANNOUNCE] New utility: 'trace', Darren Hart, (Wed Nov 17, 11:30 am)
Re: [ANNOUNCE] New utility: 'trace', Mathieu Desnoyers, (Wed Nov 17, 11:36 am)
Re: [ANNOUNCE] New utility: 'trace', Tom Zanussi, (Wed Nov 17, 11:53 am)
Re: [ANNOUNCE] New utility: 'trace', Bob Copeland, (Wed Nov 17, 12:00 pm)
Re: [ANNOUNCE] New utility: 'trace', Mathieu Desnoyers, (Wed Nov 17, 12:02 pm)
Re: [ANNOUNCE] New utility: 'trace', Steven Rostedt, (Wed Nov 17, 12:25 pm)
Re: [ANNOUNCE] New utility: 'trace', Tom Zanussi, (Wed Nov 17, 12:25 pm)
Re: [ANNOUNCE] New utility: 'trace', Darren Hart, (Wed Nov 17, 12:40 pm)
Re: [ANNOUNCE] New utility: 'trace', Ian Munsie, (Wed Nov 17, 5:47 pm)
Re: [ANNOUNCE] New utility: 'trace', Masami Hiramatsu, (Wed Nov 17, 10:58 pm)
Re: [ANNOUNCE] New utility: 'trace', Masami Hiramatsu, (Wed Nov 17, 11:00 pm)
AW: [patch] trace: Add user-space event tracing/injection, Reichert, Hans-Peter, (Thu Nov 18, 12:13 pm)
Re: [ANNOUNCE] New utility: 'trace', Joe Perches, (Thu Nov 18, 4:23 pm)
Re: [ANNOUNCE] New utility: 'trace', Ian Munsie, (Thu Nov 18, 7:32 pm)
Re: [ANNOUNCE] New utility: 'trace', Jason Baron, (Fri Nov 19, 8:23 am)