From: Kris Van Hees Date: Fri, 19 Jul 2013 21:58:43 +0000 (-0400) Subject: Ensure that the fasttrap device file can be opened. X-Git-Tag: v4.1.12-111.0.20170907_2225~3^2~3^2~149 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=3460f36a6622d5788a102b02376f2c1ac71cd049;p=users%2Fjedix%2Flinux-maple.git Ensure that the fasttrap device file can be opened. 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 --- diff --git a/dtrace/fasttrap_dev.c b/dtrace/fasttrap_dev.c index 545fc37a1e129..2eac2270cdb05 100644 --- a/dtrace/fasttrap_dev.c +++ b/dtrace/fasttrap_dev.c @@ -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)