IB/hfi1: Add trace message in user IOCTL handling
authorDennis Dalessandro <dennis.dalessandro@intel.com>
Thu, 19 May 2016 12:26:37 +0000 (05:26 -0700)
committerDoug Ledford <dledford@redhat.com>
Thu, 26 May 2016 15:35:13 +0000 (11:35 -0400)
Add a trace message to HFI1s user IOCTL handling. This allows debugging
of which IOCTLs are being handled by the driver.

Reviewed-by: Ira Weiny <ira.weiny@intel.com>
Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/staging/rdma/hfi1/file_ops.c
drivers/staging/rdma/hfi1/trace.c
drivers/staging/rdma/hfi1/trace.h

index c46eadadf3bf667907f4eef862a50c1eb7192430..113917021af8f029227c52373a4ed248028f902b 100644 (file)
@@ -188,6 +188,7 @@ static long hfi1_file_ioctl(struct file *fp, unsigned int cmd,
        unsigned long ul_uval = 0;
        u16 uval16 = 0;
 
+       hfi1_cdbg(IOCTL, "IOCTL recv: 0x%x", cmd);
        if (cmd != HFI1_IOCTL_ASSIGN_CTXT &&
            cmd != HFI1_IOCTL_GET_VERS &&
            !uctxt)
index 8b62fefcf90336bdda13dfcc51f515d97f442257..caddb2ac3cfc9b9a2f1cb392102cc7054a425a31 100644 (file)
@@ -233,3 +233,4 @@ __hfi1_trace_fn(FIRMWARE);
 __hfi1_trace_fn(RCVCTRL);
 __hfi1_trace_fn(TID);
 __hfi1_trace_fn(MMU);
+__hfi1_trace_fn(IOCTL);
index 42bcfc3e15d568d98d0fd128b16124adfa3b0df8..a6c1adf20dca3f8944caa0734b9fc453a37488ee 100644 (file)
@@ -1341,6 +1341,7 @@ __hfi1_trace_def(FIRMWARE);
 __hfi1_trace_def(RCVCTRL);
 __hfi1_trace_def(TID);
 __hfi1_trace_def(MMU);
+__hfi1_trace_def(IOCTL);
 
 #define hfi1_cdbg(which, fmt, ...) \
        __hfi1_trace_##which(__func__, fmt, ##__VA_ARGS__)