Hi,
I started using libvirt few days back...while using virDomainMemoryStats API, got "unknown procedure: 159"  runtime error

code is
-------------------------------------------------------------------------------------------------------------------------------------
virDomainMemoryStatPtr statPtr;
statPtr = malloc(VIR_DOMAIN_MEMORY_STAT_NR* sizeof (virDomainMemoryStatStruct));
unsigned int flags=0;
int Ret;
Ret = virDomainMemoryStats(domPtr,statPtr, VIR_DOMAIN_MEMORY_STAT_NR,flags);
-------------------------------------------------------------------------------------------------------------------------------------

Machine details:
------------------------------------------------------------------------------------------------------------------------------------
[root@wlng-ppcore-nd3 hellolibvirt]# uname -a
Linux wlng-ppcore-nd3 2.6.18-194.el5 #1 SMP Tue Mar 16 21:52:39 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux

[root@wlng-ppcore-nd3 hellolibvirt]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 5.5 (Tikanga)
------------------------------------------------------------------------------------------------------------------------------------


virsh details:

[root@wlng-ppcore-nd3 hellolibvirt]# virsh version
Compiled against library: libvir 0.8.1
Using library: libvir 0.8.1
Using API: QEMU 0.8.1
Running hypervisor: QEMU 0.9.1
------------------------------------------------------------------------------------------------------------------------------------
There are two libvirtd installations here..
------------------------------------------------------------------------------------------------------------------------------------
[root@wlng-ppcore-nd3 sbin]# pwd
/usr/sbin
[root@wlng-ppcore-nd3 sbin]# ls -l libvirtd
-rwxr-xr-x 1 root root 380064 Jun 10 02:33 libvirtd
[root@wlng-ppcore-nd3 sbin]# ./libvirtd --version
./libvirtd (libvirt) 0.6.3
------------------------------------------------------------------------------------------------------------------------------------
[root@wlng-ppcore-nd3 sbin]# pwd
/usr/local/sbin
[root@wlng-ppcore-nd3 sbin]# ls -l
total 3084
-rwxr-xr-x 1 root root 3152977 Jun 10 01:25 libvirtd
[root@wlng-ppcore-nd3 sbin]# ./libvirtd --version
./libvirtd (libvirt) 0.8.1
------------------------------------------------------------------------------------------------------------------------------------

found a link which mentions libvirtd can be old hence this error is possible... not sure how to configure the latest libvirtd?
How to solve "unknown procedure: 159"  runtime error?

Thanks,
osvdev