Skip to content

Commit e4bd7c4

Browse files
committed
smb311: Add tracepoints for new compound posix query info
Add dynamic tracepoints for new SMB3.1.1. posix extensions query info level (100) Signed-off-by: Steve French <[email protected]> Reviewed-by: Aurelien Aptel <[email protected]>
1 parent d313852 commit e4bd7c4

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

fs/cifs/smb2inode.c

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -198,8 +198,7 @@ smb2_compound_op(const unsigned int xid, struct cifs_tcon *tcon,
198198
if (rc)
199199
goto finished;
200200
num_rqst++;
201-
trace_smb3_query_info_compound_enter(xid, ses->Suid, tcon->tid,
202-
full_path);
201+
trace_smb3_posix_query_info_compound_enter(xid, ses->Suid, tcon->tid, full_path);
203202
break;
204203
case SMB2_OP_DELETE:
205204
trace_smb3_delete_enter(xid, ses->Suid, tcon->tid, full_path);
@@ -428,11 +427,9 @@ smb2_compound_op(const unsigned int xid, struct cifs_tcon *tcon,
428427
if (rqst[2].rq_iov)
429428
SMB2_close_free(&rqst[2]);
430429
if (rc)
431-
trace_smb3_query_info_compound_err(xid, ses->Suid,
432-
tcon->tid, rc);
430+
trace_smb3_posix_query_info_compound_err(xid, ses->Suid, tcon->tid, rc);
433431
else
434-
trace_smb3_query_info_compound_done(xid, ses->Suid,
435-
tcon->tid);
432+
trace_smb3_posix_query_info_compound_done(xid, ses->Suid, tcon->tid);
436433
break;
437434
case SMB2_OP_DELETE:
438435
if (rc)

fs/cifs/trace.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,7 @@ DEFINE_EVENT(smb3_inf_compound_enter_class, smb3_##name, \
318318
TP_ARGS(xid, tid, sesid, full_path))
319319

320320
DEFINE_SMB3_INF_COMPOUND_ENTER_EVENT(query_info_compound_enter);
321+
DEFINE_SMB3_INF_COMPOUND_ENTER_EVENT(posix_query_info_compound_enter);
321322
DEFINE_SMB3_INF_COMPOUND_ENTER_EVENT(hardlink_enter);
322323
DEFINE_SMB3_INF_COMPOUND_ENTER_EVENT(rename_enter);
323324
DEFINE_SMB3_INF_COMPOUND_ENTER_EVENT(rmdir_enter);
@@ -354,6 +355,7 @@ DEFINE_EVENT(smb3_inf_compound_done_class, smb3_##name, \
354355
TP_ARGS(xid, tid, sesid))
355356

356357
DEFINE_SMB3_INF_COMPOUND_DONE_EVENT(query_info_compound_done);
358+
DEFINE_SMB3_INF_COMPOUND_DONE_EVENT(posix_query_info_compound_done);
357359
DEFINE_SMB3_INF_COMPOUND_DONE_EVENT(hardlink_done);
358360
DEFINE_SMB3_INF_COMPOUND_DONE_EVENT(rename_done);
359361
DEFINE_SMB3_INF_COMPOUND_DONE_EVENT(rmdir_done);
@@ -395,6 +397,7 @@ DEFINE_EVENT(smb3_inf_compound_err_class, smb3_##name, \
395397
TP_ARGS(xid, tid, sesid, rc))
396398

397399
DEFINE_SMB3_INF_COMPOUND_ERR_EVENT(query_info_compound_err);
400+
DEFINE_SMB3_INF_COMPOUND_ERR_EVENT(posix_query_info_compound_err);
398401
DEFINE_SMB3_INF_COMPOUND_ERR_EVENT(hardlink_err);
399402
DEFINE_SMB3_INF_COMPOUND_ERR_EVENT(rename_err);
400403
DEFINE_SMB3_INF_COMPOUND_ERR_EVENT(rmdir_err);

0 commit comments

Comments
 (0)