[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <7c86c4470811231431nff93661xbfb04b6b6f81abfe@mail.gmail.com>
Date: Sun, 23 Nov 2008 23:31:40 +0100
From: "stephane eranian" <eranian@...glemail.com>
To: "Markus Metzger" <markus.t.metzger@...glemail.com>
Cc: "Metzger, Markus T" <markus.t.metzger@...el.com>,
"Ingo Molnar" <mingo@...e.hu>, "Andi Kleen" <andi@...stfloor.org>,
"Andrew Morton" <akpm@...ux-foundation.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: Re: debugctl msr
Markus,
On Sat, Nov 22, 2008 at 10:51 AM, Markus Metzger
<markus.t.metzger@...glemail.com> wrote:
>
> ds_access() returns the pointer into the raw buffer at a given index.
> For index 0, this is the beginning of the buffer.
Ok, I missed that call.
>
>
> I plan to replace the various access functions with a single one that
> returns a const pointer to the configuration.
>
> Something like:
>
> struct ds_config {
> size_t number_of_records;
> size_t size_of_a_single_record;
> void *base;
> void *max;
> void *index;
> void *threshold;
> };
>
> const struct ds_config *ds_config_pebs(struct pebs_tracer *tracer);
> Would you be OK with such a change?
>
Looks good.
There are two calls on the critical path for perfmon : get_index and
get_threshold.
So we want to make sure it is as fast as possible.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists