Re: [PATCH 02/10] perf, trace: Use per-tracepoint-per-cpu hlist to track events

Ingo Molnar
2010-05-21T10:38:53Z

* Peter Zijlstra <peterz@infradead.org> wrote:

> On Fri, 2010-05-21 at 12:13 +0200, Frederic Weisbecker wrote:
> > > What exactly is the puzzlement about?
>
> > The fact we use the hlist API not for hlist purpose
> > but for a list.
>
> I might miss the confusion, but hlist _are_ lists. Its
> just that their structure is slightly different that the
> regular struct list_head stuff.

Using an API in such a mixed way may cause puzzlement ;-)

Fortunately we've got the ultimate anti-puzzlement weapon:
code comments.

Ingo