Re: [PATCH 03/25] perf tools: Add reference counting for cpu_map object

From: Jiri Olsa
Date: Wed Jun 10 2015 - 16:07:40 EST


On Wed, Jun 10, 2015 at 04:07:46PM -0300, Arnaldo Carvalho de Melo wrote:
> Em Wed, Jun 10, 2015 at 08:10:36PM +0200, Jiri Olsa escreveu:
> > Adding refference counting for cpu_map object, so
> > it could be easily shared among other objects.
> >
> > Using cpu_map__put instead cpu_map__delete and making
> > cpu_map__delete static.
>
> Please use atomic.h, as was done recently for the 'map', 'dso' and
> 'thread' structs, but other than that, its fine.

ook,

jirka
--
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/