[lttng-dev] kvm_entry dynamic probes

Julien Desfossez jdesfossez at efficios.com
Tue Jun 3 10:49:48 EDT 2014


Hi,

On 14-06-02 05:29 AM, Divya Vyas wrote:
> Hi,
> 
> I am getting this error while adding dynamic probe to kvm_entry
> 
> Command to change state of events failed
> Command failed! Command:  lttng enable-event entry -k  -s probes
> --function kvm_entry
> Return Value: 4
> Error: Event entry: Enable kernel event failed (channel channel0,
> session probes)
> Warning: Some command(s) went wrong
> 
> while same I did for kvm_exit and it works . I am using lttng 2.3.1

The kvm_entry function does not exist in the kernel because it is arch
dependant. You can use vcpu_enter_guest on x86 or
kvm_arch_vcpu_ioctl_run on arm to have what you are looking for.

I grepped "trace_kvm_entry" in the kernel source tree to find this
information.

I hope this helps,

Julien



More information about the lttng-dev mailing list