lkml.org 
[lkml]   [2012]   [Jan]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v8 3.2.0-rc5 9/9] perf: perf interface for uprobes
> 
> > +
> > +static int convert_to_perf_probe_point(struct probe_trace_point *tp,
> > + struct perf_probe_point *pp)
> > +{
> > + pp->function = strdup(tp->symbol);
> > + if (pp->function == NULL)
> > + return -ENOMEM;
> > + pp->offset = tp->offset;
> > + pp->retprobe = tp->retprobe;
> > +
> > + return 0;
> > +}
>
> This function could be used in kprobe_convert_to_perf_probe() too.
> In that case, it will be separated as a cleanup from this.

Do you really want this in a separate patch, since it doesnt make too
much sense without the uprobes code.

--
Thanks and Regards
Srikar



\
 
 \ /
  Last update: 2012-01-09 12:35    [W:0.094 / U:0.140 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site