]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
dtrace: add a test probe with an empty translation or two
authorNick Alcock <nick.alcock@oracle.com>
Wed, 14 Sep 2016 10:05:51 +0000 (11:05 +0100)
committerNick Alcock <nick.alcock@oracle.com>
Fri, 28 Oct 2016 13:01:14 +0000 (14:01 +0100)
The empty translation case gets tested nowhere in the kernel, so add a
probe to dt_test with a couple of args that get thrown away by the
translation machinery.

Signed-off-by: Nick Alcock <nick.alcock@oracle.com>
Acked-by: Kris Van Hees <kris.van.hees@oracle.com>
Orabug: 24661801

dtrace/dt_test_dev.c

index 9292da8e34cd6df236de1a04793cd9fdfb28b25a..da14419f04695fffa1973a9e4422e444b7993c4b 100644 (file)
@@ -106,6 +106,11 @@ static long dt_test_ioctl(struct file *file,
 
 static int dt_test_open(struct inode *inode, struct file *file)
 {
+       /*
+        * Test translation-to-nothing.
+        */
+       DTRACE_PROBE4(sdt__test__open__file, struct inode *,inode, int :, 666,
+                     char * : (), 0, struct file *, file);
        return 0;
 }