Bug 296229

Summary: Linux user input device ioctls missing wrappers
Product: [Developer tools] valgrind Reporter: Chase Douglas <chase.douglas>
Component: generalAssignee: Julian Seward <jseward>
Status: RESOLVED FIXED    
Severity: wishlist CC: chase.douglas
Priority: NOR    
Version First Reported In: 3.7.0   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
See Also: https://launchpad.net/bugs/958095
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Add ioctl wrappers for linux user input devices
Add uinput ioctl wrappers

Description Chase Douglas 2012-03-17 19:14:20 UTC
Created attachment 69693 [details]
Add ioctl wrappers for linux user input devices

The user input device ioctls defined in linux/uinput.h need wrappers because they either don't provide a third argument or they provide an int value instead of a pointer to a memory location.
Comment 1 Chase Douglas 2012-03-17 19:15:17 UTC
Although I'm reporting the bug against Ubuntu's valgrind package because it's what I've tested with, the attached patch is against a trunk svn checkout.
Comment 2 Julian Seward 2012-07-04 20:10:09 UTC
(In reply to comment #0)
> Created attachment 69693 [details]
> Add ioctl wrappers for linux user input devices

This looks like a patch for XOrg, not for Valgrind.  Did you get the
right one?
Comment 3 Chase Douglas 2012-07-05 15:26:22 UTC
Comment on attachment 69693 [details]
Add ioctl wrappers for linux user input devices

Yes, the patch is bogus. I'll attach the patch I applied to the Ubuntu package.
Comment 4 Chase Douglas 2012-07-05 15:27:15 UTC
Created attachment 72333 [details]
Add uinput ioctl wrappers
Comment 5 Julian Seward 2012-07-13 13:16:16 UTC
Committed, r12737.  Thanks for the patch.
I had to apply one of the hunks by hand -- I think it conflicted with
some other recent ioctl commits.  So it would be good if you could 
check over the commit to see it's OK.  Thanks.
Comment 6 Chase Douglas 2012-07-13 19:13:14 UTC
I haven't built and tested it, but the committed change looks correct.

Thanks!