Re: [RFC] LTTng merge plan

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Frank Ch. Eigler <fche@...>
Cc: Avi Kivity <avi@...>, Linus Torvalds <torvalds@...>, Andrew Morton <akpm@...>, Ingo Molnar <mingo@...>, Peter Zijlstra <peterz@...>, Steven Rostedt <rostedt@...>, James Bottomley <James.Bottomley@...>, <kvm@...>, <linux-kernel@...>, systemtap-ml <systemtap@...>, <linux-btrace@...>
Date: Tuesday, July 29, 2008 - 1:01 pm

* Frank Ch. Eigler (fche@redhat.com) wrote:

Exactly. The tracepoint-to-markers conversion modules bridge between
the in-kernel API (tracepoints) which declares standard location for
kernel instrumentation and user-space visible "markers", so that there
is an indirection level between the instrumented kernel code and what is
visible from userspace.

For instance, we have

in kernel/sched.c:context_switch()
  trace_sched_switch(rq, prev, next);

Which exports a struct rq * and two struct task_struct *. They are used
by both ftrace, which needs access to these data structures, and by the
LTTng probes, which extracts the previous PID and state (running,
waiting..) and next PID to be scheduled in.

Basically, these modules turn the data exported by tracepoints,
meaningful only to kernel modules, into data useful for userspace trace
analysis.

Mathieu

-- 
Mathieu Desnoyers
OpenPGP key fingerprint: 8CD5 52C3 8E3C 4140 715F  BA06 3F25 A8FE 3BAE 9A68
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[patch 0/4] Port KVM-trace to tracepoints, Mathieu Desnoyers, (Thu Jul 17, 11:57 am)
Re: [patch 0/4] Port KVM-trace to tracepoints, Avi Kivity, (Tue Jul 22, 2:42 pm)
Re: [patch 0/4] Port KVM-trace to tracepoints, Frank Ch. Eigler, (Tue Jul 22, 3:16 pm)
Re: [patch 0/4] Port KVM-trace to tracepoints, Avi Kivity, (Tue Jul 22, 3:31 pm)
Re: [patch 0/4] Port KVM-trace to tracepoints -&gt; LTTng ?, Mathieu Desnoyers, (Tue Jul 22, 6:12 pm)
[RFC] LTTng merge plan, Mathieu Desnoyers, (Sun Jul 27, 8:54 pm)
Re: [RFC] LTTng merge plan, Frank Ch. Eigler, (Tue Jul 29, 12:18 pm)
Re: [RFC] LTTng merge plan, Mathieu Desnoyers, (Tue Jul 29, 1:01 pm)
Re: [patch 0/4] Port KVM-trace to tracepoints, Frank Ch. Eigler, (Tue Jul 22, 3:54 pm)