lkml.org 
[lkml]   [2008]   [Oct]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] ftrace: Add a C-state tracer to help power optimization

* Steven Rostedt <rostedt@goodmis.org> wrote:

>
> On Fri, 3 Oct 2008, Arjan van de Ven wrote:
>
> > On Fri, 3 Oct 2008 20:32:51 -0400 (EDT)
> > Steven Rostedt <rostedt@goodmis.org> wrote:
> >
> > >
> > > Hi Arjan,
> > >
> > > Very nice! I just have a few comments below.
> >
> > since this is my first tracer.... I would suggest having a "golden
> > example" one that people can copy (it seems I copied a less than
> > perfect one ;-)... maybe a trace_example.c ?
>
> Yeah, that would make sense to have. People are starting to come
> up with so many different tracers, I'm not sure what a golden
> example would look like :-/

i think starting with kernel/trace/trace_nop.c is the simplest: copy
that into a new plugin and make it show up in make oldconfig and make it
build. Then add ftrace_printk() lines initially - only specialize the
trace entries to that plugin later on.

Ingo


\
 
 \ /
  Last update: 2008-10-04 10:35    [W:0.055 / U:1.840 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site