1b4d0d230SThomas Gleixner /* SPDX-License-Identifier: GPL-2.0-or-later */ 28e8d7f13SDavid Howells /* AFS tracepoints 38e8d7f13SDavid Howells * 48e8d7f13SDavid Howells * Copyright (C) 2016 Red Hat, Inc. All Rights Reserved. 58e8d7f13SDavid Howells * Written by David Howells (dhowells@redhat.com) 68e8d7f13SDavid Howells */ 78e8d7f13SDavid Howells #undef TRACE_SYSTEM 88e8d7f13SDavid Howells #define TRACE_SYSTEM afs 98e8d7f13SDavid Howells 108e8d7f13SDavid Howells #if !defined(_TRACE_AFS_H) || defined(TRACE_HEADER_MULTI_READ) 118e8d7f13SDavid Howells #define _TRACE_AFS_H 128e8d7f13SDavid Howells 138e8d7f13SDavid Howells #include <linux/tracepoint.h> 148e8d7f13SDavid Howells 15341f741fSDavid Howells /* 16341f741fSDavid Howells * Define enums for tracing information. 17341f741fSDavid Howells */ 18341f741fSDavid Howells #ifndef __AFS_DECLARE_TRACE_ENUMS_ONCE_ONLY 19341f741fSDavid Howells #define __AFS_DECLARE_TRACE_ENUMS_ONCE_ONLY 20341f741fSDavid Howells 21341f741fSDavid Howells enum afs_call_trace { 22341f741fSDavid Howells afs_call_trace_alloc, 23341f741fSDavid Howells afs_call_trace_free, 2434fa4761SDavid Howells afs_call_trace_get, 25341f741fSDavid Howells afs_call_trace_put, 26341f741fSDavid Howells afs_call_trace_wake, 27341f741fSDavid Howells afs_call_trace_work, 28341f741fSDavid Howells }; 29341f741fSDavid Howells 3045218193SDavid Howells enum afs_server_trace { 3145218193SDavid Howells afs_server_trace_alloc, 3245218193SDavid Howells afs_server_trace_callback, 3345218193SDavid Howells afs_server_trace_destroy, 3445218193SDavid Howells afs_server_trace_free, 3545218193SDavid Howells afs_server_trace_gc, 36977e5f8eSDavid Howells afs_server_trace_get_by_addr, 3745218193SDavid Howells afs_server_trace_get_by_uuid, 3845218193SDavid Howells afs_server_trace_get_caps, 3945218193SDavid Howells afs_server_trace_get_install, 4045218193SDavid Howells afs_server_trace_get_new_cbi, 41f6cbb368SDavid Howells afs_server_trace_get_probe, 4245218193SDavid Howells afs_server_trace_give_up_cb, 437530d3ebSDavid Howells afs_server_trace_purging, 4445218193SDavid Howells afs_server_trace_put_call, 4545218193SDavid Howells afs_server_trace_put_cbi, 4645218193SDavid Howells afs_server_trace_put_find_rsq, 47f6cbb368SDavid Howells afs_server_trace_put_probe, 4845218193SDavid Howells afs_server_trace_put_slist, 4945218193SDavid Howells afs_server_trace_put_slist_isort, 5045218193SDavid Howells afs_server_trace_put_uuid_rsq, 5145218193SDavid Howells afs_server_trace_update, 5245218193SDavid Howells }; 5345218193SDavid Howells 54dca54a7bSDavid Howells 55cca37d45SDavid Howells enum afs_volume_trace { 56cca37d45SDavid Howells afs_volume_trace_alloc, 57cca37d45SDavid Howells afs_volume_trace_free, 58cca37d45SDavid Howells afs_volume_trace_get_alloc_sbi, 59cca37d45SDavid Howells afs_volume_trace_get_cell_insert, 60cca37d45SDavid Howells afs_volume_trace_get_new_op, 61cca37d45SDavid Howells afs_volume_trace_get_query_alias, 62cca37d45SDavid Howells afs_volume_trace_put_cell_dup, 63cca37d45SDavid Howells afs_volume_trace_put_cell_root, 64cca37d45SDavid Howells afs_volume_trace_put_destroy_sbi, 65cca37d45SDavid Howells afs_volume_trace_put_free_fc, 66cca37d45SDavid Howells afs_volume_trace_put_put_op, 67cca37d45SDavid Howells afs_volume_trace_put_query_alias, 68cca37d45SDavid Howells afs_volume_trace_put_validate_fc, 69cca37d45SDavid Howells afs_volume_trace_remove, 70cca37d45SDavid Howells }; 71cca37d45SDavid Howells 72dca54a7bSDavid Howells enum afs_cell_trace { 73dca54a7bSDavid Howells afs_cell_trace_alloc, 74dca54a7bSDavid Howells afs_cell_trace_free, 75dca54a7bSDavid Howells afs_cell_trace_get_queue_dns, 76dca54a7bSDavid Howells afs_cell_trace_get_queue_manage, 77dca54a7bSDavid Howells afs_cell_trace_get_queue_new, 78dca54a7bSDavid Howells afs_cell_trace_get_vol, 79dca54a7bSDavid Howells afs_cell_trace_insert, 80dca54a7bSDavid Howells afs_cell_trace_manage, 81dca54a7bSDavid Howells afs_cell_trace_put_candidate, 82dca54a7bSDavid Howells afs_cell_trace_put_destroy, 83dca54a7bSDavid Howells afs_cell_trace_put_queue_fail, 84dca54a7bSDavid Howells afs_cell_trace_put_queue_work, 85dca54a7bSDavid Howells afs_cell_trace_put_vol, 86dca54a7bSDavid Howells afs_cell_trace_see_source, 87dca54a7bSDavid Howells afs_cell_trace_see_ws, 88dca54a7bSDavid Howells afs_cell_trace_unuse_alias, 89dca54a7bSDavid Howells afs_cell_trace_unuse_check_alias, 90dca54a7bSDavid Howells afs_cell_trace_unuse_delete, 91dca54a7bSDavid Howells afs_cell_trace_unuse_fc, 92dca54a7bSDavid Howells afs_cell_trace_unuse_lookup, 93dca54a7bSDavid Howells afs_cell_trace_unuse_mntpt, 94dca54a7bSDavid Howells afs_cell_trace_unuse_no_pin, 95dca54a7bSDavid Howells afs_cell_trace_unuse_parse, 96dca54a7bSDavid Howells afs_cell_trace_unuse_pin, 97dca54a7bSDavid Howells afs_cell_trace_unuse_probe, 98dca54a7bSDavid Howells afs_cell_trace_unuse_sbi, 99dca54a7bSDavid Howells afs_cell_trace_unuse_ws, 100dca54a7bSDavid Howells afs_cell_trace_use_alias, 101dca54a7bSDavid Howells afs_cell_trace_use_check_alias, 102dca54a7bSDavid Howells afs_cell_trace_use_fc, 103dca54a7bSDavid Howells afs_cell_trace_use_fc_alias, 104dca54a7bSDavid Howells afs_cell_trace_use_lookup, 105dca54a7bSDavid Howells afs_cell_trace_use_mntpt, 106dca54a7bSDavid Howells afs_cell_trace_use_pin, 107dca54a7bSDavid Howells afs_cell_trace_use_probe, 108dca54a7bSDavid Howells afs_cell_trace_use_sbi, 109dca54a7bSDavid Howells afs_cell_trace_wait, 110dca54a7bSDavid Howells }; 111dca54a7bSDavid Howells 112025db80cSDavid Howells enum afs_fs_operation { 113025db80cSDavid Howells afs_FS_FetchData = 130, /* AFS Fetch file data */ 114260f082bSDavid Howells afs_FS_FetchACL = 131, /* AFS Fetch file ACL */ 115025db80cSDavid Howells afs_FS_FetchStatus = 132, /* AFS Fetch file status */ 116025db80cSDavid Howells afs_FS_StoreData = 133, /* AFS Store file data */ 117b10494afSJoe Gorse afs_FS_StoreACL = 134, /* AFS Store file ACL */ 118025db80cSDavid Howells afs_FS_StoreStatus = 135, /* AFS Store file status */ 119025db80cSDavid Howells afs_FS_RemoveFile = 136, /* AFS Remove a file */ 120025db80cSDavid Howells afs_FS_CreateFile = 137, /* AFS Create a file */ 121025db80cSDavid Howells afs_FS_Rename = 138, /* AFS Rename or move a file or directory */ 122025db80cSDavid Howells afs_FS_Symlink = 139, /* AFS Create a symbolic link */ 123025db80cSDavid Howells afs_FS_Link = 140, /* AFS Create a hard link */ 124025db80cSDavid Howells afs_FS_MakeDir = 141, /* AFS Create a directory */ 125025db80cSDavid Howells afs_FS_RemoveDir = 142, /* AFS Remove a directory */ 126025db80cSDavid Howells afs_FS_GetVolumeInfo = 148, /* AFS Get information about a volume */ 127025db80cSDavid Howells afs_FS_GetVolumeStatus = 149, /* AFS Get volume status information */ 128025db80cSDavid Howells afs_FS_GetRootVolume = 151, /* AFS Get root volume name */ 129025db80cSDavid Howells afs_FS_SetLock = 156, /* AFS Request a file lock */ 130025db80cSDavid Howells afs_FS_ExtendLock = 157, /* AFS Extend a file lock */ 131025db80cSDavid Howells afs_FS_ReleaseLock = 158, /* AFS Release a file lock */ 132025db80cSDavid Howells afs_FS_Lookup = 161, /* AFS lookup file in directory */ 1335cf9dd55SDavid Howells afs_FS_InlineBulkStatus = 65536, /* AFS Fetch multiple file statuses with errors */ 134025db80cSDavid Howells afs_FS_FetchData64 = 65537, /* AFS Fetch file data */ 135025db80cSDavid Howells afs_FS_StoreData64 = 65538, /* AFS Store file data */ 136025db80cSDavid Howells afs_FS_GiveUpAllCallBacks = 65539, /* AFS Give up all our callbacks on a server */ 137025db80cSDavid Howells afs_FS_GetCapabilities = 65540, /* AFS Get FS server capabilities */ 13830062bd1SDavid Howells 13930062bd1SDavid Howells yfs_FS_FetchData = 130, /* YFS Fetch file data */ 14030062bd1SDavid Howells yfs_FS_FetchACL = 64131, /* YFS Fetch file ACL */ 14130062bd1SDavid Howells yfs_FS_FetchStatus = 64132, /* YFS Fetch file status */ 14230062bd1SDavid Howells yfs_FS_StoreACL = 64134, /* YFS Store file ACL */ 14330062bd1SDavid Howells yfs_FS_StoreStatus = 64135, /* YFS Store file status */ 14430062bd1SDavid Howells yfs_FS_RemoveFile = 64136, /* YFS Remove a file */ 14530062bd1SDavid Howells yfs_FS_CreateFile = 64137, /* YFS Create a file */ 14630062bd1SDavid Howells yfs_FS_Rename = 64138, /* YFS Rename or move a file or directory */ 14730062bd1SDavid Howells yfs_FS_Symlink = 64139, /* YFS Create a symbolic link */ 14830062bd1SDavid Howells yfs_FS_Link = 64140, /* YFS Create a hard link */ 14930062bd1SDavid Howells yfs_FS_MakeDir = 64141, /* YFS Create a directory */ 15030062bd1SDavid Howells yfs_FS_RemoveDir = 64142, /* YFS Remove a directory */ 15130062bd1SDavid Howells yfs_FS_GetVolumeStatus = 64149, /* YFS Get volume status information */ 15230062bd1SDavid Howells yfs_FS_SetVolumeStatus = 64150, /* YFS Set volume status information */ 15330062bd1SDavid Howells yfs_FS_SetLock = 64156, /* YFS Request a file lock */ 15430062bd1SDavid Howells yfs_FS_ExtendLock = 64157, /* YFS Extend a file lock */ 15530062bd1SDavid Howells yfs_FS_ReleaseLock = 64158, /* YFS Release a file lock */ 15630062bd1SDavid Howells yfs_FS_Lookup = 64161, /* YFS lookup file in directory */ 15730062bd1SDavid Howells yfs_FS_FlushCPS = 64165, 15830062bd1SDavid Howells yfs_FS_FetchOpaqueACL = 64168, 15930062bd1SDavid Howells yfs_FS_WhoAmI = 64170, 16030062bd1SDavid Howells yfs_FS_RemoveACL = 64171, 16130062bd1SDavid Howells yfs_FS_RemoveFile2 = 64173, 16230062bd1SDavid Howells yfs_FS_StoreOpaqueACL2 = 64174, 16330062bd1SDavid Howells yfs_FS_InlineBulkStatus = 64536, /* YFS Fetch multiple file statuses with errors */ 16430062bd1SDavid Howells yfs_FS_FetchData64 = 64537, /* YFS Fetch file data */ 16530062bd1SDavid Howells yfs_FS_StoreData64 = 64538, /* YFS Store file data */ 16630062bd1SDavid Howells yfs_FS_UpdateSymlink = 64540, 167025db80cSDavid Howells }; 168025db80cSDavid Howells 169025db80cSDavid Howells enum afs_vl_operation { 170025db80cSDavid Howells afs_VL_GetEntryByNameU = 527, /* AFS Get Vol Entry By Name operation ID */ 171025db80cSDavid Howells afs_VL_GetAddrsU = 533, /* AFS Get FS server addresses */ 172025db80cSDavid Howells afs_YFSVL_GetEndpoints = 64002, /* YFS Get FS & Vol server addresses */ 173c3e9f888SDavid Howells afs_YFSVL_GetCellName = 64014, /* YFS Get actual cell name */ 174025db80cSDavid Howells afs_VL_GetCapabilities = 65537, /* AFS Get VL server capabilities */ 175025db80cSDavid Howells }; 176025db80cSDavid Howells 1776c881ca0SDavid Howells enum afs_cm_operation { 1786c881ca0SDavid Howells afs_CB_CallBack = 204, /* AFS break callback promises */ 1796c881ca0SDavid Howells afs_CB_InitCallBackState = 205, /* AFS initialise callback state */ 1806c881ca0SDavid Howells afs_CB_Probe = 206, /* AFS probe client */ 1816c881ca0SDavid Howells afs_CB_GetLock = 207, /* AFS get contents of CM lock table */ 1826c881ca0SDavid Howells afs_CB_GetCE = 208, /* AFS get cache file description */ 1836c881ca0SDavid Howells afs_CB_GetXStatsVersion = 209, /* AFS get version of extended statistics */ 1846c881ca0SDavid Howells afs_CB_GetXStats = 210, /* AFS get contents of extended statistics data */ 1856c881ca0SDavid Howells afs_CB_InitCallBackState3 = 213, /* AFS initialise callback state, version 3 */ 1866c881ca0SDavid Howells afs_CB_ProbeUuid = 214, /* AFS check the client hasn't rebooted */ 1876c881ca0SDavid Howells }; 1886c881ca0SDavid Howells 1896c881ca0SDavid Howells enum yfs_cm_operation { 1906c881ca0SDavid Howells yfs_CB_Probe = 206, /* YFS probe client */ 1916c881ca0SDavid Howells yfs_CB_GetLock = 207, /* YFS get contents of CM lock table */ 1926c881ca0SDavid Howells yfs_CB_XStatsVersion = 209, /* YFS get version of extended statistics */ 1936c881ca0SDavid Howells yfs_CB_GetXStats = 210, /* YFS get contents of extended statistics data */ 1946c881ca0SDavid Howells yfs_CB_InitCallBackState3 = 213, /* YFS initialise callback state, version 3 */ 1956c881ca0SDavid Howells yfs_CB_ProbeUuid = 214, /* YFS check the client hasn't rebooted */ 1966c881ca0SDavid Howells yfs_CB_GetServerPrefs = 215, 1976c881ca0SDavid Howells yfs_CB_GetCellServDV = 216, 1986c881ca0SDavid Howells yfs_CB_GetLocalCell = 217, 1996c881ca0SDavid Howells yfs_CB_GetCacheConfig = 218, 2006c881ca0SDavid Howells yfs_CB_GetCellByNum = 65537, 2016c881ca0SDavid Howells yfs_CB_TellMeAboutYourself = 65538, /* get client capabilities */ 2026c881ca0SDavid Howells yfs_CB_CallBack = 64204, 2036c881ca0SDavid Howells }; 2046c881ca0SDavid Howells 20563a4681fSDavid Howells enum afs_edit_dir_op { 20663a4681fSDavid Howells afs_edit_dir_create, 20763a4681fSDavid Howells afs_edit_dir_create_error, 20863a4681fSDavid Howells afs_edit_dir_create_inval, 20963a4681fSDavid Howells afs_edit_dir_create_nospc, 21063a4681fSDavid Howells afs_edit_dir_delete, 21163a4681fSDavid Howells afs_edit_dir_delete_error, 21263a4681fSDavid Howells afs_edit_dir_delete_inval, 21363a4681fSDavid Howells afs_edit_dir_delete_noent, 21463a4681fSDavid Howells }; 21563a4681fSDavid Howells 21663a4681fSDavid Howells enum afs_edit_dir_reason { 21763a4681fSDavid Howells afs_edit_dir_for_create, 21863a4681fSDavid Howells afs_edit_dir_for_link, 21963a4681fSDavid Howells afs_edit_dir_for_mkdir, 22079ddbfa5SDavid Howells afs_edit_dir_for_rename_0, 22179ddbfa5SDavid Howells afs_edit_dir_for_rename_1, 22279ddbfa5SDavid Howells afs_edit_dir_for_rename_2, 22363a4681fSDavid Howells afs_edit_dir_for_rmdir, 22479ddbfa5SDavid Howells afs_edit_dir_for_silly_0, 22579ddbfa5SDavid Howells afs_edit_dir_for_silly_1, 22663a4681fSDavid Howells afs_edit_dir_for_symlink, 22763a4681fSDavid Howells afs_edit_dir_for_unlink, 22863a4681fSDavid Howells }; 22963a4681fSDavid Howells 230160cb957SDavid Howells enum afs_eproto_cause { 231160cb957SDavid Howells afs_eproto_bad_status, 232160cb957SDavid Howells afs_eproto_cb_count, 233160cb957SDavid Howells afs_eproto_cb_fid_count, 234c3e9f888SDavid Howells afs_eproto_cellname_len, 235160cb957SDavid Howells afs_eproto_file_type, 236160cb957SDavid Howells afs_eproto_ibulkst_cb_count, 237160cb957SDavid Howells afs_eproto_ibulkst_count, 238160cb957SDavid Howells afs_eproto_motd_len, 239160cb957SDavid Howells afs_eproto_offline_msg_len, 240160cb957SDavid Howells afs_eproto_volname_len, 241160cb957SDavid Howells afs_eproto_yvl_fsendpt4_len, 242160cb957SDavid Howells afs_eproto_yvl_fsendpt6_len, 243160cb957SDavid Howells afs_eproto_yvl_fsendpt_num, 244160cb957SDavid Howells afs_eproto_yvl_fsendpt_type, 245160cb957SDavid Howells afs_eproto_yvl_vlendpt4_len, 246160cb957SDavid Howells afs_eproto_yvl_vlendpt6_len, 247160cb957SDavid Howells afs_eproto_yvl_vlendpt_type, 248160cb957SDavid Howells }; 249160cb957SDavid Howells 250f51375cdSDavid Howells enum afs_io_error { 251f51375cdSDavid Howells afs_io_error_cm_reply, 252f51375cdSDavid Howells afs_io_error_extract, 253f51375cdSDavid Howells afs_io_error_fs_probe_fail, 254f51375cdSDavid Howells afs_io_error_vl_lookup_fail, 2553bf0fb6fSDavid Howells afs_io_error_vl_probe_fail, 256f51375cdSDavid Howells }; 257f51375cdSDavid Howells 258f51375cdSDavid Howells enum afs_file_error { 259f51375cdSDavid Howells afs_file_error_dir_bad_magic, 260f51375cdSDavid Howells afs_file_error_dir_big, 261f51375cdSDavid Howells afs_file_error_dir_missing_page, 262366911cdSDavid Howells afs_file_error_dir_name_too_long, 263f51375cdSDavid Howells afs_file_error_dir_over_end, 264f51375cdSDavid Howells afs_file_error_dir_small, 265f51375cdSDavid Howells afs_file_error_dir_unmarked_ext, 266f51375cdSDavid Howells afs_file_error_mntpt, 267f51375cdSDavid Howells afs_file_error_writeback_fail, 268f51375cdSDavid Howells }; 269f51375cdSDavid Howells 270d4696601SDavid Howells enum afs_flock_event { 271d4696601SDavid Howells afs_flock_acquired, 272d4696601SDavid Howells afs_flock_callback_break, 273d4696601SDavid Howells afs_flock_defer_unlock, 274cdfb26b4SDavid Howells afs_flock_extend_fail, 275d4696601SDavid Howells afs_flock_fail_other, 276d4696601SDavid Howells afs_flock_fail_perm, 277d4696601SDavid Howells afs_flock_no_lockers, 278cdfb26b4SDavid Howells afs_flock_release_fail, 27979ddbfa5SDavid Howells afs_flock_silly_delete, 280d4696601SDavid Howells afs_flock_timestamp, 281d4696601SDavid Howells afs_flock_try_to_lock, 282d4696601SDavid Howells afs_flock_vfs_lock, 283d4696601SDavid Howells afs_flock_vfs_locking, 284d4696601SDavid Howells afs_flock_waited, 285d4696601SDavid Howells afs_flock_waiting, 286d4696601SDavid Howells afs_flock_work_extending, 287d4696601SDavid Howells afs_flock_work_retry, 288d4696601SDavid Howells afs_flock_work_unlocking, 289d4696601SDavid Howells afs_flock_would_block, 290d4696601SDavid Howells }; 291d4696601SDavid Howells 292d4696601SDavid Howells enum afs_flock_operation { 293d4696601SDavid Howells afs_flock_op_copy_lock, 294d4696601SDavid Howells afs_flock_op_flock, 295d4696601SDavid Howells afs_flock_op_grant, 296d4696601SDavid Howells afs_flock_op_lock, 297d4696601SDavid Howells afs_flock_op_release_lock, 298d4696601SDavid Howells afs_flock_op_return_ok, 299d4696601SDavid Howells afs_flock_op_return_eagain, 300d4696601SDavid Howells afs_flock_op_return_edeadlk, 301d4696601SDavid Howells afs_flock_op_return_error, 302d4696601SDavid Howells afs_flock_op_set_lock, 303d4696601SDavid Howells afs_flock_op_unlock, 304d4696601SDavid Howells afs_flock_op_wake, 305d4696601SDavid Howells }; 306d4696601SDavid Howells 307051d2525SDavid Howells enum afs_cb_break_reason { 308051d2525SDavid Howells afs_cb_break_no_break, 3094fe6a946SDavid Howells afs_cb_break_no_promise, 310051d2525SDavid Howells afs_cb_break_for_callback, 311051d2525SDavid Howells afs_cb_break_for_deleted, 312051d2525SDavid Howells afs_cb_break_for_lapsed, 3134fe6a946SDavid Howells afs_cb_break_for_s_reinit, 314051d2525SDavid Howells afs_cb_break_for_unlink, 3154fe6a946SDavid Howells afs_cb_break_for_v_break, 316051d2525SDavid Howells afs_cb_break_for_volume_callback, 317051d2525SDavid Howells afs_cb_break_for_zap, 318051d2525SDavid Howells }; 319051d2525SDavid Howells 320341f741fSDavid Howells #endif /* end __AFS_DECLARE_TRACE_ENUMS_ONCE_ONLY */ 321341f741fSDavid Howells 322341f741fSDavid Howells /* 323341f741fSDavid Howells * Declare tracing information enums and their string mappings for display. 324341f741fSDavid Howells */ 325341f741fSDavid Howells #define afs_call_traces \ 326341f741fSDavid Howells EM(afs_call_trace_alloc, "ALLOC") \ 327341f741fSDavid Howells EM(afs_call_trace_free, "FREE ") \ 32834fa4761SDavid Howells EM(afs_call_trace_get, "GET ") \ 329341f741fSDavid Howells EM(afs_call_trace_put, "PUT ") \ 330341f741fSDavid Howells EM(afs_call_trace_wake, "WAKE ") \ 3314636cf18SDavid Howells E_(afs_call_trace_work, "QUEUE") 332341f741fSDavid Howells 33345218193SDavid Howells #define afs_server_traces \ 33445218193SDavid Howells EM(afs_server_trace_alloc, "ALLOC ") \ 33545218193SDavid Howells EM(afs_server_trace_callback, "CALLBACK ") \ 33645218193SDavid Howells EM(afs_server_trace_destroy, "DESTROY ") \ 33745218193SDavid Howells EM(afs_server_trace_free, "FREE ") \ 33845218193SDavid Howells EM(afs_server_trace_gc, "GC ") \ 339977e5f8eSDavid Howells EM(afs_server_trace_get_by_addr, "GET addr ") \ 34045218193SDavid Howells EM(afs_server_trace_get_by_uuid, "GET uuid ") \ 34145218193SDavid Howells EM(afs_server_trace_get_caps, "GET caps ") \ 34245218193SDavid Howells EM(afs_server_trace_get_install, "GET inst ") \ 34345218193SDavid Howells EM(afs_server_trace_get_new_cbi, "GET cbi ") \ 344f6cbb368SDavid Howells EM(afs_server_trace_get_probe, "GET probe") \ 34545218193SDavid Howells EM(afs_server_trace_give_up_cb, "giveup-cb") \ 3467530d3ebSDavid Howells EM(afs_server_trace_purging, "PURGE ") \ 34745218193SDavid Howells EM(afs_server_trace_put_call, "PUT call ") \ 34845218193SDavid Howells EM(afs_server_trace_put_cbi, "PUT cbi ") \ 34945218193SDavid Howells EM(afs_server_trace_put_find_rsq, "PUT f-rsq") \ 350f6cbb368SDavid Howells EM(afs_server_trace_put_probe, "PUT probe") \ 35145218193SDavid Howells EM(afs_server_trace_put_slist, "PUT slist") \ 35245218193SDavid Howells EM(afs_server_trace_put_slist_isort, "PUT isort") \ 35345218193SDavid Howells EM(afs_server_trace_put_uuid_rsq, "PUT u-req") \ 35445218193SDavid Howells E_(afs_server_trace_update, "UPDATE") 35545218193SDavid Howells 356cca37d45SDavid Howells #define afs_volume_traces \ 357cca37d45SDavid Howells EM(afs_volume_trace_alloc, "ALLOC ") \ 358cca37d45SDavid Howells EM(afs_volume_trace_free, "FREE ") \ 359cca37d45SDavid Howells EM(afs_volume_trace_get_alloc_sbi, "GET sbi-alloc ") \ 360cca37d45SDavid Howells EM(afs_volume_trace_get_cell_insert, "GET cell-insrt") \ 361cca37d45SDavid Howells EM(afs_volume_trace_get_new_op, "GET op-new ") \ 362cca37d45SDavid Howells EM(afs_volume_trace_get_query_alias, "GET cell-alias") \ 363cca37d45SDavid Howells EM(afs_volume_trace_put_cell_dup, "PUT cell-dup ") \ 364cca37d45SDavid Howells EM(afs_volume_trace_put_cell_root, "PUT cell-root ") \ 365cca37d45SDavid Howells EM(afs_volume_trace_put_destroy_sbi, "PUT sbi-destry") \ 366cca37d45SDavid Howells EM(afs_volume_trace_put_free_fc, "PUT fc-free ") \ 367cca37d45SDavid Howells EM(afs_volume_trace_put_put_op, "PUT op-put ") \ 368cca37d45SDavid Howells EM(afs_volume_trace_put_query_alias, "PUT cell-alias") \ 369cca37d45SDavid Howells EM(afs_volume_trace_put_validate_fc, "PUT fc-validat") \ 370cca37d45SDavid Howells E_(afs_volume_trace_remove, "REMOVE ") 371cca37d45SDavid Howells 372dca54a7bSDavid Howells #define afs_cell_traces \ 373dca54a7bSDavid Howells EM(afs_cell_trace_alloc, "ALLOC ") \ 374dca54a7bSDavid Howells EM(afs_cell_trace_free, "FREE ") \ 375dca54a7bSDavid Howells EM(afs_cell_trace_get_queue_dns, "GET q-dns ") \ 376dca54a7bSDavid Howells EM(afs_cell_trace_get_queue_manage, "GET q-mng ") \ 377dca54a7bSDavid Howells EM(afs_cell_trace_get_queue_new, "GET q-new ") \ 378dca54a7bSDavid Howells EM(afs_cell_trace_get_vol, "GET vol ") \ 379dca54a7bSDavid Howells EM(afs_cell_trace_insert, "INSERT ") \ 380dca54a7bSDavid Howells EM(afs_cell_trace_manage, "MANAGE ") \ 381dca54a7bSDavid Howells EM(afs_cell_trace_put_candidate, "PUT candid") \ 382dca54a7bSDavid Howells EM(afs_cell_trace_put_destroy, "PUT destry") \ 383dca54a7bSDavid Howells EM(afs_cell_trace_put_queue_work, "PUT q-work") \ 384dca54a7bSDavid Howells EM(afs_cell_trace_put_queue_fail, "PUT q-fail") \ 385dca54a7bSDavid Howells EM(afs_cell_trace_put_vol, "PUT vol ") \ 386dca54a7bSDavid Howells EM(afs_cell_trace_see_source, "SEE source") \ 387dca54a7bSDavid Howells EM(afs_cell_trace_see_ws, "SEE ws ") \ 388dca54a7bSDavid Howells EM(afs_cell_trace_unuse_alias, "UNU alias ") \ 389dca54a7bSDavid Howells EM(afs_cell_trace_unuse_check_alias, "UNU chk-al") \ 390dca54a7bSDavid Howells EM(afs_cell_trace_unuse_delete, "UNU delete") \ 391dca54a7bSDavid Howells EM(afs_cell_trace_unuse_fc, "UNU fc ") \ 392dca54a7bSDavid Howells EM(afs_cell_trace_unuse_lookup, "UNU lookup") \ 393dca54a7bSDavid Howells EM(afs_cell_trace_unuse_mntpt, "UNU mntpt ") \ 394dca54a7bSDavid Howells EM(afs_cell_trace_unuse_parse, "UNU parse ") \ 395dca54a7bSDavid Howells EM(afs_cell_trace_unuse_pin, "UNU pin ") \ 396dca54a7bSDavid Howells EM(afs_cell_trace_unuse_probe, "UNU probe ") \ 397dca54a7bSDavid Howells EM(afs_cell_trace_unuse_sbi, "UNU sbi ") \ 398dca54a7bSDavid Howells EM(afs_cell_trace_unuse_ws, "UNU ws ") \ 399dca54a7bSDavid Howells EM(afs_cell_trace_use_alias, "USE alias ") \ 400dca54a7bSDavid Howells EM(afs_cell_trace_use_check_alias, "USE chk-al") \ 401dca54a7bSDavid Howells EM(afs_cell_trace_use_fc, "USE fc ") \ 402dca54a7bSDavid Howells EM(afs_cell_trace_use_fc_alias, "USE fc-al ") \ 403dca54a7bSDavid Howells EM(afs_cell_trace_use_lookup, "USE lookup") \ 404dca54a7bSDavid Howells EM(afs_cell_trace_use_mntpt, "USE mntpt ") \ 405dca54a7bSDavid Howells EM(afs_cell_trace_use_pin, "USE pin ") \ 406dca54a7bSDavid Howells EM(afs_cell_trace_use_probe, "USE probe ") \ 407dca54a7bSDavid Howells EM(afs_cell_trace_use_sbi, "USE sbi ") \ 408dca54a7bSDavid Howells E_(afs_cell_trace_wait, "WAIT ") 409dca54a7bSDavid Howells 410025db80cSDavid Howells #define afs_fs_operations \ 411025db80cSDavid Howells EM(afs_FS_FetchData, "FS.FetchData") \ 412025db80cSDavid Howells EM(afs_FS_FetchStatus, "FS.FetchStatus") \ 413025db80cSDavid Howells EM(afs_FS_StoreData, "FS.StoreData") \ 414025db80cSDavid Howells EM(afs_FS_StoreStatus, "FS.StoreStatus") \ 415025db80cSDavid Howells EM(afs_FS_RemoveFile, "FS.RemoveFile") \ 416025db80cSDavid Howells EM(afs_FS_CreateFile, "FS.CreateFile") \ 417025db80cSDavid Howells EM(afs_FS_Rename, "FS.Rename") \ 418025db80cSDavid Howells EM(afs_FS_Symlink, "FS.Symlink") \ 419025db80cSDavid Howells EM(afs_FS_Link, "FS.Link") \ 420025db80cSDavid Howells EM(afs_FS_MakeDir, "FS.MakeDir") \ 421025db80cSDavid Howells EM(afs_FS_RemoveDir, "FS.RemoveDir") \ 422025db80cSDavid Howells EM(afs_FS_GetVolumeInfo, "FS.GetVolumeInfo") \ 423025db80cSDavid Howells EM(afs_FS_GetVolumeStatus, "FS.GetVolumeStatus") \ 424025db80cSDavid Howells EM(afs_FS_GetRootVolume, "FS.GetRootVolume") \ 425025db80cSDavid Howells EM(afs_FS_SetLock, "FS.SetLock") \ 426025db80cSDavid Howells EM(afs_FS_ExtendLock, "FS.ExtendLock") \ 427025db80cSDavid Howells EM(afs_FS_ReleaseLock, "FS.ReleaseLock") \ 428025db80cSDavid Howells EM(afs_FS_Lookup, "FS.Lookup") \ 4295cf9dd55SDavid Howells EM(afs_FS_InlineBulkStatus, "FS.InlineBulkStatus") \ 430025db80cSDavid Howells EM(afs_FS_FetchData64, "FS.FetchData64") \ 431025db80cSDavid Howells EM(afs_FS_StoreData64, "FS.StoreData64") \ 432025db80cSDavid Howells EM(afs_FS_GiveUpAllCallBacks, "FS.GiveUpAllCallBacks") \ 43330062bd1SDavid Howells EM(afs_FS_GetCapabilities, "FS.GetCapabilities") \ 43430062bd1SDavid Howells EM(yfs_FS_FetchACL, "YFS.FetchACL") \ 43530062bd1SDavid Howells EM(yfs_FS_FetchStatus, "YFS.FetchStatus") \ 43630062bd1SDavid Howells EM(yfs_FS_StoreACL, "YFS.StoreACL") \ 43730062bd1SDavid Howells EM(yfs_FS_StoreStatus, "YFS.StoreStatus") \ 43830062bd1SDavid Howells EM(yfs_FS_RemoveFile, "YFS.RemoveFile") \ 43930062bd1SDavid Howells EM(yfs_FS_CreateFile, "YFS.CreateFile") \ 44030062bd1SDavid Howells EM(yfs_FS_Rename, "YFS.Rename") \ 44130062bd1SDavid Howells EM(yfs_FS_Symlink, "YFS.Symlink") \ 44230062bd1SDavid Howells EM(yfs_FS_Link, "YFS.Link") \ 44330062bd1SDavid Howells EM(yfs_FS_MakeDir, "YFS.MakeDir") \ 44430062bd1SDavid Howells EM(yfs_FS_RemoveDir, "YFS.RemoveDir") \ 44530062bd1SDavid Howells EM(yfs_FS_GetVolumeStatus, "YFS.GetVolumeStatus") \ 44630062bd1SDavid Howells EM(yfs_FS_SetVolumeStatus, "YFS.SetVolumeStatus") \ 44730062bd1SDavid Howells EM(yfs_FS_SetLock, "YFS.SetLock") \ 44830062bd1SDavid Howells EM(yfs_FS_ExtendLock, "YFS.ExtendLock") \ 44930062bd1SDavid Howells EM(yfs_FS_ReleaseLock, "YFS.ReleaseLock") \ 45030062bd1SDavid Howells EM(yfs_FS_Lookup, "YFS.Lookup") \ 45130062bd1SDavid Howells EM(yfs_FS_FlushCPS, "YFS.FlushCPS") \ 45230062bd1SDavid Howells EM(yfs_FS_FetchOpaqueACL, "YFS.FetchOpaqueACL") \ 45330062bd1SDavid Howells EM(yfs_FS_WhoAmI, "YFS.WhoAmI") \ 45430062bd1SDavid Howells EM(yfs_FS_RemoveACL, "YFS.RemoveACL") \ 45530062bd1SDavid Howells EM(yfs_FS_RemoveFile2, "YFS.RemoveFile2") \ 45630062bd1SDavid Howells EM(yfs_FS_StoreOpaqueACL2, "YFS.StoreOpaqueACL2") \ 45730062bd1SDavid Howells EM(yfs_FS_InlineBulkStatus, "YFS.InlineBulkStatus") \ 45830062bd1SDavid Howells EM(yfs_FS_FetchData64, "YFS.FetchData64") \ 45930062bd1SDavid Howells EM(yfs_FS_StoreData64, "YFS.StoreData64") \ 46030062bd1SDavid Howells E_(yfs_FS_UpdateSymlink, "YFS.UpdateSymlink") 461025db80cSDavid Howells 462025db80cSDavid Howells #define afs_vl_operations \ 463025db80cSDavid Howells EM(afs_VL_GetEntryByNameU, "VL.GetEntryByNameU") \ 464025db80cSDavid Howells EM(afs_VL_GetAddrsU, "VL.GetAddrsU") \ 465025db80cSDavid Howells EM(afs_YFSVL_GetEndpoints, "YFSVL.GetEndpoints") \ 466c3e9f888SDavid Howells EM(afs_YFSVL_GetCellName, "YFSVL.GetCellName") \ 467025db80cSDavid Howells E_(afs_VL_GetCapabilities, "VL.GetCapabilities") 468025db80cSDavid Howells 4696c881ca0SDavid Howells #define afs_cm_operations \ 4706c881ca0SDavid Howells EM(afs_CB_CallBack, "CB.CallBack") \ 4716c881ca0SDavid Howells EM(afs_CB_InitCallBackState, "CB.InitCallBackState") \ 4726c881ca0SDavid Howells EM(afs_CB_Probe, "CB.Probe") \ 4736c881ca0SDavid Howells EM(afs_CB_GetLock, "CB.GetLock") \ 4746c881ca0SDavid Howells EM(afs_CB_GetCE, "CB.GetCE") \ 4756c881ca0SDavid Howells EM(afs_CB_GetXStatsVersion, "CB.GetXStatsVersion") \ 4766c881ca0SDavid Howells EM(afs_CB_GetXStats, "CB.GetXStats") \ 4776c881ca0SDavid Howells EM(afs_CB_InitCallBackState3, "CB.InitCallBackState3") \ 4786c881ca0SDavid Howells E_(afs_CB_ProbeUuid, "CB.ProbeUuid") 4796c881ca0SDavid Howells 4806c881ca0SDavid Howells #define yfs_cm_operations \ 4816c881ca0SDavid Howells EM(yfs_CB_Probe, "YFSCB.Probe") \ 4826c881ca0SDavid Howells EM(yfs_CB_GetLock, "YFSCB.GetLock") \ 4836c881ca0SDavid Howells EM(yfs_CB_XStatsVersion, "YFSCB.XStatsVersion") \ 4846c881ca0SDavid Howells EM(yfs_CB_GetXStats, "YFSCB.GetXStats") \ 4856c881ca0SDavid Howells EM(yfs_CB_InitCallBackState3, "YFSCB.InitCallBackState3") \ 4866c881ca0SDavid Howells EM(yfs_CB_ProbeUuid, "YFSCB.ProbeUuid") \ 4876c881ca0SDavid Howells EM(yfs_CB_GetServerPrefs, "YFSCB.GetServerPrefs") \ 4886c881ca0SDavid Howells EM(yfs_CB_GetCellServDV, "YFSCB.GetCellServDV") \ 4896c881ca0SDavid Howells EM(yfs_CB_GetLocalCell, "YFSCB.GetLocalCell") \ 4906c881ca0SDavid Howells EM(yfs_CB_GetCacheConfig, "YFSCB.GetCacheConfig") \ 4916c881ca0SDavid Howells EM(yfs_CB_GetCellByNum, "YFSCB.GetCellByNum") \ 4926c881ca0SDavid Howells EM(yfs_CB_TellMeAboutYourself, "YFSCB.TellMeAboutYourself") \ 4936c881ca0SDavid Howells E_(yfs_CB_CallBack, "YFSCB.CallBack") 4946c881ca0SDavid Howells 49563a4681fSDavid Howells #define afs_edit_dir_ops \ 49663a4681fSDavid Howells EM(afs_edit_dir_create, "create") \ 49763a4681fSDavid Howells EM(afs_edit_dir_create_error, "c_fail") \ 49863a4681fSDavid Howells EM(afs_edit_dir_create_inval, "c_invl") \ 49963a4681fSDavid Howells EM(afs_edit_dir_create_nospc, "c_nspc") \ 50063a4681fSDavid Howells EM(afs_edit_dir_delete, "delete") \ 50163a4681fSDavid Howells EM(afs_edit_dir_delete_error, "d_err ") \ 50263a4681fSDavid Howells EM(afs_edit_dir_delete_inval, "d_invl") \ 50363a4681fSDavid Howells E_(afs_edit_dir_delete_noent, "d_nent") 50463a4681fSDavid Howells 50563a4681fSDavid Howells #define afs_edit_dir_reasons \ 50663a4681fSDavid Howells EM(afs_edit_dir_for_create, "Create") \ 50763a4681fSDavid Howells EM(afs_edit_dir_for_link, "Link ") \ 50863a4681fSDavid Howells EM(afs_edit_dir_for_mkdir, "MkDir ") \ 50979ddbfa5SDavid Howells EM(afs_edit_dir_for_rename_0, "Renam0") \ 51079ddbfa5SDavid Howells EM(afs_edit_dir_for_rename_1, "Renam1") \ 51179ddbfa5SDavid Howells EM(afs_edit_dir_for_rename_2, "Renam2") \ 51263a4681fSDavid Howells EM(afs_edit_dir_for_rmdir, "RmDir ") \ 51379ddbfa5SDavid Howells EM(afs_edit_dir_for_silly_0, "S_Ren0") \ 51479ddbfa5SDavid Howells EM(afs_edit_dir_for_silly_1, "S_Ren1") \ 51563a4681fSDavid Howells EM(afs_edit_dir_for_symlink, "Symlnk") \ 51663a4681fSDavid Howells E_(afs_edit_dir_for_unlink, "Unlink") 51763a4681fSDavid Howells 518160cb957SDavid Howells #define afs_eproto_causes \ 519160cb957SDavid Howells EM(afs_eproto_bad_status, "BadStatus") \ 520160cb957SDavid Howells EM(afs_eproto_cb_count, "CbCount") \ 521160cb957SDavid Howells EM(afs_eproto_cb_fid_count, "CbFidCount") \ 522c3e9f888SDavid Howells EM(afs_eproto_cellname_len, "CellNameLen") \ 523160cb957SDavid Howells EM(afs_eproto_file_type, "FileTYpe") \ 524160cb957SDavid Howells EM(afs_eproto_ibulkst_cb_count, "IBS.CbCount") \ 525160cb957SDavid Howells EM(afs_eproto_ibulkst_count, "IBS.FidCount") \ 526160cb957SDavid Howells EM(afs_eproto_motd_len, "MotdLen") \ 527160cb957SDavid Howells EM(afs_eproto_offline_msg_len, "OfflineMsgLen") \ 528160cb957SDavid Howells EM(afs_eproto_volname_len, "VolNameLen") \ 529160cb957SDavid Howells EM(afs_eproto_yvl_fsendpt4_len, "YVL.FsEnd4Len") \ 530160cb957SDavid Howells EM(afs_eproto_yvl_fsendpt6_len, "YVL.FsEnd6Len") \ 531160cb957SDavid Howells EM(afs_eproto_yvl_fsendpt_num, "YVL.FsEndCount") \ 532160cb957SDavid Howells EM(afs_eproto_yvl_fsendpt_type, "YVL.FsEndType") \ 533160cb957SDavid Howells EM(afs_eproto_yvl_vlendpt4_len, "YVL.VlEnd4Len") \ 534160cb957SDavid Howells EM(afs_eproto_yvl_vlendpt6_len, "YVL.VlEnd6Len") \ 535160cb957SDavid Howells E_(afs_eproto_yvl_vlendpt_type, "YVL.VlEndType") 536160cb957SDavid Howells 537f51375cdSDavid Howells #define afs_io_errors \ 538f51375cdSDavid Howells EM(afs_io_error_cm_reply, "CM_REPLY") \ 539f51375cdSDavid Howells EM(afs_io_error_extract, "EXTRACT") \ 540f51375cdSDavid Howells EM(afs_io_error_fs_probe_fail, "FS_PROBE_FAIL") \ 5413bf0fb6fSDavid Howells EM(afs_io_error_vl_lookup_fail, "VL_LOOKUP_FAIL") \ 5423bf0fb6fSDavid Howells E_(afs_io_error_vl_probe_fail, "VL_PROBE_FAIL") 543f51375cdSDavid Howells 544f51375cdSDavid Howells #define afs_file_errors \ 545f51375cdSDavid Howells EM(afs_file_error_dir_bad_magic, "DIR_BAD_MAGIC") \ 546f51375cdSDavid Howells EM(afs_file_error_dir_big, "DIR_BIG") \ 547f51375cdSDavid Howells EM(afs_file_error_dir_missing_page, "DIR_MISSING_PAGE") \ 548366911cdSDavid Howells EM(afs_file_error_dir_name_too_long, "DIR_NAME_TOO_LONG") \ 549f51375cdSDavid Howells EM(afs_file_error_dir_over_end, "DIR_ENT_OVER_END") \ 550f51375cdSDavid Howells EM(afs_file_error_dir_small, "DIR_SMALL") \ 551f51375cdSDavid Howells EM(afs_file_error_dir_unmarked_ext, "DIR_UNMARKED_EXT") \ 552f51375cdSDavid Howells EM(afs_file_error_mntpt, "MNTPT_READ_FAILED") \ 553f51375cdSDavid Howells E_(afs_file_error_writeback_fail, "WRITEBACK_FAILED") 554025db80cSDavid Howells 555d4696601SDavid Howells #define afs_flock_types \ 556d4696601SDavid Howells EM(F_RDLCK, "RDLCK") \ 557d4696601SDavid Howells EM(F_WRLCK, "WRLCK") \ 558d4696601SDavid Howells E_(F_UNLCK, "UNLCK") 559d4696601SDavid Howells 560d4696601SDavid Howells #define afs_flock_states \ 561d4696601SDavid Howells EM(AFS_VNODE_LOCK_NONE, "NONE") \ 562d4696601SDavid Howells EM(AFS_VNODE_LOCK_WAITING_FOR_CB, "WAIT_FOR_CB") \ 563d4696601SDavid Howells EM(AFS_VNODE_LOCK_SETTING, "SETTING") \ 564d4696601SDavid Howells EM(AFS_VNODE_LOCK_GRANTED, "GRANTED") \ 565d4696601SDavid Howells EM(AFS_VNODE_LOCK_EXTENDING, "EXTENDING") \ 566d4696601SDavid Howells EM(AFS_VNODE_LOCK_NEED_UNLOCK, "NEED_UNLOCK") \ 567cdfb26b4SDavid Howells EM(AFS_VNODE_LOCK_UNLOCKING, "UNLOCKING") \ 568cdfb26b4SDavid Howells E_(AFS_VNODE_LOCK_DELETED, "DELETED") 569d4696601SDavid Howells 570d4696601SDavid Howells #define afs_flock_events \ 571d4696601SDavid Howells EM(afs_flock_acquired, "Acquired") \ 572d4696601SDavid Howells EM(afs_flock_callback_break, "Callback") \ 573d4696601SDavid Howells EM(afs_flock_defer_unlock, "D-Unlock") \ 574cdfb26b4SDavid Howells EM(afs_flock_extend_fail, "Ext_Fail") \ 575d4696601SDavid Howells EM(afs_flock_fail_other, "ErrOther") \ 576d4696601SDavid Howells EM(afs_flock_fail_perm, "ErrPerm ") \ 577d4696601SDavid Howells EM(afs_flock_no_lockers, "NoLocker") \ 578cdfb26b4SDavid Howells EM(afs_flock_release_fail, "Rel_Fail") \ 57979ddbfa5SDavid Howells EM(afs_flock_silly_delete, "SillyDel") \ 580d4696601SDavid Howells EM(afs_flock_timestamp, "Timestmp") \ 581d4696601SDavid Howells EM(afs_flock_try_to_lock, "TryToLck") \ 582d4696601SDavid Howells EM(afs_flock_vfs_lock, "VFSLock ") \ 583d4696601SDavid Howells EM(afs_flock_vfs_locking, "VFSLking") \ 584d4696601SDavid Howells EM(afs_flock_waited, "Waited ") \ 585d4696601SDavid Howells EM(afs_flock_waiting, "Waiting ") \ 586d4696601SDavid Howells EM(afs_flock_work_extending, "Extendng") \ 587d4696601SDavid Howells EM(afs_flock_work_retry, "Retry ") \ 588d4696601SDavid Howells EM(afs_flock_work_unlocking, "Unlcking") \ 589d4696601SDavid Howells E_(afs_flock_would_block, "EWOULDBL") 590d4696601SDavid Howells 591d4696601SDavid Howells #define afs_flock_operations \ 592d4696601SDavid Howells EM(afs_flock_op_copy_lock, "COPY ") \ 593d4696601SDavid Howells EM(afs_flock_op_flock, "->flock ") \ 594d4696601SDavid Howells EM(afs_flock_op_grant, "GRANT ") \ 595d4696601SDavid Howells EM(afs_flock_op_lock, "->lock ") \ 596d4696601SDavid Howells EM(afs_flock_op_release_lock, "RELEASE ") \ 597d4696601SDavid Howells EM(afs_flock_op_return_ok, "<-OK ") \ 598d4696601SDavid Howells EM(afs_flock_op_return_edeadlk, "<-EDEADL") \ 599d4696601SDavid Howells EM(afs_flock_op_return_eagain, "<-EAGAIN") \ 600d4696601SDavid Howells EM(afs_flock_op_return_error, "<-ERROR ") \ 601d4696601SDavid Howells EM(afs_flock_op_set_lock, "SET ") \ 602d4696601SDavid Howells EM(afs_flock_op_unlock, "UNLOCK ") \ 603d4696601SDavid Howells E_(afs_flock_op_wake, "WAKE ") 604d4696601SDavid Howells 605051d2525SDavid Howells #define afs_cb_break_reasons \ 606051d2525SDavid Howells EM(afs_cb_break_no_break, "no-break") \ 6074fe6a946SDavid Howells EM(afs_cb_break_no_promise, "no-promise") \ 608051d2525SDavid Howells EM(afs_cb_break_for_callback, "break-cb") \ 609051d2525SDavid Howells EM(afs_cb_break_for_deleted, "break-del") \ 610051d2525SDavid Howells EM(afs_cb_break_for_lapsed, "break-lapsed") \ 6114fe6a946SDavid Howells EM(afs_cb_break_for_s_reinit, "s-reinit") \ 612051d2525SDavid Howells EM(afs_cb_break_for_unlink, "break-unlink") \ 6134fe6a946SDavid Howells EM(afs_cb_break_for_v_break, "break-v") \ 614051d2525SDavid Howells EM(afs_cb_break_for_volume_callback, "break-v-cb") \ 615051d2525SDavid Howells E_(afs_cb_break_for_zap, "break-zap") 616051d2525SDavid Howells 617341f741fSDavid Howells /* 618341f741fSDavid Howells * Export enum symbols via userspace. 619341f741fSDavid Howells */ 620341f741fSDavid Howells #undef EM 621341f741fSDavid Howells #undef E_ 622341f741fSDavid Howells #define EM(a, b) TRACE_DEFINE_ENUM(a); 623341f741fSDavid Howells #define E_(a, b) TRACE_DEFINE_ENUM(a); 624341f741fSDavid Howells 625341f741fSDavid Howells afs_call_traces; 62645218193SDavid Howells afs_server_traces; 627dca54a7bSDavid Howells afs_cell_traces; 628025db80cSDavid Howells afs_fs_operations; 629025db80cSDavid Howells afs_vl_operations; 6306c881ca0SDavid Howells afs_cm_operations; 6316c881ca0SDavid Howells yfs_cm_operations; 63263a4681fSDavid Howells afs_edit_dir_ops; 63363a4681fSDavid Howells afs_edit_dir_reasons; 634f51375cdSDavid Howells afs_eproto_causes; 635f51375cdSDavid Howells afs_io_errors; 636f51375cdSDavid Howells afs_file_errors; 637d4696601SDavid Howells afs_flock_types; 638d4696601SDavid Howells afs_flock_operations; 639051d2525SDavid Howells afs_cb_break_reasons; 640341f741fSDavid Howells 641341f741fSDavid Howells /* 642341f741fSDavid Howells * Now redefine the EM() and E_() macros to map the enums to the strings that 643341f741fSDavid Howells * will be printed in the output. 644341f741fSDavid Howells */ 645341f741fSDavid Howells #undef EM 646341f741fSDavid Howells #undef E_ 647341f741fSDavid Howells #define EM(a, b) { a, b }, 648341f741fSDavid Howells #define E_(a, b) { a, b } 649341f741fSDavid Howells 65012bdcf33SDavid Howells TRACE_EVENT(afs_receive_data, 65112bdcf33SDavid Howells TP_PROTO(struct afs_call *call, struct iov_iter *iter, 6528e8d7f13SDavid Howells bool want_more, int ret), 6538e8d7f13SDavid Howells 65412bdcf33SDavid Howells TP_ARGS(call, iter, want_more, ret), 6558e8d7f13SDavid Howells 6568e8d7f13SDavid Howells TP_STRUCT__entry( 65712bdcf33SDavid Howells __field(loff_t, remain ) 658a25e21f0SDavid Howells __field(unsigned int, call ) 6598e8d7f13SDavid Howells __field(enum afs_call_state, state ) 6608e8d7f13SDavid Howells __field(unsigned short, unmarshall ) 6618e8d7f13SDavid Howells __field(bool, want_more ) 6628e8d7f13SDavid Howells __field(int, ret ) 6638e8d7f13SDavid Howells ), 6648e8d7f13SDavid Howells 6658e8d7f13SDavid Howells TP_fast_assign( 666a25e21f0SDavid Howells __entry->call = call->debug_id; 6678e8d7f13SDavid Howells __entry->state = call->state; 6688e8d7f13SDavid Howells __entry->unmarshall = call->unmarshall; 66912bdcf33SDavid Howells __entry->remain = iov_iter_count(iter); 6708e8d7f13SDavid Howells __entry->want_more = want_more; 6718e8d7f13SDavid Howells __entry->ret = ret; 6728e8d7f13SDavid Howells ), 6738e8d7f13SDavid Howells 67412bdcf33SDavid Howells TP_printk("c=%08x r=%llu u=%u w=%u s=%u ret=%d", 6758e8d7f13SDavid Howells __entry->call, 67612bdcf33SDavid Howells __entry->remain, 67712bdcf33SDavid Howells __entry->unmarshall, 67812bdcf33SDavid Howells __entry->want_more, 67912bdcf33SDavid Howells __entry->state, 68012bdcf33SDavid Howells __entry->ret) 6818e8d7f13SDavid Howells ); 6828e8d7f13SDavid Howells 6838e8d7f13SDavid Howells TRACE_EVENT(afs_notify_call, 6848e8d7f13SDavid Howells TP_PROTO(struct rxrpc_call *rxcall, struct afs_call *call), 6858e8d7f13SDavid Howells 6868e8d7f13SDavid Howells TP_ARGS(rxcall, call), 6878e8d7f13SDavid Howells 6888e8d7f13SDavid Howells TP_STRUCT__entry( 689a25e21f0SDavid Howells __field(unsigned int, call ) 6908e8d7f13SDavid Howells __field(enum afs_call_state, state ) 6918e8d7f13SDavid Howells __field(unsigned short, unmarshall ) 6928e8d7f13SDavid Howells ), 6938e8d7f13SDavid Howells 6948e8d7f13SDavid Howells TP_fast_assign( 695a25e21f0SDavid Howells __entry->call = call->debug_id; 6968e8d7f13SDavid Howells __entry->state = call->state; 6978e8d7f13SDavid Howells __entry->unmarshall = call->unmarshall; 6988e8d7f13SDavid Howells ), 6998e8d7f13SDavid Howells 700a25e21f0SDavid Howells TP_printk("c=%08x s=%u u=%u", 7018e8d7f13SDavid Howells __entry->call, 7028e8d7f13SDavid Howells __entry->state, __entry->unmarshall) 7038e8d7f13SDavid Howells ); 7048e8d7f13SDavid Howells 7058e8d7f13SDavid Howells TRACE_EVENT(afs_cb_call, 7068e8d7f13SDavid Howells TP_PROTO(struct afs_call *call), 7078e8d7f13SDavid Howells 7088e8d7f13SDavid Howells TP_ARGS(call), 7098e8d7f13SDavid Howells 7108e8d7f13SDavid Howells TP_STRUCT__entry( 711a25e21f0SDavid Howells __field(unsigned int, call ) 7128e8d7f13SDavid Howells __field(u32, op ) 7136c881ca0SDavid Howells __field(u16, service_id ) 7148e8d7f13SDavid Howells ), 7158e8d7f13SDavid Howells 7168e8d7f13SDavid Howells TP_fast_assign( 717a25e21f0SDavid Howells __entry->call = call->debug_id; 7188e8d7f13SDavid Howells __entry->op = call->operation_ID; 7196c881ca0SDavid Howells __entry->service_id = call->service_id; 7208e8d7f13SDavid Howells ), 7218e8d7f13SDavid Howells 7226c881ca0SDavid Howells TP_printk("c=%08x %s", 7238e8d7f13SDavid Howells __entry->call, 7246c881ca0SDavid Howells __entry->service_id == 2501 ? 7256c881ca0SDavid Howells __print_symbolic(__entry->op, yfs_cm_operations) : 7266c881ca0SDavid Howells __print_symbolic(__entry->op, afs_cm_operations)) 7278e8d7f13SDavid Howells ); 7288e8d7f13SDavid Howells 729341f741fSDavid Howells TRACE_EVENT(afs_call, 730341f741fSDavid Howells TP_PROTO(struct afs_call *call, enum afs_call_trace op, 731*c56f9ec8SDavid Howells int ref, int outstanding, const void *where), 732341f741fSDavid Howells 733*c56f9ec8SDavid Howells TP_ARGS(call, op, ref, outstanding, where), 734341f741fSDavid Howells 735341f741fSDavid Howells TP_STRUCT__entry( 736a25e21f0SDavid Howells __field(unsigned int, call ) 737341f741fSDavid Howells __field(int, op ) 738*c56f9ec8SDavid Howells __field(int, ref ) 739341f741fSDavid Howells __field(int, outstanding ) 740341f741fSDavid Howells __field(const void *, where ) 741341f741fSDavid Howells ), 742341f741fSDavid Howells 743341f741fSDavid Howells TP_fast_assign( 744a25e21f0SDavid Howells __entry->call = call->debug_id; 745341f741fSDavid Howells __entry->op = op; 746*c56f9ec8SDavid Howells __entry->ref = ref; 747341f741fSDavid Howells __entry->outstanding = outstanding; 748341f741fSDavid Howells __entry->where = where; 749341f741fSDavid Howells ), 750341f741fSDavid Howells 751*c56f9ec8SDavid Howells TP_printk("c=%08x %s r=%d o=%d sp=%pSR", 752341f741fSDavid Howells __entry->call, 753341f741fSDavid Howells __print_symbolic(__entry->op, afs_call_traces), 754*c56f9ec8SDavid Howells __entry->ref, 755341f741fSDavid Howells __entry->outstanding, 756341f741fSDavid Howells __entry->where) 757341f741fSDavid Howells ); 758341f741fSDavid Howells 759025db80cSDavid Howells TRACE_EVENT(afs_make_fs_call, 760025db80cSDavid Howells TP_PROTO(struct afs_call *call, const struct afs_fid *fid), 761025db80cSDavid Howells 762025db80cSDavid Howells TP_ARGS(call, fid), 763025db80cSDavid Howells 764025db80cSDavid Howells TP_STRUCT__entry( 765a25e21f0SDavid Howells __field(unsigned int, call ) 766025db80cSDavid Howells __field(enum afs_fs_operation, op ) 767025db80cSDavid Howells __field_struct(struct afs_fid, fid ) 768025db80cSDavid Howells ), 769025db80cSDavid Howells 770025db80cSDavid Howells TP_fast_assign( 771a25e21f0SDavid Howells __entry->call = call->debug_id; 772025db80cSDavid Howells __entry->op = call->operation_ID; 773025db80cSDavid Howells if (fid) { 774025db80cSDavid Howells __entry->fid = *fid; 775025db80cSDavid Howells } else { 776025db80cSDavid Howells __entry->fid.vid = 0; 777025db80cSDavid Howells __entry->fid.vnode = 0; 778025db80cSDavid Howells __entry->fid.unique = 0; 779025db80cSDavid Howells } 780025db80cSDavid Howells ), 781025db80cSDavid Howells 7823b6492dfSDavid Howells TP_printk("c=%08x %06llx:%06llx:%06x %s", 783025db80cSDavid Howells __entry->call, 784025db80cSDavid Howells __entry->fid.vid, 785025db80cSDavid Howells __entry->fid.vnode, 786025db80cSDavid Howells __entry->fid.unique, 787025db80cSDavid Howells __print_symbolic(__entry->op, afs_fs_operations)) 788025db80cSDavid Howells ); 789025db80cSDavid Howells 7906c6c1d63SDavid Howells TRACE_EVENT(afs_make_fs_calli, 7916c6c1d63SDavid Howells TP_PROTO(struct afs_call *call, const struct afs_fid *fid, 7926c6c1d63SDavid Howells unsigned int i), 7936c6c1d63SDavid Howells 7946c6c1d63SDavid Howells TP_ARGS(call, fid, i), 7956c6c1d63SDavid Howells 7966c6c1d63SDavid Howells TP_STRUCT__entry( 7976c6c1d63SDavid Howells __field(unsigned int, call ) 7986c6c1d63SDavid Howells __field(unsigned int, i ) 7996c6c1d63SDavid Howells __field(enum afs_fs_operation, op ) 8006c6c1d63SDavid Howells __field_struct(struct afs_fid, fid ) 8016c6c1d63SDavid Howells ), 8026c6c1d63SDavid Howells 8036c6c1d63SDavid Howells TP_fast_assign( 8046c6c1d63SDavid Howells __entry->call = call->debug_id; 8056c6c1d63SDavid Howells __entry->i = i; 8066c6c1d63SDavid Howells __entry->op = call->operation_ID; 8076c6c1d63SDavid Howells if (fid) { 8086c6c1d63SDavid Howells __entry->fid = *fid; 8096c6c1d63SDavid Howells } else { 8106c6c1d63SDavid Howells __entry->fid.vid = 0; 8116c6c1d63SDavid Howells __entry->fid.vnode = 0; 8126c6c1d63SDavid Howells __entry->fid.unique = 0; 8136c6c1d63SDavid Howells } 8146c6c1d63SDavid Howells ), 8156c6c1d63SDavid Howells 8166c6c1d63SDavid Howells TP_printk("c=%08x %06llx:%06llx:%06x %s i=%u", 8176c6c1d63SDavid Howells __entry->call, 8186c6c1d63SDavid Howells __entry->fid.vid, 8196c6c1d63SDavid Howells __entry->fid.vnode, 8206c6c1d63SDavid Howells __entry->fid.unique, 8216c6c1d63SDavid Howells __print_symbolic(__entry->op, afs_fs_operations), 8226c6c1d63SDavid Howells __entry->i) 8236c6c1d63SDavid Howells ); 8246c6c1d63SDavid Howells 82580548b03SDavid Howells TRACE_EVENT(afs_make_fs_call1, 82680548b03SDavid Howells TP_PROTO(struct afs_call *call, const struct afs_fid *fid, 827e49c7b2fSDavid Howells const struct qstr *name), 82880548b03SDavid Howells 82980548b03SDavid Howells TP_ARGS(call, fid, name), 83080548b03SDavid Howells 83180548b03SDavid Howells TP_STRUCT__entry( 83280548b03SDavid Howells __field(unsigned int, call ) 83380548b03SDavid Howells __field(enum afs_fs_operation, op ) 83480548b03SDavid Howells __field_struct(struct afs_fid, fid ) 83580548b03SDavid Howells __array(char, name, 24 ) 83680548b03SDavid Howells ), 83780548b03SDavid Howells 83880548b03SDavid Howells TP_fast_assign( 839e49c7b2fSDavid Howells unsigned int __len = min_t(unsigned int, name->len, 23); 84080548b03SDavid Howells __entry->call = call->debug_id; 84180548b03SDavid Howells __entry->op = call->operation_ID; 84280548b03SDavid Howells if (fid) { 84380548b03SDavid Howells __entry->fid = *fid; 84480548b03SDavid Howells } else { 84580548b03SDavid Howells __entry->fid.vid = 0; 84680548b03SDavid Howells __entry->fid.vnode = 0; 84780548b03SDavid Howells __entry->fid.unique = 0; 84880548b03SDavid Howells } 849e49c7b2fSDavid Howells memcpy(__entry->name, name->name, __len); 85080548b03SDavid Howells __entry->name[__len] = 0; 85180548b03SDavid Howells ), 85280548b03SDavid Howells 85380548b03SDavid Howells TP_printk("c=%08x %06llx:%06llx:%06x %s \"%s\"", 85480548b03SDavid Howells __entry->call, 85580548b03SDavid Howells __entry->fid.vid, 85680548b03SDavid Howells __entry->fid.vnode, 85780548b03SDavid Howells __entry->fid.unique, 85880548b03SDavid Howells __print_symbolic(__entry->op, afs_fs_operations), 85980548b03SDavid Howells __entry->name) 86080548b03SDavid Howells ); 86180548b03SDavid Howells 86280548b03SDavid Howells TRACE_EVENT(afs_make_fs_call2, 86380548b03SDavid Howells TP_PROTO(struct afs_call *call, const struct afs_fid *fid, 864e49c7b2fSDavid Howells const struct qstr *name, const struct qstr *name2), 86580548b03SDavid Howells 86680548b03SDavid Howells TP_ARGS(call, fid, name, name2), 86780548b03SDavid Howells 86880548b03SDavid Howells TP_STRUCT__entry( 86980548b03SDavid Howells __field(unsigned int, call ) 87080548b03SDavid Howells __field(enum afs_fs_operation, op ) 87180548b03SDavid Howells __field_struct(struct afs_fid, fid ) 87280548b03SDavid Howells __array(char, name, 24 ) 87380548b03SDavid Howells __array(char, name2, 24 ) 87480548b03SDavid Howells ), 87580548b03SDavid Howells 87680548b03SDavid Howells TP_fast_assign( 877e49c7b2fSDavid Howells unsigned int __len = min_t(unsigned int, name->len, 23); 878e49c7b2fSDavid Howells unsigned int __len2 = min_t(unsigned int, name2->len, 23); 87980548b03SDavid Howells __entry->call = call->debug_id; 88080548b03SDavid Howells __entry->op = call->operation_ID; 88180548b03SDavid Howells if (fid) { 88280548b03SDavid Howells __entry->fid = *fid; 88380548b03SDavid Howells } else { 88480548b03SDavid Howells __entry->fid.vid = 0; 88580548b03SDavid Howells __entry->fid.vnode = 0; 88680548b03SDavid Howells __entry->fid.unique = 0; 88780548b03SDavid Howells } 888e49c7b2fSDavid Howells memcpy(__entry->name, name->name, __len); 88980548b03SDavid Howells __entry->name[__len] = 0; 890e49c7b2fSDavid Howells memcpy(__entry->name2, name2->name, __len2); 89180548b03SDavid Howells __entry->name2[__len2] = 0; 89280548b03SDavid Howells ), 89380548b03SDavid Howells 89480548b03SDavid Howells TP_printk("c=%08x %06llx:%06llx:%06x %s \"%s\" \"%s\"", 89580548b03SDavid Howells __entry->call, 89680548b03SDavid Howells __entry->fid.vid, 89780548b03SDavid Howells __entry->fid.vnode, 89880548b03SDavid Howells __entry->fid.unique, 89980548b03SDavid Howells __print_symbolic(__entry->op, afs_fs_operations), 90080548b03SDavid Howells __entry->name, 90180548b03SDavid Howells __entry->name2) 90280548b03SDavid Howells ); 90380548b03SDavid Howells 904025db80cSDavid Howells TRACE_EVENT(afs_make_vl_call, 905025db80cSDavid Howells TP_PROTO(struct afs_call *call), 906025db80cSDavid Howells 907025db80cSDavid Howells TP_ARGS(call), 908025db80cSDavid Howells 909025db80cSDavid Howells TP_STRUCT__entry( 910a25e21f0SDavid Howells __field(unsigned int, call ) 911025db80cSDavid Howells __field(enum afs_vl_operation, op ) 912025db80cSDavid Howells ), 913025db80cSDavid Howells 914025db80cSDavid Howells TP_fast_assign( 915a25e21f0SDavid Howells __entry->call = call->debug_id; 916025db80cSDavid Howells __entry->op = call->operation_ID; 917025db80cSDavid Howells ), 918025db80cSDavid Howells 919a25e21f0SDavid Howells TP_printk("c=%08x %s", 920025db80cSDavid Howells __entry->call, 921025db80cSDavid Howells __print_symbolic(__entry->op, afs_vl_operations)) 922025db80cSDavid Howells ); 923025db80cSDavid Howells 924025db80cSDavid Howells TRACE_EVENT(afs_call_done, 925025db80cSDavid Howells TP_PROTO(struct afs_call *call), 926025db80cSDavid Howells 927025db80cSDavid Howells TP_ARGS(call), 928025db80cSDavid Howells 929025db80cSDavid Howells TP_STRUCT__entry( 930a25e21f0SDavid Howells __field(unsigned int, call ) 931025db80cSDavid Howells __field(struct rxrpc_call *, rx_call ) 932025db80cSDavid Howells __field(int, ret ) 933025db80cSDavid Howells __field(u32, abort_code ) 934025db80cSDavid Howells ), 935025db80cSDavid Howells 936025db80cSDavid Howells TP_fast_assign( 937a25e21f0SDavid Howells __entry->call = call->debug_id; 938025db80cSDavid Howells __entry->rx_call = call->rxcall; 939025db80cSDavid Howells __entry->ret = call->error; 940025db80cSDavid Howells __entry->abort_code = call->abort_code; 941025db80cSDavid Howells ), 942025db80cSDavid Howells 943a25e21f0SDavid Howells TP_printk(" c=%08x ret=%d ab=%d [%p]", 944025db80cSDavid Howells __entry->call, 945025db80cSDavid Howells __entry->ret, 946025db80cSDavid Howells __entry->abort_code, 947025db80cSDavid Howells __entry->rx_call) 948025db80cSDavid Howells ); 949025db80cSDavid Howells 950bd80d8a8SDavid Howells TRACE_EVENT(afs_send_data, 951bd80d8a8SDavid Howells TP_PROTO(struct afs_call *call, struct msghdr *msg), 9522c099014SDavid Howells 953bd80d8a8SDavid Howells TP_ARGS(call, msg), 9542c099014SDavid Howells 9552c099014SDavid Howells TP_STRUCT__entry( 956a25e21f0SDavid Howells __field(unsigned int, call ) 9572c099014SDavid Howells __field(unsigned int, flags ) 958bd80d8a8SDavid Howells __field(loff_t, offset ) 959bd80d8a8SDavid Howells __field(loff_t, count ) 9602c099014SDavid Howells ), 9612c099014SDavid Howells 9622c099014SDavid Howells TP_fast_assign( 963a25e21f0SDavid Howells __entry->call = call->debug_id; 9642c099014SDavid Howells __entry->flags = msg->msg_flags; 965bd80d8a8SDavid Howells __entry->offset = msg->msg_iter.xarray_start + msg->msg_iter.iov_offset; 966bd80d8a8SDavid Howells __entry->count = iov_iter_count(&msg->msg_iter); 9672c099014SDavid Howells ), 9682c099014SDavid Howells 969bd80d8a8SDavid Howells TP_printk(" c=%08x o=%llx n=%llx f=%x", 970bd80d8a8SDavid Howells __entry->call, __entry->offset, __entry->count, 9712c099014SDavid Howells __entry->flags) 9722c099014SDavid Howells ); 9732c099014SDavid Howells 974bd80d8a8SDavid Howells TRACE_EVENT(afs_sent_data, 975bd80d8a8SDavid Howells TP_PROTO(struct afs_call *call, struct msghdr *msg, int ret), 9762c099014SDavid Howells 977bd80d8a8SDavid Howells TP_ARGS(call, msg, ret), 9782c099014SDavid Howells 9792c099014SDavid Howells TP_STRUCT__entry( 980a25e21f0SDavid Howells __field(unsigned int, call ) 9812c099014SDavid Howells __field(int, ret ) 982bd80d8a8SDavid Howells __field(loff_t, offset ) 983bd80d8a8SDavid Howells __field(loff_t, count ) 9842c099014SDavid Howells ), 9852c099014SDavid Howells 9862c099014SDavid Howells TP_fast_assign( 987a25e21f0SDavid Howells __entry->call = call->debug_id; 9882c099014SDavid Howells __entry->ret = ret; 989bd80d8a8SDavid Howells __entry->offset = msg->msg_iter.xarray_start + msg->msg_iter.iov_offset; 990bd80d8a8SDavid Howells __entry->count = iov_iter_count(&msg->msg_iter); 9912c099014SDavid Howells ), 9922c099014SDavid Howells 993bd80d8a8SDavid Howells TP_printk(" c=%08x o=%llx n=%llx r=%x", 994bd80d8a8SDavid Howells __entry->call, __entry->offset, __entry->count, 995bd80d8a8SDavid Howells __entry->ret) 9962c099014SDavid Howells ); 9972c099014SDavid Howells 998dab17c1aSDavid Howells TRACE_EVENT(afs_dir_check_failed, 999dab17c1aSDavid Howells TP_PROTO(struct afs_vnode *vnode, loff_t off, loff_t i_size), 1000dab17c1aSDavid Howells 1001dab17c1aSDavid Howells TP_ARGS(vnode, off, i_size), 1002dab17c1aSDavid Howells 1003dab17c1aSDavid Howells TP_STRUCT__entry( 1004dab17c1aSDavid Howells __field(struct afs_vnode *, vnode ) 1005dab17c1aSDavid Howells __field(loff_t, off ) 1006dab17c1aSDavid Howells __field(loff_t, i_size ) 1007dab17c1aSDavid Howells ), 1008dab17c1aSDavid Howells 1009dab17c1aSDavid Howells TP_fast_assign( 1010dab17c1aSDavid Howells __entry->vnode = vnode; 1011dab17c1aSDavid Howells __entry->off = off; 1012dab17c1aSDavid Howells __entry->i_size = i_size; 1013dab17c1aSDavid Howells ), 1014dab17c1aSDavid Howells 1015dab17c1aSDavid Howells TP_printk("vn=%p %llx/%llx", 1016dab17c1aSDavid Howells __entry->vnode, __entry->off, __entry->i_size) 1017dab17c1aSDavid Howells ); 1018dab17c1aSDavid Howells 101978525c74SDavid Howells TRACE_EVENT(afs_folio_dirty, 102078525c74SDavid Howells TP_PROTO(struct afs_vnode *vnode, const char *where, struct folio *folio), 102113524ab3SDavid Howells 102278525c74SDavid Howells TP_ARGS(vnode, where, folio), 102313524ab3SDavid Howells 102413524ab3SDavid Howells TP_STRUCT__entry( 102513524ab3SDavid Howells __field(struct afs_vnode *, vnode ) 102613524ab3SDavid Howells __field(const char *, where ) 102778525c74SDavid Howells __field(pgoff_t, index ) 102867d78a6fSDavid Howells __field(unsigned long, from ) 102967d78a6fSDavid Howells __field(unsigned long, to ) 103013524ab3SDavid Howells ), 103113524ab3SDavid Howells 103213524ab3SDavid Howells TP_fast_assign( 103378525c74SDavid Howells unsigned long priv = (unsigned long)folio_get_private(folio); 103413524ab3SDavid Howells __entry->vnode = vnode; 103513524ab3SDavid Howells __entry->where = where; 103678525c74SDavid Howells __entry->index = folio_index(folio); 103778525c74SDavid Howells __entry->from = afs_folio_dirty_from(folio, priv); 103878525c74SDavid Howells __entry->to = afs_folio_dirty_to(folio, priv); 103978525c74SDavid Howells __entry->to |= (afs_is_folio_dirty_mmapped(priv) ? 104067d78a6fSDavid Howells (1UL << (BITS_PER_LONG - 1)) : 0); 104113524ab3SDavid Howells ), 104213524ab3SDavid Howells 104367d78a6fSDavid Howells TP_printk("vn=%p %lx %s %lx-%lx%s", 104478525c74SDavid Howells __entry->vnode, __entry->index, __entry->where, 104567d78a6fSDavid Howells __entry->from, 104667d78a6fSDavid Howells __entry->to & ~(1UL << (BITS_PER_LONG - 1)), 104767d78a6fSDavid Howells __entry->to & (1UL << (BITS_PER_LONG - 1)) ? " M" : "") 104813524ab3SDavid Howells ); 104913524ab3SDavid Howells 105098bf40cdSDavid Howells TRACE_EVENT(afs_call_state, 105198bf40cdSDavid Howells TP_PROTO(struct afs_call *call, 105298bf40cdSDavid Howells enum afs_call_state from, 105398bf40cdSDavid Howells enum afs_call_state to, 105498bf40cdSDavid Howells int ret, u32 remote_abort), 105598bf40cdSDavid Howells 105698bf40cdSDavid Howells TP_ARGS(call, from, to, ret, remote_abort), 105798bf40cdSDavid Howells 105898bf40cdSDavid Howells TP_STRUCT__entry( 1059a25e21f0SDavid Howells __field(unsigned int, call ) 106098bf40cdSDavid Howells __field(enum afs_call_state, from ) 106198bf40cdSDavid Howells __field(enum afs_call_state, to ) 106298bf40cdSDavid Howells __field(int, ret ) 106398bf40cdSDavid Howells __field(u32, abort ) 106498bf40cdSDavid Howells ), 106598bf40cdSDavid Howells 106698bf40cdSDavid Howells TP_fast_assign( 1067a25e21f0SDavid Howells __entry->call = call->debug_id; 106898bf40cdSDavid Howells __entry->from = from; 106998bf40cdSDavid Howells __entry->to = to; 107098bf40cdSDavid Howells __entry->ret = ret; 107198bf40cdSDavid Howells __entry->abort = remote_abort; 107298bf40cdSDavid Howells ), 107398bf40cdSDavid Howells 1074a25e21f0SDavid Howells TP_printk("c=%08x %u->%u r=%d ab=%d", 107598bf40cdSDavid Howells __entry->call, 107698bf40cdSDavid Howells __entry->from, __entry->to, 107798bf40cdSDavid Howells __entry->ret, __entry->abort) 107898bf40cdSDavid Howells ); 107998bf40cdSDavid Howells 108080548b03SDavid Howells TRACE_EVENT(afs_lookup, 108180548b03SDavid Howells TP_PROTO(struct afs_vnode *dvnode, const struct qstr *name, 108240a708bdSDavid Howells struct afs_fid *fid), 108380548b03SDavid Howells 108440a708bdSDavid Howells TP_ARGS(dvnode, name, fid), 108580548b03SDavid Howells 108680548b03SDavid Howells TP_STRUCT__entry( 108780548b03SDavid Howells __field_struct(struct afs_fid, dfid ) 108880548b03SDavid Howells __field_struct(struct afs_fid, fid ) 108980548b03SDavid Howells __array(char, name, 24 ) 109080548b03SDavid Howells ), 109180548b03SDavid Howells 109280548b03SDavid Howells TP_fast_assign( 109380548b03SDavid Howells int __len = min_t(int, name->len, 23); 109480548b03SDavid Howells __entry->dfid = dvnode->fid; 109540a708bdSDavid Howells __entry->fid = *fid; 109680548b03SDavid Howells memcpy(__entry->name, name->name, __len); 109780548b03SDavid Howells __entry->name[__len] = 0; 109880548b03SDavid Howells ), 109980548b03SDavid Howells 110080548b03SDavid Howells TP_printk("d=%llx:%llx:%x \"%s\" f=%llx:%x", 110180548b03SDavid Howells __entry->dfid.vid, __entry->dfid.vnode, __entry->dfid.unique, 110280548b03SDavid Howells __entry->name, 110380548b03SDavid Howells __entry->fid.vnode, __entry->fid.unique) 110480548b03SDavid Howells ); 110580548b03SDavid Howells 110663a4681fSDavid Howells TRACE_EVENT(afs_edit_dir, 110763a4681fSDavid Howells TP_PROTO(struct afs_vnode *dvnode, 110863a4681fSDavid Howells enum afs_edit_dir_reason why, 110963a4681fSDavid Howells enum afs_edit_dir_op op, 111063a4681fSDavid Howells unsigned int block, 111163a4681fSDavid Howells unsigned int slot, 111263a4681fSDavid Howells unsigned int f_vnode, 111363a4681fSDavid Howells unsigned int f_unique, 111463a4681fSDavid Howells const char *name), 111563a4681fSDavid Howells 111663a4681fSDavid Howells TP_ARGS(dvnode, why, op, block, slot, f_vnode, f_unique, name), 111763a4681fSDavid Howells 111863a4681fSDavid Howells TP_STRUCT__entry( 111963a4681fSDavid Howells __field(unsigned int, vnode ) 112063a4681fSDavid Howells __field(unsigned int, unique ) 112163a4681fSDavid Howells __field(enum afs_edit_dir_reason, why ) 112263a4681fSDavid Howells __field(enum afs_edit_dir_op, op ) 112363a4681fSDavid Howells __field(unsigned int, block ) 112463a4681fSDavid Howells __field(unsigned short, slot ) 112563a4681fSDavid Howells __field(unsigned int, f_vnode ) 112663a4681fSDavid Howells __field(unsigned int, f_unique ) 112780548b03SDavid Howells __array(char, name, 24 ) 112863a4681fSDavid Howells ), 112963a4681fSDavid Howells 113063a4681fSDavid Howells TP_fast_assign( 113163a4681fSDavid Howells int __len = strlen(name); 113280548b03SDavid Howells __len = min(__len, 23); 113363a4681fSDavid Howells __entry->vnode = dvnode->fid.vnode; 113463a4681fSDavid Howells __entry->unique = dvnode->fid.unique; 113563a4681fSDavid Howells __entry->why = why; 113663a4681fSDavid Howells __entry->op = op; 113763a4681fSDavid Howells __entry->block = block; 113863a4681fSDavid Howells __entry->slot = slot; 113963a4681fSDavid Howells __entry->f_vnode = f_vnode; 114063a4681fSDavid Howells __entry->f_unique = f_unique; 114163a4681fSDavid Howells memcpy(__entry->name, name, __len); 114263a4681fSDavid Howells __entry->name[__len] = 0; 114363a4681fSDavid Howells ), 114463a4681fSDavid Howells 114580548b03SDavid Howells TP_printk("d=%x:%x %s %s %u[%u] f=%x:%x \"%s\"", 114663a4681fSDavid Howells __entry->vnode, __entry->unique, 114763a4681fSDavid Howells __print_symbolic(__entry->why, afs_edit_dir_reasons), 114863a4681fSDavid Howells __print_symbolic(__entry->op, afs_edit_dir_ops), 114963a4681fSDavid Howells __entry->block, __entry->slot, 115063a4681fSDavid Howells __entry->f_vnode, __entry->f_unique, 115163a4681fSDavid Howells __entry->name) 115263a4681fSDavid Howells ); 115363a4681fSDavid Howells 11545f702c8eSDavid Howells TRACE_EVENT(afs_protocol_error, 11557126ead9SDavid Howells TP_PROTO(struct afs_call *call, enum afs_eproto_cause cause), 11565f702c8eSDavid Howells 11577126ead9SDavid Howells TP_ARGS(call, cause), 11585f702c8eSDavid Howells 11595f702c8eSDavid Howells TP_STRUCT__entry( 11605f702c8eSDavid Howells __field(unsigned int, call ) 1161160cb957SDavid Howells __field(enum afs_eproto_cause, cause ) 11625f702c8eSDavid Howells ), 11635f702c8eSDavid Howells 11645f702c8eSDavid Howells TP_fast_assign( 11655f702c8eSDavid Howells __entry->call = call ? call->debug_id : 0; 1166160cb957SDavid Howells __entry->cause = cause; 11675f702c8eSDavid Howells ), 11685f702c8eSDavid Howells 11697126ead9SDavid Howells TP_printk("c=%08x %s", 11707126ead9SDavid Howells __entry->call, 1171160cb957SDavid Howells __print_symbolic(__entry->cause, afs_eproto_causes)) 11725f702c8eSDavid Howells ); 11735f702c8eSDavid Howells 1174f51375cdSDavid Howells TRACE_EVENT(afs_io_error, 1175f51375cdSDavid Howells TP_PROTO(unsigned int call, int error, enum afs_io_error where), 1176f51375cdSDavid Howells 1177f51375cdSDavid Howells TP_ARGS(call, error, where), 1178f51375cdSDavid Howells 1179f51375cdSDavid Howells TP_STRUCT__entry( 1180f51375cdSDavid Howells __field(unsigned int, call ) 1181f51375cdSDavid Howells __field(int, error ) 1182f51375cdSDavid Howells __field(enum afs_io_error, where ) 1183f51375cdSDavid Howells ), 1184f51375cdSDavid Howells 1185f51375cdSDavid Howells TP_fast_assign( 1186f51375cdSDavid Howells __entry->call = call; 1187f51375cdSDavid Howells __entry->error = error; 1188f51375cdSDavid Howells __entry->where = where; 1189f51375cdSDavid Howells ), 1190f51375cdSDavid Howells 1191f51375cdSDavid Howells TP_printk("c=%08x r=%d %s", 1192f51375cdSDavid Howells __entry->call, __entry->error, 1193f51375cdSDavid Howells __print_symbolic(__entry->where, afs_io_errors)) 1194f51375cdSDavid Howells ); 1195f51375cdSDavid Howells 1196f51375cdSDavid Howells TRACE_EVENT(afs_file_error, 1197f51375cdSDavid Howells TP_PROTO(struct afs_vnode *vnode, int error, enum afs_file_error where), 1198f51375cdSDavid Howells 1199f51375cdSDavid Howells TP_ARGS(vnode, error, where), 1200f51375cdSDavid Howells 1201f51375cdSDavid Howells TP_STRUCT__entry( 1202f51375cdSDavid Howells __field_struct(struct afs_fid, fid ) 1203f51375cdSDavid Howells __field(int, error ) 1204f51375cdSDavid Howells __field(enum afs_file_error, where ) 1205f51375cdSDavid Howells ), 1206f51375cdSDavid Howells 1207f51375cdSDavid Howells TP_fast_assign( 1208f51375cdSDavid Howells __entry->fid = vnode->fid; 1209f51375cdSDavid Howells __entry->error = error; 1210f51375cdSDavid Howells __entry->where = where; 1211f51375cdSDavid Howells ), 1212f51375cdSDavid Howells 12133b6492dfSDavid Howells TP_printk("%llx:%llx:%x r=%d %s", 1214f51375cdSDavid Howells __entry->fid.vid, __entry->fid.vnode, __entry->fid.unique, 1215f51375cdSDavid Howells __entry->error, 1216f51375cdSDavid Howells __print_symbolic(__entry->where, afs_file_errors)) 1217f51375cdSDavid Howells ); 1218f51375cdSDavid Howells 12193709a399SDavid Howells TRACE_EVENT(afs_cm_no_server, 12203709a399SDavid Howells TP_PROTO(struct afs_call *call, struct sockaddr_rxrpc *srx), 12213709a399SDavid Howells 12223709a399SDavid Howells TP_ARGS(call, srx), 12233709a399SDavid Howells 12243709a399SDavid Howells TP_STRUCT__entry( 12253709a399SDavid Howells __field(unsigned int, call ) 12263709a399SDavid Howells __field(unsigned int, op_id ) 12273709a399SDavid Howells __field_struct(struct sockaddr_rxrpc, srx ) 12283709a399SDavid Howells ), 12293709a399SDavid Howells 12303709a399SDavid Howells TP_fast_assign( 12313709a399SDavid Howells __entry->call = call->debug_id; 12323709a399SDavid Howells __entry->op_id = call->operation_ID; 12333709a399SDavid Howells memcpy(&__entry->srx, srx, sizeof(__entry->srx)); 12343709a399SDavid Howells ), 12353709a399SDavid Howells 12363709a399SDavid Howells TP_printk("c=%08x op=%u %pISpc", 12373709a399SDavid Howells __entry->call, __entry->op_id, &__entry->srx.transport) 12383709a399SDavid Howells ); 12393709a399SDavid Howells 12403709a399SDavid Howells TRACE_EVENT(afs_cm_no_server_u, 12413709a399SDavid Howells TP_PROTO(struct afs_call *call, const uuid_t *uuid), 12423709a399SDavid Howells 12433709a399SDavid Howells TP_ARGS(call, uuid), 12443709a399SDavid Howells 12453709a399SDavid Howells TP_STRUCT__entry( 12463709a399SDavid Howells __field(unsigned int, call ) 12473709a399SDavid Howells __field(unsigned int, op_id ) 12483709a399SDavid Howells __field_struct(uuid_t, uuid ) 12493709a399SDavid Howells ), 12503709a399SDavid Howells 12513709a399SDavid Howells TP_fast_assign( 12523709a399SDavid Howells __entry->call = call->debug_id; 12533709a399SDavid Howells __entry->op_id = call->operation_ID; 12543709a399SDavid Howells memcpy(&__entry->uuid, uuid, sizeof(__entry->uuid)); 12553709a399SDavid Howells ), 12563709a399SDavid Howells 12573709a399SDavid Howells TP_printk("c=%08x op=%u %pU", 12583709a399SDavid Howells __entry->call, __entry->op_id, &__entry->uuid) 12593709a399SDavid Howells ); 12603709a399SDavid Howells 1261d4696601SDavid Howells TRACE_EVENT(afs_flock_ev, 1262d4696601SDavid Howells TP_PROTO(struct afs_vnode *vnode, struct file_lock *fl, 1263d4696601SDavid Howells enum afs_flock_event event, int error), 1264d4696601SDavid Howells 1265d4696601SDavid Howells TP_ARGS(vnode, fl, event, error), 1266d4696601SDavid Howells 1267d4696601SDavid Howells TP_STRUCT__entry( 1268d4696601SDavid Howells __field_struct(struct afs_fid, fid ) 1269d4696601SDavid Howells __field(enum afs_flock_event, event ) 1270d4696601SDavid Howells __field(enum afs_lock_state, state ) 1271d4696601SDavid Howells __field(int, error ) 1272d4696601SDavid Howells __field(unsigned int, debug_id ) 1273d4696601SDavid Howells ), 1274d4696601SDavid Howells 1275d4696601SDavid Howells TP_fast_assign( 1276d4696601SDavid Howells __entry->fid = vnode->fid; 1277d4696601SDavid Howells __entry->event = event; 1278d4696601SDavid Howells __entry->state = vnode->lock_state; 1279d4696601SDavid Howells __entry->error = error; 1280d4696601SDavid Howells __entry->debug_id = fl ? fl->fl_u.afs.debug_id : 0; 1281d4696601SDavid Howells ), 1282d4696601SDavid Howells 1283d4696601SDavid Howells TP_printk("%llx:%llx:%x %04x %s s=%s e=%d", 1284d4696601SDavid Howells __entry->fid.vid, __entry->fid.vnode, __entry->fid.unique, 1285d4696601SDavid Howells __entry->debug_id, 1286d4696601SDavid Howells __print_symbolic(__entry->event, afs_flock_events), 1287d4696601SDavid Howells __print_symbolic(__entry->state, afs_flock_states), 1288d4696601SDavid Howells __entry->error) 1289d4696601SDavid Howells ); 1290d4696601SDavid Howells 1291d4696601SDavid Howells TRACE_EVENT(afs_flock_op, 1292d4696601SDavid Howells TP_PROTO(struct afs_vnode *vnode, struct file_lock *fl, 1293d4696601SDavid Howells enum afs_flock_operation op), 1294d4696601SDavid Howells 1295d4696601SDavid Howells TP_ARGS(vnode, fl, op), 1296d4696601SDavid Howells 1297d4696601SDavid Howells TP_STRUCT__entry( 1298d4696601SDavid Howells __field_struct(struct afs_fid, fid ) 1299d4696601SDavid Howells __field(loff_t, from ) 1300d4696601SDavid Howells __field(loff_t, len ) 1301d4696601SDavid Howells __field(enum afs_flock_operation, op ) 1302d4696601SDavid Howells __field(unsigned char, type ) 1303d4696601SDavid Howells __field(unsigned int, flags ) 1304d4696601SDavid Howells __field(unsigned int, debug_id ) 1305d4696601SDavid Howells ), 1306d4696601SDavid Howells 1307d4696601SDavid Howells TP_fast_assign( 1308d4696601SDavid Howells __entry->fid = vnode->fid; 1309d4696601SDavid Howells __entry->from = fl->fl_start; 1310d4696601SDavid Howells __entry->len = fl->fl_end - fl->fl_start + 1; 1311d4696601SDavid Howells __entry->op = op; 1312d4696601SDavid Howells __entry->type = fl->fl_type; 1313d4696601SDavid Howells __entry->flags = fl->fl_flags; 1314d4696601SDavid Howells __entry->debug_id = fl->fl_u.afs.debug_id; 1315d4696601SDavid Howells ), 1316d4696601SDavid Howells 1317d4696601SDavid Howells TP_printk("%llx:%llx:%x %04x %s t=%s R=%llx/%llx f=%x", 1318d4696601SDavid Howells __entry->fid.vid, __entry->fid.vnode, __entry->fid.unique, 1319d4696601SDavid Howells __entry->debug_id, 1320d4696601SDavid Howells __print_symbolic(__entry->op, afs_flock_operations), 1321d4696601SDavid Howells __print_symbolic(__entry->type, afs_flock_types), 1322d4696601SDavid Howells __entry->from, __entry->len, __entry->flags) 1323d4696601SDavid Howells ); 1324d4696601SDavid Howells 132599987c56SDavid Howells TRACE_EVENT(afs_reload_dir, 132699987c56SDavid Howells TP_PROTO(struct afs_vnode *vnode), 132799987c56SDavid Howells 132899987c56SDavid Howells TP_ARGS(vnode), 132999987c56SDavid Howells 133099987c56SDavid Howells TP_STRUCT__entry( 133199987c56SDavid Howells __field_struct(struct afs_fid, fid ) 133299987c56SDavid Howells ), 133399987c56SDavid Howells 133499987c56SDavid Howells TP_fast_assign( 133599987c56SDavid Howells __entry->fid = vnode->fid; 133699987c56SDavid Howells ), 133799987c56SDavid Howells 133899987c56SDavid Howells TP_printk("%llx:%llx:%x", 133999987c56SDavid Howells __entry->fid.vid, __entry->fid.vnode, __entry->fid.unique) 134099987c56SDavid Howells ); 134199987c56SDavid Howells 134279ddbfa5SDavid Howells TRACE_EVENT(afs_silly_rename, 134379ddbfa5SDavid Howells TP_PROTO(struct afs_vnode *vnode, bool done), 134479ddbfa5SDavid Howells 134579ddbfa5SDavid Howells TP_ARGS(vnode, done), 134679ddbfa5SDavid Howells 134779ddbfa5SDavid Howells TP_STRUCT__entry( 134879ddbfa5SDavid Howells __field_struct(struct afs_fid, fid ) 134979ddbfa5SDavid Howells __field(bool, done ) 135079ddbfa5SDavid Howells ), 135179ddbfa5SDavid Howells 135279ddbfa5SDavid Howells TP_fast_assign( 135379ddbfa5SDavid Howells __entry->fid = vnode->fid; 135479ddbfa5SDavid Howells __entry->done = done; 135579ddbfa5SDavid Howells ), 135679ddbfa5SDavid Howells 135779ddbfa5SDavid Howells TP_printk("%llx:%llx:%x done=%u", 135879ddbfa5SDavid Howells __entry->fid.vid, __entry->fid.vnode, __entry->fid.unique, 135979ddbfa5SDavid Howells __entry->done) 136079ddbfa5SDavid Howells ); 136179ddbfa5SDavid Howells 136280548b03SDavid Howells TRACE_EVENT(afs_get_tree, 136380548b03SDavid Howells TP_PROTO(struct afs_cell *cell, struct afs_volume *volume), 136480548b03SDavid Howells 136580548b03SDavid Howells TP_ARGS(cell, volume), 136680548b03SDavid Howells 136780548b03SDavid Howells TP_STRUCT__entry( 136880548b03SDavid Howells __field(u64, vid ) 136980548b03SDavid Howells __array(char, cell, 24 ) 137080548b03SDavid Howells __array(char, volume, 24 ) 137180548b03SDavid Howells ), 137280548b03SDavid Howells 137380548b03SDavid Howells TP_fast_assign( 137480548b03SDavid Howells int __len; 137580548b03SDavid Howells __entry->vid = volume->vid; 137680548b03SDavid Howells __len = min_t(int, cell->name_len, 23); 137780548b03SDavid Howells memcpy(__entry->cell, cell->name, __len); 137880548b03SDavid Howells __entry->cell[__len] = 0; 137980548b03SDavid Howells __len = min_t(int, volume->name_len, 23); 138080548b03SDavid Howells memcpy(__entry->volume, volume->name, __len); 138180548b03SDavid Howells __entry->volume[__len] = 0; 138280548b03SDavid Howells ), 138380548b03SDavid Howells 138480548b03SDavid Howells TP_printk("--- MOUNT %s:%s %llx", 138580548b03SDavid Howells __entry->cell, __entry->volume, __entry->vid) 138680548b03SDavid Howells ); 138780548b03SDavid Howells 1388051d2525SDavid Howells TRACE_EVENT(afs_cb_break, 1389051d2525SDavid Howells TP_PROTO(struct afs_fid *fid, unsigned int cb_break, 1390051d2525SDavid Howells enum afs_cb_break_reason reason, bool skipped), 1391051d2525SDavid Howells 1392051d2525SDavid Howells TP_ARGS(fid, cb_break, reason, skipped), 1393051d2525SDavid Howells 1394051d2525SDavid Howells TP_STRUCT__entry( 1395051d2525SDavid Howells __field_struct(struct afs_fid, fid ) 1396051d2525SDavid Howells __field(unsigned int, cb_break ) 1397051d2525SDavid Howells __field(enum afs_cb_break_reason, reason ) 1398051d2525SDavid Howells __field(bool, skipped ) 1399051d2525SDavid Howells ), 1400051d2525SDavid Howells 1401051d2525SDavid Howells TP_fast_assign( 1402051d2525SDavid Howells __entry->fid = *fid; 1403051d2525SDavid Howells __entry->cb_break = cb_break; 1404051d2525SDavid Howells __entry->reason = reason; 1405051d2525SDavid Howells __entry->skipped = skipped; 1406051d2525SDavid Howells ), 1407051d2525SDavid Howells 1408051d2525SDavid Howells TP_printk("%llx:%llx:%x b=%x s=%u %s", 1409051d2525SDavid Howells __entry->fid.vid, __entry->fid.vnode, __entry->fid.unique, 1410051d2525SDavid Howells __entry->cb_break, 1411051d2525SDavid Howells __entry->skipped, 1412051d2525SDavid Howells __print_symbolic(__entry->reason, afs_cb_break_reasons)) 1413051d2525SDavid Howells ); 1414051d2525SDavid Howells 1415051d2525SDavid Howells TRACE_EVENT(afs_cb_miss, 1416051d2525SDavid Howells TP_PROTO(struct afs_fid *fid, enum afs_cb_break_reason reason), 1417051d2525SDavid Howells 1418051d2525SDavid Howells TP_ARGS(fid, reason), 1419051d2525SDavid Howells 1420051d2525SDavid Howells TP_STRUCT__entry( 1421051d2525SDavid Howells __field_struct(struct afs_fid, fid ) 1422051d2525SDavid Howells __field(enum afs_cb_break_reason, reason ) 1423051d2525SDavid Howells ), 1424051d2525SDavid Howells 1425051d2525SDavid Howells TP_fast_assign( 1426051d2525SDavid Howells __entry->fid = *fid; 1427051d2525SDavid Howells __entry->reason = reason; 1428051d2525SDavid Howells ), 1429051d2525SDavid Howells 1430051d2525SDavid Howells TP_printk(" %llx:%llx:%x %s", 1431051d2525SDavid Howells __entry->fid.vid, __entry->fid.vnode, __entry->fid.unique, 1432051d2525SDavid Howells __print_symbolic(__entry->reason, afs_cb_break_reasons)) 1433051d2525SDavid Howells ); 1434051d2525SDavid Howells 143545218193SDavid Howells TRACE_EVENT(afs_server, 1436977e5f8eSDavid Howells TP_PROTO(struct afs_server *server, int ref, int active, 1437977e5f8eSDavid Howells enum afs_server_trace reason), 143845218193SDavid Howells 1439977e5f8eSDavid Howells TP_ARGS(server, ref, active, reason), 144045218193SDavid Howells 144145218193SDavid Howells TP_STRUCT__entry( 144245218193SDavid Howells __field(unsigned int, server ) 1443977e5f8eSDavid Howells __field(int, ref ) 1444977e5f8eSDavid Howells __field(int, active ) 144545218193SDavid Howells __field(int, reason ) 144645218193SDavid Howells ), 144745218193SDavid Howells 144845218193SDavid Howells TP_fast_assign( 144945218193SDavid Howells __entry->server = server->debug_id; 1450977e5f8eSDavid Howells __entry->ref = ref; 1451977e5f8eSDavid Howells __entry->active = active; 145245218193SDavid Howells __entry->reason = reason; 145345218193SDavid Howells ), 145445218193SDavid Howells 1455977e5f8eSDavid Howells TP_printk("s=%08x %s u=%d a=%d", 145645218193SDavid Howells __entry->server, 145745218193SDavid Howells __print_symbolic(__entry->reason, afs_server_traces), 1458977e5f8eSDavid Howells __entry->ref, 1459977e5f8eSDavid Howells __entry->active) 146045218193SDavid Howells ); 146145218193SDavid Howells 1462cca37d45SDavid Howells TRACE_EVENT(afs_volume, 1463cca37d45SDavid Howells TP_PROTO(afs_volid_t vid, int ref, enum afs_volume_trace reason), 1464cca37d45SDavid Howells 1465cca37d45SDavid Howells TP_ARGS(vid, ref, reason), 1466cca37d45SDavid Howells 1467cca37d45SDavid Howells TP_STRUCT__entry( 1468cca37d45SDavid Howells __field(afs_volid_t, vid ) 1469cca37d45SDavid Howells __field(int, ref ) 1470cca37d45SDavid Howells __field(enum afs_volume_trace, reason ) 1471cca37d45SDavid Howells ), 1472cca37d45SDavid Howells 1473cca37d45SDavid Howells TP_fast_assign( 1474cca37d45SDavid Howells __entry->vid = vid; 1475cca37d45SDavid Howells __entry->ref = ref; 1476cca37d45SDavid Howells __entry->reason = reason; 1477cca37d45SDavid Howells ), 1478cca37d45SDavid Howells 1479*c56f9ec8SDavid Howells TP_printk("V=%llx %s ur=%d", 1480cca37d45SDavid Howells __entry->vid, 1481cca37d45SDavid Howells __print_symbolic(__entry->reason, afs_volume_traces), 1482cca37d45SDavid Howells __entry->ref) 1483cca37d45SDavid Howells ); 1484cca37d45SDavid Howells 1485dca54a7bSDavid Howells TRACE_EVENT(afs_cell, 1486*c56f9ec8SDavid Howells TP_PROTO(unsigned int cell_debug_id, int ref, int active, 1487dca54a7bSDavid Howells enum afs_cell_trace reason), 1488dca54a7bSDavid Howells 1489*c56f9ec8SDavid Howells TP_ARGS(cell_debug_id, ref, active, reason), 1490dca54a7bSDavid Howells 1491dca54a7bSDavid Howells TP_STRUCT__entry( 1492dca54a7bSDavid Howells __field(unsigned int, cell ) 1493*c56f9ec8SDavid Howells __field(int, ref ) 1494dca54a7bSDavid Howells __field(int, active ) 1495dca54a7bSDavid Howells __field(int, reason ) 1496dca54a7bSDavid Howells ), 1497dca54a7bSDavid Howells 1498dca54a7bSDavid Howells TP_fast_assign( 1499dca54a7bSDavid Howells __entry->cell = cell_debug_id; 1500*c56f9ec8SDavid Howells __entry->ref = ref; 1501dca54a7bSDavid Howells __entry->active = active; 1502dca54a7bSDavid Howells __entry->reason = reason; 1503dca54a7bSDavid Howells ), 1504dca54a7bSDavid Howells 1505*c56f9ec8SDavid Howells TP_printk("L=%08x %s r=%d a=%d", 1506dca54a7bSDavid Howells __entry->cell, 1507dca54a7bSDavid Howells __print_symbolic(__entry->reason, afs_cell_traces), 1508*c56f9ec8SDavid Howells __entry->ref, 1509dca54a7bSDavid Howells __entry->active) 1510dca54a7bSDavid Howells ); 1511dca54a7bSDavid Howells 15128e8d7f13SDavid Howells #endif /* _TRACE_AFS_H */ 15138e8d7f13SDavid Howells 15148e8d7f13SDavid Howells /* This part must be outside protection */ 15158e8d7f13SDavid Howells #include <trace/define_trace.h> 1516