From: Nick Alcock Date: Wed, 14 Sep 2016 10:05:51 +0000 (+0100) Subject: dtrace: add a test probe with an empty translation or two X-Git-Tag: v4.1.12-111.0.20170907_2225~3^2~3^2~37 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=a84d51d0aada51e07d6263060720048488f38f5d;p=users%2Fjedix%2Flinux-maple.git dtrace: add a test probe with an empty translation or two 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 Acked-by: Kris Van Hees Orabug: 24661801 --- diff --git a/dtrace/dt_test_dev.c b/dtrace/dt_test_dev.c index 9292da8e34cd6..da14419f04695 100644 --- a/dtrace/dt_test_dev.c +++ b/dtrace/dt_test_dev.c @@ -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; }