From mboxrd@z Thu Jan 1 00:00:00 1970 From: Konrad Rzeszutek Wilk Subject: Re: Using collectd: CPUFreq in dom0 Date: Fri, 4 Jan 2013 16:11:43 -0500 Message-ID: <20130104211143.GA7996@phenom.dumpdata.com> References: <50D9F6A9.8030008@access.denied> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <50D9F6A9.8030008@access.denied> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Stefan Kuhne Cc: xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Tue, Dec 25, 2012 at 07:55:37PM +0100, Stefan Kuhne wrote: > Hello, > > I've tried to get the CPUFreq plugin of collectd running in dom0. > But I mentioned that it isn't so easy to get a file in sysfs on the > rigth place. > > I know that the value has to come from hypervisor and I've seen the code > in xenpm. Right. Did you look in the source code from xenpm? > > The only value I need is > "/sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq" which would > create cpufreq.c. > > Can anyone help me by giving me some hints? > I've read many websites and papers and coded many things. > I'm glade to get the sysfs file. > > With "sysfs_create..." I've many trouble but "kobject_add" works fine. > > Regards, > Stefan Kuhne > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xen.org > http://lists.xen.org/xen-devel