summaryrefslogtreecommitdiff
path: root/include/trace/events/dlm.h
diff options
context:
space:
mode:
authorAlexander Aring <aahringo@redhat.com>2022-06-22 14:45:11 -0400
committerDavid Teigland <teigland@redhat.com>2022-06-24 11:53:08 -0500
commit0c4c516fa206d6e8a3986eebd3016a96022792c6 (patch)
treeacdc8ec0e0d1ffd89026476f60d19dd52c1d176e /include/trace/events/dlm.h
parentcd1e8ca9f3a4c7e3e1f22341a71e013797b3a0f0 (diff)
downloadlinux-0c4c516fa206d6e8a3986eebd3016a96022792c6.tar.gz
fs: dlm: remove additional dereference of lksb
This patch removes a dereference of lksb of lkb when calling ast tracepoint. First it reduces additional overhead, even if traces are not active. Second we can deference it in TP_fast_assign from the existing lkb parameter. Signed-off-by: Alexander Aring <aahringo@redhat.com> Signed-off-by: David Teigland <teigland@redhat.com>
Diffstat (limited to 'include/trace/events/dlm.h')
-rw-r--r--include/trace/events/dlm.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/trace/events/dlm.h b/include/trace/events/dlm.h
index 32088c603244..e333176ecfaf 100644
--- a/include/trace/events/dlm.h
+++ b/include/trace/events/dlm.h
@@ -138,9 +138,9 @@ TRACE_EVENT(dlm_bast,
TRACE_EVENT(dlm_ast,
- TP_PROTO(struct dlm_ls *ls, struct dlm_lkb *lkb, struct dlm_lksb *lksb),
+ TP_PROTO(struct dlm_ls *ls, struct dlm_lkb *lkb),
- TP_ARGS(ls, lkb, lksb),
+ TP_ARGS(ls, lkb),
TP_STRUCT__entry(
__field(__u32, ls_id)
@@ -152,8 +152,8 @@ TRACE_EVENT(dlm_ast,
TP_fast_assign(
__entry->ls_id = ls->ls_global_id;
__entry->lkb_id = lkb->lkb_id;
- __entry->sb_flags = lksb->sb_flags;
- __entry->sb_status = lksb->sb_status;
+ __entry->sb_flags = lkb->lkb_lksb->sb_flags;
+ __entry->sb_status = lkb->lkb_lksb->sb_status;
),
TP_printk("ls_id=%u lkb_id=%x sb_flags=%s sb_status=%d",