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

From: Ingo Molnar
Date: Fri May 21 2010 - 06:38:55 EST



* Peter Zijlstra <peterz@xxxxxxxxxxxxx> 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
--
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/