[Top] [All Lists]

Re: [PATCH v5 10/12] MIPS/Perf-events: allow modules to get pmu

To: David Daney <>
Subject: Re: [PATCH v5 10/12] MIPS/Perf-events: allow modules to get pmu number of counters
From: Deng-Cheng Zhu <>
Date: Sat, 29 May 2010 11:14:33 +0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed;; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=8f/EzrjKQ8mYX3Mr3b0+Kg4LOYgb6t01lQkvuGw20ig=; b=lH/BgW1j36oPLZpzagxpELt0zu7zw5WYAVhgvUUejCaiEQqQvZECQumwRulRs8jjE4 vubqwecKZbc4Zo8fpAkJcF1J2iDnrYzc6kYwLMLo5U61ycB1FfY9+I4HEyU0UWLKIKyT zTwdPOYdXDPuH0iXOts1cJpno68EXoJePZm2o=
Domainkey-signature: a=rsa-sha1; c=nofws;; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=nvxuXCynkrKJXjN8cP/3xwP0xky8sP7Sr7S1whwTjKoiba2wuPqU2T0LFL13R6cWWU FqFGrC6RKqUOwUserlLHqLZK8FnF0YQHMU5LZGNOgiUPKCPvJVipe0pYsH0oevCU7lc4 iXjuUipX3zjQBA80eY5Jw08KHNrvUB94qU7to=
In-reply-to: <>
Original-recipient: rfc822;
References: <> <> <>
2010/5/28 David Daney <>:
> Why is it called 'max_events' when it is returning the number of counters?
>  How about mipspmu_get_max_counters?
[DC]: OK.

> Do we even need this accessor?
> Why not just query it from the struct mips_pmu?  Don't you need the mipspmu
> structure anyhow to be able to use the counters?
[DC]: This is for the code outside of Perf-events, such as the module of
the new Oprofile which is a client of Perf-events. If we don't need this,
we have to export the whole mipspmu.


<Prev in Thread] Current Thread [Next in Thread>