diff options
author | Dennis Dalessandro <dennis.dalessandro@intel.com> | 2016-05-19 15:26:37 +0300 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2016-05-26 18:35:13 +0300 |
commit | 8a1882ebd4b593df0e36ba0b72e4e2f632573274 (patch) | |
tree | 093a654e59c450c746d6f8ee03b585a903d2e026 | |
parent | 380fb942888e7afc3420ce195a5188ff73b5a782 (diff) | |
download | linux-8a1882ebd4b593df0e36ba0b72e4e2f632573274.tar.xz |
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: Ira Weiny <ira.weiny@intel.com>
Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
-rw-r--r-- | drivers/staging/rdma/hfi1/file_ops.c | 1 | ||||
-rw-r--r-- | drivers/staging/rdma/hfi1/trace.c | 1 | ||||
-rw-r--r-- | drivers/staging/rdma/hfi1/trace.h | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/drivers/staging/rdma/hfi1/file_ops.c b/drivers/staging/rdma/hfi1/file_ops.c index c46eadadf3bf..113917021af8 100644 --- a/drivers/staging/rdma/hfi1/file_ops.c +++ b/drivers/staging/rdma/hfi1/file_ops.c @@ -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) diff --git a/drivers/staging/rdma/hfi1/trace.c b/drivers/staging/rdma/hfi1/trace.c index 8b62fefcf903..caddb2ac3cfc 100644 --- a/drivers/staging/rdma/hfi1/trace.c +++ b/drivers/staging/rdma/hfi1/trace.c @@ -233,3 +233,4 @@ __hfi1_trace_fn(FIRMWARE); __hfi1_trace_fn(RCVCTRL); __hfi1_trace_fn(TID); __hfi1_trace_fn(MMU); +__hfi1_trace_fn(IOCTL); diff --git a/drivers/staging/rdma/hfi1/trace.h b/drivers/staging/rdma/hfi1/trace.h index 42bcfc3e15d5..a6c1adf20dca 100644 --- a/drivers/staging/rdma/hfi1/trace.h +++ b/drivers/staging/rdma/hfi1/trace.h @@ -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__) |