On Thu, 9 Jun 2016 11:18:50 -0300
Arnaldo Carvalho de Melo <[email protected]> wrote:

> Em Wed, Jun 08, 2016 at 06:30:10PM +0900, Masami Hiramatsu escreveu:
> > @@ -2555,6 +2556,14 @@ static int __add_probe_trace_events(struct 
> > perf_probe_event *pev,
> >     }
> >     if (ret == -EINVAL && pev->uprobes)
> >             warn_uprobe_event_compat(tev);
> > +   if (ret == 0 && probe_conf.cache) {
> > +           cache = probe_cache__new(pev->target);
> > +           if (cache) {
> > +                   probe_cache__add_entry(cache, pev, tevs, ntevs);
> > +                   probe_cache__commit(cache);
> 
> These two functions may fail, please check its return and forward errors
> appropriately.

OK, will check and warn that.

Thank you!
-- 
Masami Hiramatsu <[email protected]>

Reply via email to