From a84d51d0aada51e07d6263060720048488f38f5d Mon Sep 17 00:00:00 2001 From: Nick Alcock Date: Wed, 14 Sep 2016 11:05:51 +0100 Subject: [PATCH] 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 --- dtrace/dt_test_dev.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dtrace/dt_test_dev.c b/dtrace/dt_test_dev.c index 9292da8e34cd..da14419f0469 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; } -- 2.50.1