Bug 817245

Summary: [Tracing]usb_clear_device_feature tracepoint can not use
Product: Red Hat Enterprise Linux 6 Reporter: daiwei <wdai>
Component: qemu-kvmAssignee: Gerd Hoffmann <kraxel>
Status: CLOSED NOTABUG QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.3CC: acathrow, areis, bsarathy, dyasny, flang, juzhang, michen, mkenneth, shuang, virt-maint
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-05-29 07:43:15 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description daiwei 2012-04-28 09:17:49 UTC
Description of problem:


Version-Release number of selected component (if applicable):

# uname -r; rpm -q qemu-kvm-rhev
2.6.32-262.el6.x86_64
qemu-kvm-rhev-0.12.1.2-2.287.el6.x86_64

How reproducible:
100%

Steps to Reproduce:
1. On host

#stap usb_clear_device_feature.stp

2. Boot guest 
CLI:

/usr/libexec/qemu-kvm -m 2G -smp 2 -cpu Penryn -M rhel6.3.0 -boot order=dcn,menu=on -uuid e85e6987-c012-4025-878a-d4a5f521f8a5 -rtc base=utc,clock=host,driftfix=slew -no-kvm-pit-reinjection -monitor stdio -name win2008-64 -spice port=9000,disable-ticketing -vga qxl -global qxl-vga.vram_size=67108864 -drive file=/home/win2008sp2-64.raw,index=0,if=none,id=drive-virtio-disk1,media=disk,cache=none,boot=on,snapshot=off,readonly=off,format=raw,aio=native,werror=stop,rerror=stop -device virtio-blk-pci,scsi=off,drive=drive-virtio-disk1,id=virtio-disk1,bootindex=1 -netdev tap,id=hostnet0,vhost=on,script=/etc/qemu-ifup-switch -device virtio-net-pci,netdev=hostnet0,mac=00:10:20:2d:31:21,bus=pci.0,addr=0x4,id=net0 -device virtio-balloon-pci,bus=pci.0,id=balloon0 -usbdevice tablet

3.
  
Actual results:
nothing output

Expected results:
the scripts should return like :

addr=2,feature=1,ret=0

addr=2,feature=1,ret=0

Additional info:
1.
# cat usb_clear_device_feature.stp
probe qemu.kvm.usb_clear_device_feature
{
 printf("addr=%d,feature=%d,ret=%d\n",addr,feature,ret);
}

2.usb_set_device_feature tracepoint has the same issue.

3.Test RHEL6.3 guest, no this issue.

Comment 1 Gerd Hoffmann 2012-05-29 07:43:15 UTC
It's a trace of guest activities, so if the guest doesn't invoke set/clear device feature requests then you don't see the tracepoints trigger.  Normal behavior.