Re: [PATCH v5 10/14] trace: Common code for kprobes/uprobestraceevents

From: Srikar Dronamraju
Date: Tue Jun 22 2010 - 01:50:21 EST


* Steven Rostedt <rostedt@xxxxxxxxxxx> [2010-06-21 10:18:19]:

> On Mon, 2010-06-14 at 13:59 +0530, Srikar Dronamraju wrote:
> > share_traceevents.patch.
> >
> > From: Srikar Dronamraju <srikar@xxxxxxxxxxxxxxxxxx>
> >
> > Changelog from v5: Addressed comments from Masami.
> > Also shared lot more code from kprobes traceevents.
> >
> > Move common parts of trace_kprobe.c and trace_uprobec.
> > Adjust kernel/trace/trace_kprobe.c after moving common code to
> > kernel/trace/trace_probe.h. However they still have few duplicate
> > functions.
> >
> > TODO: Merge both events to a single probe event.
> >
> > Signed-off-by: Srikar Dronamraju <srikar@xxxxxxxxxxxxxxxxxx>
> > ---
> >
> > kernel/trace/trace_kprobe.c | 141 +--------------------------------------
> > kernel/trace/trace_probe.h | 157 +++++++++++++++++++++++++++++++++++++++++++
> > 2 files changed, 161 insertions(+), 137 deletions(-)
> > create mode 100644 kernel/trace/trace_probe.h
> >
>
> > diff --git a/kernel/trace/trace_probe.h b/kernel/trace/trace_probe.h
> > new file mode 100644
> > index 0000000..b4c5763
> > --- /dev/null
> > +++ b/kernel/trace/trace_probe.h
> > @@ -0,0 +1,157 @@
> > +/*
> > + * Common header file for probe-based Dynamic events.
> > + *
> > + * This program is free software; you can redistribute it and/or modify
> > + * it under the terms of the GNU General Public License version 2 as
> > + * published by the Free Software Foundation.
> > + *
> > + * This program is distributed in the hope that it will be useful,
> > + * but WITHOUT ANY WARRANTY; without even the implied warranty of
> > + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> > + * GNU General Public License for more details.
> > + *
> > + * You should have received a copy of the GNU General Public License
> > + * along with this program; if not, write to the Free Software
> > + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
> > + *
> > + * Copyright (C) IBM Corporation, 2010
> > + * Author: Srikar Dronamraju
>
> Note, when moving stuff from one file to another, you still need to keep
> the copyright and author of the original file. You can add your name and
> copyright as well, when you add your stuff to it.

Okay .. will modify as suggested by you.

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