Lines Matching +full:s +full:- +full:mode

1 /* SPDX-License-Identifier: GPL-2.0 */
35 #define show_lock_mode(mode) __print_symbolic(mode, \ argument
53 unsigned int namelen, int mode, __u32 flags),
55 TP_ARGS(ls, lkb, name, namelen, mode, flags),
60 __field(int, mode)
63 lkb->lkb_resource ? lkb->lkb_resource->res_length : namelen)
69 __entry->ls_id = ls->ls_global_id;
70 __entry->lkb_id = lkb->lkb_id;
71 __entry->mode = mode;
72 __entry->flags = flags;
74 r = lkb->lkb_resource;
76 memcpy(__get_dynamic_array(res_name), r->res_name,
83 TP_printk("ls_id=%u lkb_id=%x mode=%s flags=%s res_name=%s",
84 __entry->ls_id, __entry->lkb_id,
85 show_lock_mode(__entry->mode),
86 show_lock_flags(__entry->flags),
95 unsigned int namelen, int mode, __u32 flags, int error,
98 TP_ARGS(ls, lkb, name, namelen, mode, flags, error, kernel_lock),
103 __field(int, mode)
107 lkb->lkb_resource ? lkb->lkb_resource->res_length : namelen)
113 __entry->ls_id = ls->ls_global_id;
114 __entry->lkb_id = lkb->lkb_id;
115 __entry->mode = mode;
116 __entry->flags = flags;
117 __entry->error = error;
119 r = lkb->lkb_resource;
121 memcpy(__get_dynamic_array(res_name), r->res_name,
132 if (error == -EAGAIN || error == -EDEADLK)
133 __entry->error = 0;
138 TP_printk("ls_id=%u lkb_id=%x mode=%s flags=%s error=%d res_name=%s",
139 __entry->ls_id, __entry->lkb_id,
140 show_lock_mode(__entry->mode),
141 show_lock_flags(__entry->flags), __entry->error,
149 TP_PROTO(struct dlm_ls *ls, struct dlm_lkb *lkb, int mode),
151 TP_ARGS(ls, lkb, mode),
156 __field(int, mode)
158 lkb->lkb_resource ? lkb->lkb_resource->res_length : 0)
164 __entry->ls_id = ls->ls_global_id;
165 __entry->lkb_id = lkb->lkb_id;
166 __entry->mode = mode;
168 r = lkb->lkb_resource;
170 memcpy(__get_dynamic_array(res_name), r->res_name,
174 TP_printk("ls_id=%u lkb_id=%x mode=%s res_name=%s",
175 __entry->ls_id, __entry->lkb_id,
176 show_lock_mode(__entry->mode),
194 lkb->lkb_resource ? lkb->lkb_resource->res_length : 0)
200 __entry->ls_id = ls->ls_global_id;
201 __entry->lkb_id = lkb->lkb_id;
202 __entry->sb_flags = lkb->lkb_lksb->sb_flags;
203 __entry->sb_status = lkb->lkb_lksb->sb_status;
205 r = lkb->lkb_resource;
207 memcpy(__get_dynamic_array(res_name), r->res_name,
211 TP_printk("ls_id=%u lkb_id=%x sb_flags=%s sb_status=%d res_name=%s",
212 __entry->ls_id, __entry->lkb_id,
213 show_dlm_sb_flags(__entry->sb_flags), __entry->sb_status,
231 lkb->lkb_resource ? lkb->lkb_resource->res_length : 0)
237 __entry->ls_id = ls->ls_global_id;
238 __entry->lkb_id = lkb->lkb_id;
239 __entry->flags = flags;
241 r = lkb->lkb_resource;
243 memcpy(__get_dynamic_array(res_name), r->res_name,
247 TP_printk("ls_id=%u lkb_id=%x flags=%s res_name=%s",
248 __entry->ls_id, __entry->lkb_id,
249 show_lock_flags(__entry->flags),
268 lkb->lkb_resource ? lkb->lkb_resource->res_length : 0)
274 __entry->ls_id = ls->ls_global_id;
275 __entry->lkb_id = lkb->lkb_id;
276 __entry->flags = flags;
277 __entry->error = error;
279 r = lkb->lkb_resource;
281 memcpy(__get_dynamic_array(res_name), r->res_name,
285 TP_printk("ls_id=%u lkb_id=%x flags=%s error=%d res_name=%s",
286 __entry->ls_id, __entry->lkb_id,
287 show_lock_flags(__entry->flags), __entry->error,
305 __entry->nodeid = nodeid;
306 __entry->ret = ret;
309 TP_printk("nodeid=%d ret=%d", __entry->nodeid, __entry->ret)
325 __entry->nodeid = nodeid;
326 __entry->ret = ret;
329 TP_printk("nodeid=%d ret=%d", __entry->nodeid, __entry->ret)