]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
Ensure that the fasttrap device file can be opened.
authorKris Van Hees <kris.van.hees@oracle.com>
Fri, 19 Jul 2013 21:58:43 +0000 (17:58 -0400)
committerKris Van Hees <kris.van.hees@oracle.com>
Fri, 19 Jul 2013 21:58:43 +0000 (17:58 -0400)
The DTrace utility tries to open the fasttrap provider device file when USDT
probes are being used, and due to the open function returning -EAGAIN, the
DTrace utility would report that the pid provider is unavailable because the
resource is temporarily unavailable.  The function now correctly returns 0.

Signed-off-by: Kris Van Hees <kris.van.hees@oracle.com>
dtrace/fasttrap_dev.c

index 545fc37a1e1290f18bd56b2efc3b41ad96f04b72..2eac2270cdb05097269bde937abe661a293af2da 100644 (file)
@@ -1420,7 +1420,7 @@ static long fasttrap_ioctl(struct file *file,
 
 static int fasttrap_open(struct inode *inode, struct file *file)
 {
-       return -EAGAIN;
+       return 0;
 }
 
 static int fasttrap_close(struct inode *inode, struct file *file)