xfs_trace.h (9b2e5a234c89f097ec36f922763dfa1465dc06f8) xfs_trace.h (d5c88131dbf01a30a222ad82d58e0c21a15f0d8e)
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * Copyright (c) 2009, Christoph Hellwig
4 * All Rights Reserved.
5 *
6 * NOTE: none of these tracepoints shall be considered a stable kernel ABI
7 * as they can change at any time.
8 *

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

2682DEFINE_DEFER_PENDING_EVENT(xfs_defer_relog_intent);
2683
2684#define DEFINE_BMAP_FREE_DEFERRED_EVENT DEFINE_PHYS_EXTENT_DEFERRED_EVENT
2685DEFINE_BMAP_FREE_DEFERRED_EVENT(xfs_bmap_free_defer);
2686DEFINE_BMAP_FREE_DEFERRED_EVENT(xfs_bmap_free_deferred);
2687DEFINE_BMAP_FREE_DEFERRED_EVENT(xfs_agfl_free_defer);
2688DEFINE_BMAP_FREE_DEFERRED_EVENT(xfs_agfl_free_deferred);
2689
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * Copyright (c) 2009, Christoph Hellwig
4 * All Rights Reserved.
5 *
6 * NOTE: none of these tracepoints shall be considered a stable kernel ABI
7 * as they can change at any time.
8 *

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

