afs.h (99987c560046ea178eb5aea793043deea255f185) afs.h (79ddbfa500b37a94fa7501e65ebdd5c0e4c7592d)
1/* AFS tracepoints
2 *
3 * Copyright (C) 2016 Red Hat, Inc. All Rights Reserved.
4 * Written by David Howells (dhowells@redhat.com)
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public Licence
8 * as published by the Free Software Foundation; either version

--- 94 unchanged lines hidden (view full) ---

103 afs_edit_dir_delete_inval,
104 afs_edit_dir_delete_noent,
105};
106
107enum afs_edit_dir_reason {
108 afs_edit_dir_for_create,
109 afs_edit_dir_for_link,
110 afs_edit_dir_for_mkdir,
1/* AFS tracepoints
2 *
3 * Copyright (C) 2016 Red Hat, Inc. All Rights Reserved.
4 * Written by David Howells (dhowells@redhat.com)
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public Licence
8 * as published by the Free Software Foundation; either version

--- 94 unchanged lines hidden (view full) ---

103 afs_edit_dir_delete_inval,
104 afs_edit_dir_delete_noent,
105};
106
107enum afs_edit_dir_reason {
108 afs_edit_dir_for_create,
109 afs_edit_dir_for_link,
110 afs_edit_dir_for_mkdir,
111 afs_edit_dir_for_rename,
111 afs_edit_dir_for_rename_0,
112 afs_edit_dir_for_rename_1,
113 afs_edit_dir_for_rename_2,
112 afs_edit_dir_for_rmdir,
114 afs_edit_dir_for_rmdir,
115 afs_edit_dir_for_silly_0,
116 afs_edit_dir_for_silly_1,
113 afs_edit_dir_for_symlink,
114 afs_edit_dir_for_unlink,
115};
116
117enum afs_eproto_cause {
118 afs_eproto_bad_status,
119 afs_eproto_cb_count,
120 afs_eproto_cb_fid_count,

--- 35 unchanged lines hidden (view full) ---

156 afs_flock_acquired,
157 afs_flock_callback_break,
158 afs_flock_defer_unlock,
159 afs_flock_extend_fail,
160 afs_flock_fail_other,
161 afs_flock_fail_perm,
162 afs_flock_no_lockers,
163 afs_flock_release_fail,
117 afs_edit_dir_for_symlink,
118 afs_edit_dir_for_unlink,
119};
120
121enum afs_eproto_cause {
122 afs_eproto_bad_status,
123 afs_eproto_cb_count,
124 afs_eproto_cb_fid_count,

--- 35 unchanged lines hidden (view full) ---

160 afs_flock_acquired,
161 afs_flock_callback_break,
162 afs_flock_defer_unlock,
163 afs_flock_extend_fail,
164 afs_flock_fail_other,
165 afs_flock_fail_perm,
166 afs_flock_no_lockers,
167 afs_flock_release_fail,
168 afs_flock_silly_delete,
164 afs_flock_timestamp,
165 afs_flock_try_to_lock,
166 afs_flock_vfs_lock,
167 afs_flock_vfs_locking,
168 afs_flock_waited,
169 afs_flock_waiting,
170 afs_flock_work_extending,
171 afs_flock_work_retry,

--- 96 unchanged lines hidden (view full) ---

268 EM(afs_edit_dir_delete_error, "d_err ") \
269 EM(afs_edit_dir_delete_inval, "d_invl") \
270 E_(afs_edit_dir_delete_noent, "d_nent")
271
272#define afs_edit_dir_reasons \
273 EM(afs_edit_dir_for_create, "Create") \
274 EM(afs_edit_dir_for_link, "Link ") \
275 EM(afs_edit_dir_for_mkdir, "MkDir ") \
169 afs_flock_timestamp,
170 afs_flock_try_to_lock,
171 afs_flock_vfs_lock,
172 afs_flock_vfs_locking,
173 afs_flock_waited,
174 afs_flock_waiting,
175 afs_flock_work_extending,
176 afs_flock_work_retry,

--- 96 unchanged lines hidden (view full) ---

273 EM(afs_edit_dir_delete_error, "d_err ") \
274 EM(afs_edit_dir_delete_inval, "d_invl") \
275 E_(afs_edit_dir_delete_noent, "d_nent")
276
277#define afs_edit_dir_reasons \
278 EM(afs_edit_dir_for_create, "Create") \
279 EM(afs_edit_dir_for_link, "Link ") \
280 EM(afs_edit_dir_for_mkdir, "MkDir ") \
276 EM(afs_edit_dir_for_rename, "Rename") \
281 EM(afs_edit_dir_for_rename_0, "Renam0") \
282 EM(afs_edit_dir_for_rename_1, "Renam1") \
283 EM(afs_edit_dir_for_rename_2, "Renam2") \
277 EM(afs_edit_dir_for_rmdir, "RmDir ") \
284 EM(afs_edit_dir_for_rmdir, "RmDir ") \
285 EM(afs_edit_dir_for_silly_0, "S_Ren0") \
286 EM(afs_edit_dir_for_silly_1, "S_Ren1") \
278 EM(afs_edit_dir_for_symlink, "Symlnk") \
279 E_(afs_edit_dir_for_unlink, "Unlink")
280
281#define afs_eproto_causes \
282 EM(afs_eproto_bad_status, "BadStatus") \
283 EM(afs_eproto_cb_count, "CbCount") \
284 EM(afs_eproto_cb_fid_count, "CbFidCount") \
285 EM(afs_eproto_file_type, "FileTYpe") \

--- 46 unchanged lines hidden (view full) ---

332 EM(afs_flock_acquired, "Acquired") \
333 EM(afs_flock_callback_break, "Callback") \
334 EM(afs_flock_defer_unlock, "D-Unlock") \
335 EM(afs_flock_extend_fail, "Ext_Fail") \
336 EM(afs_flock_fail_other, "ErrOther") \
337 EM(afs_flock_fail_perm, "ErrPerm ") \
338 EM(afs_flock_no_lockers, "NoLocker") \
339 EM(afs_flock_release_fail, "Rel_Fail") \
287 EM(afs_edit_dir_for_symlink, "Symlnk") \
288 E_(afs_edit_dir_for_unlink, "Unlink")
289
290#define afs_eproto_causes \
291 EM(afs_eproto_bad_status, "BadStatus") \
292 EM(afs_eproto_cb_count, "CbCount") \
293 EM(afs_eproto_cb_fid_count, "CbFidCount") \
294 EM(afs_eproto_file_type, "FileTYpe") \

--- 46 unchanged lines hidden (view full) ---

341 EM(afs_flock_acquired, "Acquired") \
342 EM(afs_flock_callback_break, "Callback") \
343 EM(afs_flock_defer_unlock, "D-Unlock") \
344 EM(afs_flock_extend_fail, "Ext_Fail") \
345 EM(afs_flock_fail_other, "ErrOther") \
346 EM(afs_flock_fail_perm, "ErrPerm ") \
347 EM(afs_flock_no_lockers, "NoLocker") \
348 EM(afs_flock_release_fail, "Rel_Fail") \
349 EM(afs_flock_silly_delete, "SillyDel") \
340 EM(afs_flock_timestamp, "Timestmp") \
341 EM(afs_flock_try_to_lock, "TryToLck") \
342 EM(afs_flock_vfs_lock, "VFSLock ") \
343 EM(afs_flock_vfs_locking, "VFSLking") \
344 EM(afs_flock_waited, "Waited ") \
345 EM(afs_flock_waiting, "Waiting ") \
346 EM(afs_flock_work_extending, "Extendng") \
347 EM(afs_flock_work_retry, "Retry ") \

--- 611 unchanged lines hidden (view full) ---

959 TP_fast_assign(
960 __entry->fid = vnode->fid;
961 ),
962
963 TP_printk("%llx:%llx:%x",
964 __entry->fid.vid, __entry->fid.vnode, __entry->fid.unique)
965 );
966
350 EM(afs_flock_timestamp, "Timestmp") \
351 EM(afs_flock_try_to_lock, "TryToLck") \
352 EM(afs_flock_vfs_lock, "VFSLock ") \
353 EM(afs_flock_vfs_locking, "VFSLking") \
354 EM(afs_flock_waited, "Waited ") \
355 EM(afs_flock_waiting, "Waiting ") \
356 EM(afs_flock_work_extending, "Extendng") \
357 EM(afs_flock_work_retry, "Retry ") \

--- 611 unchanged lines hidden (view full) ---

969 TP_fast_assign(
970 __entry->fid = vnode->fid;
971 ),
972
973 TP_printk("%llx:%llx:%x",
974 __entry->fid.vid, __entry->fid.vnode, __entry->fid.unique)
975 );
976
977TRACE_EVENT(afs_silly_rename,
978 TP_PROTO(struct afs_vnode *vnode, bool done),
979
980 TP_ARGS(vnode, done),
981
982 TP_STRUCT__entry(
983 __field_struct(struct afs_fid, fid )
984 __field(bool, done )
985 ),
986
987 TP_fast_assign(
988 __entry->fid = vnode->fid;
989 __entry->done = done;
990 ),
991
992 TP_printk("%llx:%llx:%x done=%u",
993 __entry->fid.vid, __entry->fid.vnode, __entry->fid.unique,
994 __entry->done)
995 );
996
967#endif /* _TRACE_AFS_H */
968
969/* This part must be outside protection */
970#include <trace/define_trace.h>
997#endif /* _TRACE_AFS_H */
998
999/* This part must be outside protection */
1000#include <trace/define_trace.h>