IB/hfi1: Add static trace for iowait
This patch adds the static trace for resource wait. Reviewed-by: Mitko Haralanov <mitko.haralanov@intel.com> Signed-off-by: Mike Marciniszyn <mike.marciniszyn@intel.com> Signed-off-by: Kaike Wan <kaike.wan@intel.com> Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
This commit is contained in:

committed by
Jason Gunthorpe

parent
5da0fc9dbf
commit
15b796bc3d
@@ -4,9 +4,11 @@
|
||||
*
|
||||
*/
|
||||
#include "iowait.h"
|
||||
#include "trace_iowait.h"
|
||||
|
||||
void iowait_set_flag(struct iowait *wait, u32 flag)
|
||||
{
|
||||
trace_hfi1_iowait_set(wait, flag);
|
||||
set_bit(flag, &wait->flags);
|
||||
}
|
||||
|
||||
@@ -17,6 +19,7 @@ bool iowait_flag_set(struct iowait *wait, u32 flag)
|
||||
|
||||
inline void iowait_clear_flag(struct iowait *wait, u32 flag)
|
||||
{
|
||||
trace_hfi1_iowait_clear(wait, flag);
|
||||
clear_bit(flag, &wait->flags);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user