2682DEFINE_DEFER_PENDING_EVENT(xfs_defer_relog_intent);
2683
2684#define DEFINE_BMAP_FREE_DEFERRED_EVENT DEFINE_PHYS_EXTENT_DEFERRED_EVENT
2685DEFINE_BMAP_FREE_DEFERRED_EVENT(xfs_bmap_free_defer);
2686DEFINE_BMAP_FREE_DEFERRED_EVENT(xfs_bmap_free_deferred);
2687DEFINE_BMAP_FREE_DEFERRED_EVENT(xfs_agfl_free_defer);
2688DEFINE_BMAP_FREE_DEFERRED_EVENT(xfs_agfl_free_deferred);
2689
2690DECLARE_EVENT_CLASS(xfs_defer_pending_item_class,
2691 TP_PROTO(struct xfs_mount *mp, struct xfs_defer_pending *dfp,
2692 void *item),
2693 TP_ARGS(mp, dfp, item),
2694 TP_STRUCT__entry(
2695 __field(dev_t, dev)
2696 __field(int, type)
2697 __field(void *, intent)
2698 __field(void *, item)
2699 __field(char, committed)
2700 __field(int, nr)
2701 ),
2702 TP_fast_assign(
2703 __entry->dev = mp ? mp->m_super->s_dev : 0;
2704 __entry->type = dfp->dfp_type;
2705 __entry->intent = dfp->dfp_intent;
2706 __entry->item = item;
2707 __entry->committed = dfp->dfp_done != NULL;
2708 __entry->nr = dfp->dfp_count;
2709 ),
2710 TP_printk("dev %d:%d optype %d intent %p item %p committed %d nr %d",
2711 MAJOR(__entry->dev), MINOR(__entry->dev),
2712 __entry->type,
2713 __entry->intent,
2714 __entry->item,
2715 __entry->committed,
2716 __entry->nr)
2717)
2718#define DEFINE_DEFER_PENDING_ITEM_EVENT(name) \
2719DEFINE_EVENT(xfs_defer_pending_item_class, name, \
2720 TP_PROTO(struct xfs_mount *mp, struct xfs_defer_pending *dfp, \
2721 void *item), \
2722 TP_ARGS(mp, dfp, item))
2723
2724DEFINE_DEFER_PENDING_ITEM_EVENT(xfs_defer_add_item);
2725DEFINE_DEFER_PENDING_ITEM_EVENT(xfs_defer_cancel_item);
2726DEFINE_DEFER_PENDING_ITEM_EVENT(xfs_defer_finish_item);
2727
2690/* rmap tracepoints */
2691DECLARE_EVENT_CLASS(xfs_rmap_class,
2692 TP_PROTO(struct xfs_mount *mp, xfs_agnumber_t agno,
2693 xfs_agblock_t agbno, xfs_extlen_t len, bool unwritten,
2694 const struct xfs_owner_info *oinfo),
2695 TP_ARGS(mp, agno, agbno, len, unwritten, oinfo),
2696 TP_STRUCT__entry(
2697 __field(dev_t, dev)

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

4321 TP_printk("dev %d:%d tag %s flags %s file %s line_num %d",
4322 MAJOR(__entry->dev), MINOR(__entry->dev),
4323 __print_flags(__entry->ptag, "|", XFS_PTAG_STRINGS),
4324 __print_flags(__entry->flags, "|", XFS_SHUTDOWN_STRINGS),
4325 __get_str(fname),
4326 __entry->line_num)
4327);
4328
2728/* rmap tracepoints */
2729DECLARE_EVENT_CLASS(xfs_rmap_class,
2730 TP_PROTO(struct xfs_mount *mp, xfs_agnumber_t agno,
2731 xfs_agblock_t agbno, xfs_extlen_t len, bool unwritten,
2732 const struct xfs_owner_info *oinfo),
2733 TP_ARGS(mp, agno, agbno, len, unwritten, oinfo),
2734 TP_STRUCT__entry(
2735 __field(dev_t, dev)

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

4359 TP_printk("dev %d:%d tag %s flags %s file %s line_num %d",
4360 MAJOR(__entry->dev), MINOR(__entry->dev),
4361 __print_flags(__entry->ptag, "|", XFS_PTAG_STRINGS),
4362 __print_flags(__entry->flags, "|", XFS_SHUTDOWN_STRINGS),
4363 __get_str(fname),
4364 __entry->line_num)
4365);
4366
4367#ifdef CONFIG_XFS_DRAIN_INTENTS
4368DECLARE_EVENT_CLASS(xfs_perag_intents_class,
4369 TP_PROTO(struct xfs_perag *pag, void *caller_ip),
4370 TP_ARGS(pag, caller_ip),
4371 TP_STRUCT__entry(
4372 __field(dev_t, dev)
4373 __field(xfs_agnumber_t, agno)
4374 __field(long, nr_intents)
4375 __field(void *, caller_ip)
4376 ),
4377 TP_fast_assign(
4378 __entry->dev = pag->pag_mount->m_super->s_dev;
4379 __entry->agno = pag->pag_agno;
4380 __entry->nr_intents = atomic_read(&pag->pag_intents_drain.dr_count);
4381 __entry->caller_ip = caller_ip;
4382 ),
4383 TP_printk("dev %d:%d agno 0x%x intents %ld caller %pS",
4384 MAJOR(__entry->dev), MINOR(__entry->dev),
4385 __entry->agno,
4386 __entry->nr_intents,
4387 __entry->caller_ip)
4388);
4389
4390#define DEFINE_PERAG_INTENTS_EVENT(name) \
4391DEFINE_EVENT(xfs_perag_intents_class, name, \
4392 TP_PROTO(struct xfs_perag *pag, void *caller_ip), \
4393 TP_ARGS(pag, caller_ip))
4394DEFINE_PERAG_INTENTS_EVENT(xfs_perag_intent_hold);
4395DEFINE_PERAG_INTENTS_EVENT(xfs_perag_intent_rele);
4396DEFINE_PERAG_INTENTS_EVENT(xfs_perag_wait_intents);
4397
4398#endif /* CONFIG_XFS_DRAIN_INTENTS */
4399
4329#endif /* _TRACE_XFS_H */
4330
4331#undef TRACE_INCLUDE_PATH
4332#define TRACE_INCLUDE_PATH .
4333#define TRACE_INCLUDE_FILE xfs_trace
4334#include <trace/define_trace.h>
4400#endif /* _TRACE_XFS_H */
4401
4402#undef TRACE_INCLUDE_PATH
4403#define TRACE_INCLUDE_PATH .
4404#define TRACE_INCLUDE_FILE xfs_trace
4405#include <trace/define_trace.h>