Commit 8a1882eb authored by Dennis Dalessandro's avatar Dennis Dalessandro Committed by Doug Ledford

IB/hfi1: Add trace message in user IOCTL handling

Add a trace message to HFI1s user IOCTL handling. This allows debugging
of which IOCTLs are being handled by the driver.
Reviewed-by: default avatarIra Weiny <ira.weiny@intel.com>
Signed-off-by: default avatarDennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: default avatarDoug Ledford <dledford@redhat.com>
parent 380fb942
...@@ -188,6 +188,7 @@ static long hfi1_file_ioctl(struct file *fp, unsigned int cmd, ...@@ -188,6 +188,7 @@ static long hfi1_file_ioctl(struct file *fp, unsigned int cmd,
unsigned long ul_uval = 0; unsigned long ul_uval = 0;
u16 uval16 = 0; u16 uval16 = 0;
hfi1_cdbg(IOCTL, "IOCTL recv: 0x%x", cmd);
if (cmd != HFI1_IOCTL_ASSIGN_CTXT && if (cmd != HFI1_IOCTL_ASSIGN_CTXT &&
cmd != HFI1_IOCTL_GET_VERS && cmd != HFI1_IOCTL_GET_VERS &&
!uctxt) !uctxt)
......
...@@ -233,3 +233,4 @@ __hfi1_trace_fn(FIRMWARE); ...@@ -233,3 +233,4 @@ __hfi1_trace_fn(FIRMWARE);
__hfi1_trace_fn(RCVCTRL); __hfi1_trace_fn(RCVCTRL);
__hfi1_trace_fn(TID); __hfi1_trace_fn(TID);
__hfi1_trace_fn(MMU); __hfi1_trace_fn(MMU);
__hfi1_trace_fn(IOCTL);
...@@ -1341,6 +1341,7 @@ __hfi1_trace_def(FIRMWARE); ...@@ -1341,6 +1341,7 @@ __hfi1_trace_def(FIRMWARE);
__hfi1_trace_def(RCVCTRL); __hfi1_trace_def(RCVCTRL);
__hfi1_trace_def(TID); __hfi1_trace_def(TID);
__hfi1_trace_def(MMU); __hfi1_trace_def(MMU);
__hfi1_trace_def(IOCTL);
#define hfi1_cdbg(which, fmt, ...) \ #define hfi1_cdbg(which, fmt, ...) \
__hfi1_trace_##which(__func__, fmt, ##__VA_ARGS__) __hfi1_trace_##which(__func__, fmt, ##__VA_ARGS__)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment