Re: [PATCH 4/4] tracing/events: add trace-events-sample

Steven Rostedt
2009-04-16T17:51:20Z

On Thu, 16 Apr 2009, Christoph Hellwig wrote:

> On Thu, Apr 16, 2009 at 01:34:46PM -0400, Steven Rostedt wrote:
> > > On Tue, Apr 14, 2009 at 11:15:15PM -0400, Steven Rostedt wrote:
> > > > +++ b/samples/trace_events/Makefile
> > > > @@ -0,0 +1,8 @@
> > > > +# builds the trace events example kernel modules;
> > > > +# then to use one (as root): insmod <module_name.ko>
> > > > +
> > > > +PWD := $(shell pwd)
> > > > +
> > > > +CFLAGS_trace-events-sample.o := -I$(PWD)/samples/trace_events/
> > >
> > > CFLAGS_trace-events-sample.o += -I$(src)
> >
> > Is $(src) defined to be where the object is compiled?
>
> $(src) is the source directory, $(obj) is the directory where the
> compiled object ends up.

Oh, cool. I did not know that.

I'll update the sample code accordingly.

Thanks!

-- Steve