2018-06-06 10:42:14 +08:00
|
|
|
// SPDX-License-Identifier: GPL-2.0+
|
2017-10-18 12:37:34 +08:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2017 Oracle. All Rights Reserved.
|
|
|
|
* Author: Darrick J. Wong <darrick.wong@oracle.com>
|
|
|
|
*/
|
|
|
|
#undef TRACE_SYSTEM
|
|
|
|
#define TRACE_SYSTEM xfs_scrub
|
|
|
|
|
|
|
|
#if !defined(_TRACE_XFS_SCRUB_TRACE_H) || defined(TRACE_HEADER_MULTI_READ)
|
|
|
|
#define _TRACE_XFS_SCRUB_TRACE_H
|
|
|
|
|
|
|
|
#include <linux/tracepoint.h>
|
2017-10-18 12:37:36 +08:00
|
|
|
#include "xfs_bit.h"
|
2017-10-18 12:37:34 +08:00
|
|
|
|
2018-12-19 06:32:31 +08:00
|
|
|
/*
|
|
|
|
* ftrace's __print_symbolic requires that all enum values be wrapped in the
|
|
|
|
* TRACE_DEFINE_ENUM macro so that the enum value can be encoded in the ftrace
|
|
|
|
* ring buffer. Somehow this was only worth mentioning in the ftrace sample
|
|
|
|
* code.
|
|
|
|
*/
|
|
|
|
TRACE_DEFINE_ENUM(XFS_BTNUM_BNOi);
|
|
|
|
TRACE_DEFINE_ENUM(XFS_BTNUM_CNTi);
|
|
|
|
TRACE_DEFINE_ENUM(XFS_BTNUM_BMAPi);
|
|
|
|
TRACE_DEFINE_ENUM(XFS_BTNUM_INOi);
|
|
|
|
TRACE_DEFINE_ENUM(XFS_BTNUM_FINOi);
|
|
|
|
TRACE_DEFINE_ENUM(XFS_BTNUM_RMAPi);
|
|
|
|
TRACE_DEFINE_ENUM(XFS_BTNUM_REFCi);
|
|
|
|
|
2018-07-20 03:29:11 +08:00
|
|
|
DECLARE_EVENT_CLASS(xchk_class,
|
2017-10-18 12:37:35 +08:00
|
|
|
TP_PROTO(struct xfs_inode *ip, struct xfs_scrub_metadata *sm,
|
|
|
|
int error),
|
|
|
|
TP_ARGS(ip, sm, error),
|
|
|
|
TP_STRUCT__entry(
|
|
|
|
__field(dev_t, dev)
|
|
|
|
__field(xfs_ino_t, ino)
|
|
|
|
__field(unsigned int, type)
|
|
|
|
__field(xfs_agnumber_t, agno)
|
|
|
|
__field(xfs_ino_t, inum)
|
|
|
|
__field(unsigned int, gen)
|
|
|
|
__field(unsigned int, flags)
|
|
|
|
__field(int, error)
|
|
|
|
),
|
|
|
|
TP_fast_assign(
|
|
|
|
__entry->dev = ip->i_mount->m_super->s_dev;
|
|
|
|
__entry->ino = ip->i_ino;
|
|
|
|
__entry->type = sm->sm_type;
|
|
|
|
__entry->agno = sm->sm_agno;
|
|
|
|
__entry->inum = sm->sm_ino;
|
|
|
|
__entry->gen = sm->sm_gen;
|
|
|
|
__entry->flags = sm->sm_flags;
|
|
|
|
__entry->error = error;
|
|
|
|
),
|
2018-01-23 08:46:42 +08:00
|
|
|
TP_printk("dev %d:%d ino 0x%llx type %u agno %u inum %llu gen %u flags 0x%x error %d",
|
2017-10-18 12:37:35 +08:00
|
|
|
MAJOR(__entry->dev), MINOR(__entry->dev),
|
|
|
|
__entry->ino,
|
|
|
|
__entry->type,
|
|
|
|
__entry->agno,
|
|
|
|
__entry->inum,
|
|
|
|
__entry->gen,
|
|
|
|
__entry->flags,
|
|
|
|
__entry->error)
|
|
|
|
)
|
|
|
|
#define DEFINE_SCRUB_EVENT(name) \
|
2018-07-20 03:29:11 +08:00
|
|
|
DEFINE_EVENT(xchk_class, name, \
|
2017-10-18 12:37:35 +08:00
|
|
|
TP_PROTO(struct xfs_inode *ip, struct xfs_scrub_metadata *sm, \
|
|
|
|
int error), \
|
|
|
|
TP_ARGS(ip, sm, error))
|
|
|
|
|
2018-07-20 03:29:11 +08:00
|
|
|
DEFINE_SCRUB_EVENT(xchk_start);
|
|
|
|
DEFINE_SCRUB_EVENT(xchk_done);
|
|
|
|
DEFINE_SCRUB_EVENT(xchk_deadlock_retry);
|
2018-07-20 03:29:11 +08:00
|
|
|
DEFINE_SCRUB_EVENT(xrep_attempt);
|
|
|
|
DEFINE_SCRUB_EVENT(xrep_done);
|
2017-10-18 12:37:36 +08:00
|
|
|
|
2018-07-20 03:29:11 +08:00
|
|
|
TRACE_EVENT(xchk_op_error,
|
2018-07-20 03:29:12 +08:00
|
|
|
TP_PROTO(struct xfs_scrub *sc, xfs_agnumber_t agno,
|
2017-10-18 12:37:36 +08:00
|
|
|
xfs_agblock_t bno, int error, void *ret_ip),
|
|
|
|
TP_ARGS(sc, agno, bno, error, ret_ip),
|
|
|
|
TP_STRUCT__entry(
|
|
|
|
__field(dev_t, dev)
|
|
|
|
__field(unsigned int, type)
|
|
|
|
__field(xfs_agnumber_t, agno)
|
|
|
|
__field(xfs_agblock_t, bno)
|
|
|
|
__field(int, error)
|
|
|
|
__field(void *, ret_ip)
|
|
|
|
),
|
|
|
|
TP_fast_assign(
|
|
|
|
__entry->dev = sc->mp->m_super->s_dev;
|
|
|
|
__entry->type = sc->sm->sm_type;
|
|
|
|
__entry->agno = agno;
|
|
|
|
__entry->bno = bno;
|
|
|
|
__entry->error = error;
|
|
|
|
__entry->ret_ip = ret_ip;
|
|
|
|
),
|
2018-01-10 03:46:05 +08:00
|
|
|
TP_printk("dev %d:%d type %u agno %u agbno %u error %d ret_ip %pS",
|
2017-10-18 12:37:36 +08:00
|
|
|
MAJOR(__entry->dev), MINOR(__entry->dev),
|
|
|
|
__entry->type,
|
|
|
|
__entry->agno,
|
|
|
|
__entry->bno,
|
|
|
|
__entry->error,
|
|
|
|
__entry->ret_ip)
|
|
|
|
);
|
|
|
|
|
2018-07-20 03:29:11 +08:00
|
|
|
TRACE_EVENT(xchk_file_op_error,
|
2018-07-20 03:29:12 +08:00
|
|
|
TP_PROTO(struct xfs_scrub *sc, int whichfork,
|
2017-10-18 12:37:36 +08:00
|
|
|
xfs_fileoff_t offset, int error, void *ret_ip),
|
|
|
|
TP_ARGS(sc, whichfork, offset, error, ret_ip),
|
|
|
|
TP_STRUCT__entry(
|
|
|
|
__field(dev_t, dev)
|
|
|
|
__field(xfs_ino_t, ino)
|
|
|
|
__field(int, whichfork)
|
|
|
|
__field(unsigned int, type)
|
|
|
|
__field(xfs_fileoff_t, offset)
|
|
|
|
__field(int, error)
|
|
|
|
__field(void *, ret_ip)
|
|
|
|
),
|
|
|
|
TP_fast_assign(
|
|
|
|
__entry->dev = sc->ip->i_mount->m_super->s_dev;
|
|
|
|
__entry->ino = sc->ip->i_ino;
|
|
|
|
__entry->whichfork = whichfork;
|
|
|
|
__entry->type = sc->sm->sm_type;
|
|
|
|
__entry->offset = offset;
|
|
|
|
__entry->error = error;
|
|
|
|
__entry->ret_ip = ret_ip;
|
|
|
|
),
|
2018-01-23 08:46:42 +08:00
|
|
|
TP_printk("dev %d:%d ino 0x%llx fork %d type %u offset %llu error %d ret_ip %pS",
|
2017-10-18 12:37:36 +08:00
|
|
|
MAJOR(__entry->dev), MINOR(__entry->dev),
|
|
|
|
__entry->ino,
|
|
|
|
__entry->whichfork,
|
|
|
|
__entry->type,
|
|
|
|
__entry->offset,
|
|
|
|
__entry->error,
|
|
|
|
__entry->ret_ip)
|
|
|
|
);
|
|
|
|
|
2018-07-20 03:29:11 +08:00
|
|
|
DECLARE_EVENT_CLASS(xchk_block_error_class,
|
2018-07-20 03:29:12 +08:00
|
|
|
TP_PROTO(struct xfs_scrub *sc, xfs_daddr_t daddr, void *ret_ip),
|
2017-10-18 12:37:36 +08:00
|
|
|
TP_ARGS(sc, daddr, ret_ip),
|
|
|
|
TP_STRUCT__entry(
|
|
|
|
__field(dev_t, dev)
|
|
|
|
__field(unsigned int, type)
|
|
|
|
__field(xfs_agnumber_t, agno)
|
|
|
|
__field(xfs_agblock_t, bno)
|
|
|
|
__field(void *, ret_ip)
|
|
|
|
),
|
|
|
|
TP_fast_assign(
|
|
|
|
xfs_fsblock_t fsbno;
|
|
|
|
xfs_agnumber_t agno;
|
|
|
|
xfs_agblock_t bno;
|
|
|
|
|
|
|
|
fsbno = XFS_DADDR_TO_FSB(sc->mp, daddr);
|
|
|
|
agno = XFS_FSB_TO_AGNO(sc->mp, fsbno);
|
|
|
|
bno = XFS_FSB_TO_AGBNO(sc->mp, fsbno);
|
|
|
|
|
|
|
|
__entry->dev = sc->mp->m_super->s_dev;
|
|
|
|
__entry->type = sc->sm->sm_type;
|
|
|
|
__entry->agno = agno;
|
|
|
|
__entry->bno = bno;
|
|
|
|
__entry->ret_ip = ret_ip;
|
|
|
|
),
|
2018-01-10 03:46:05 +08:00
|
|
|
TP_printk("dev %d:%d type %u agno %u agbno %u ret_ip %pS",
|
2017-10-18 12:37:36 +08:00
|
|
|
MAJOR(__entry->dev), MINOR(__entry->dev),
|
|
|
|
__entry->type,
|
|
|
|
__entry->agno,
|
|
|
|
__entry->bno,
|
|
|
|
__entry->ret_ip)
|
|
|
|
)
|
|
|
|
|
|
|
|
#define DEFINE_SCRUB_BLOCK_ERROR_EVENT(name) \
|
2018-07-20 03:29:11 +08:00
|
|
|
DEFINE_EVENT(xchk_block_error_class, name, \
|
2018-07-20 03:29:12 +08:00
|
|
|
TP_PROTO(struct xfs_scrub *sc, xfs_daddr_t daddr, \
|
2017-10-18 12:37:36 +08:00
|
|
|
void *ret_ip), \
|
|
|
|
TP_ARGS(sc, daddr, ret_ip))
|
|
|
|
|
2018-07-20 03:29:11 +08:00
|
|
|
DEFINE_SCRUB_BLOCK_ERROR_EVENT(xchk_block_error);
|
|
|
|
DEFINE_SCRUB_BLOCK_ERROR_EVENT(xchk_block_preen);
|
2017-10-18 12:37:36 +08:00
|
|
|
|
2018-07-20 03:29:11 +08:00
|
|
|
DECLARE_EVENT_CLASS(xchk_ino_error_class,
|
2018-07-20 03:29:12 +08:00
|
|
|
TP_PROTO(struct xfs_scrub *sc, xfs_ino_t ino, void *ret_ip),
|
2018-03-24 01:06:54 +08:00
|
|
|
TP_ARGS(sc, ino, ret_ip),
|
2017-10-18 12:37:36 +08:00
|
|
|
TP_STRUCT__entry(
|
|
|
|
__field(dev_t, dev)
|
|
|
|
__field(xfs_ino_t, ino)
|
|
|
|
__field(unsigned int, type)
|
|
|
|
__field(void *, ret_ip)
|
|
|
|
),
|
|
|
|
TP_fast_assign(
|
|
|
|
__entry->dev = sc->mp->m_super->s_dev;
|
|
|
|
__entry->ino = ino;
|
|
|
|
__entry->type = sc->sm->sm_type;
|
|
|
|
__entry->ret_ip = ret_ip;
|
|
|
|
),
|
2018-03-24 01:06:54 +08:00
|
|
|
TP_printk("dev %d:%d ino 0x%llx type %u ret_ip %pS",
|
2017-10-18 12:37:36 +08:00
|
|
|
MAJOR(__entry->dev), MINOR(__entry->dev),
|
|
|
|
__entry->ino,
|
|
|
|
__entry->type,
|
|
|
|
__entry->ret_ip)
|
|
|
|
)
|
|
|
|
|
|
|
|
#define DEFINE_SCRUB_INO_ERROR_EVENT(name) \
|
2018-07-20 03:29:11 +08:00
|
|
|
DEFINE_EVENT(xchk_ino_error_class, name, \
|
2018-07-20 03:29:12 +08:00
|
|
|
TP_PROTO(struct xfs_scrub *sc, xfs_ino_t ino, \
|
2018-03-24 01:06:54 +08:00
|
|
|
void *ret_ip), \
|
|
|
|
TP_ARGS(sc, ino, ret_ip))
|
2017-10-18 12:37:36 +08:00
|
|
|
|
2018-07-20 03:29:11 +08:00
|
|
|
DEFINE_SCRUB_INO_ERROR_EVENT(xchk_ino_error);
|
|
|
|
DEFINE_SCRUB_INO_ERROR_EVENT(xchk_ino_preen);
|
|
|
|
DEFINE_SCRUB_INO_ERROR_EVENT(xchk_ino_warning);
|
2017-10-18 12:37:36 +08:00
|
|
|
|
2018-07-20 03:29:11 +08:00
|
|
|
DECLARE_EVENT_CLASS(xchk_fblock_error_class,
|
2018-07-20 03:29:12 +08:00
|
|
|
TP_PROTO(struct xfs_scrub *sc, int whichfork,
|
2017-10-18 12:37:36 +08:00
|
|
|
xfs_fileoff_t offset, void *ret_ip),
|
|
|
|
TP_ARGS(sc, whichfork, offset, ret_ip),
|
|
|
|
TP_STRUCT__entry(
|
|
|
|
__field(dev_t, dev)
|
|
|
|
__field(xfs_ino_t, ino)
|
|
|
|
__field(int, whichfork)
|
|
|
|
__field(unsigned int, type)
|
|
|
|
__field(xfs_fileoff_t, offset)
|
|
|
|
__field(void *, ret_ip)
|
|
|
|
),
|
|
|
|
TP_fast_assign(
|
|
|
|
__entry->dev = sc->ip->i_mount->m_super->s_dev;
|
|
|
|
__entry->ino = sc->ip->i_ino;
|
|
|
|
__entry->whichfork = whichfork;
|
|
|
|
__entry->type = sc->sm->sm_type;
|
|
|
|
__entry->offset = offset;
|
|
|
|
__entry->ret_ip = ret_ip;
|
|
|
|
),
|
2018-01-23 08:46:42 +08:00
|
|
|
TP_printk("dev %d:%d ino 0x%llx fork %d type %u offset %llu ret_ip %pS",
|
2017-10-18 12:37:36 +08:00
|
|
|
MAJOR(__entry->dev), MINOR(__entry->dev),
|
|
|
|
__entry->ino,
|
|
|
|
__entry->whichfork,
|
|
|
|
__entry->type,
|
|
|
|
__entry->offset,
|
|
|
|
__entry->ret_ip)
|
|
|
|
);
|
|
|
|
|
|
|
|
#define DEFINE_SCRUB_FBLOCK_ERROR_EVENT(name) \
|
2018-07-20 03:29:11 +08:00
|
|
|
DEFINE_EVENT(xchk_fblock_error_class, name, \
|
2018-07-20 03:29:12 +08:00
|
|
|
TP_PROTO(struct xfs_scrub *sc, int whichfork, \
|
2017-10-18 12:37:36 +08:00
|
|
|
xfs_fileoff_t offset, void *ret_ip), \
|
|
|
|
TP_ARGS(sc, whichfork, offset, ret_ip))
|
|
|
|
|
2018-07-20 03:29:11 +08:00
|
|
|
DEFINE_SCRUB_FBLOCK_ERROR_EVENT(xchk_fblock_error);
|
|
|
|
DEFINE_SCRUB_FBLOCK_ERROR_EVENT(xchk_fblock_warning);
|
2017-10-18 12:37:36 +08:00
|
|
|
|
2018-07-20 03:29:11 +08:00
|
|
|
TRACE_EVENT(xchk_incomplete,
|
2018-07-20 03:29:12 +08:00
|
|
|
TP_PROTO(struct xfs_scrub *sc, void *ret_ip),
|
2017-10-18 12:37:36 +08:00
|
|
|
TP_ARGS(sc, ret_ip),
|
|
|
|
TP_STRUCT__entry(
|
|
|
|
__field(dev_t, dev)
|
|
|
|
__field(unsigned int, type)
|
|
|
|
__field(void *, ret_ip)
|
|
|
|
),
|
|
|
|
TP_fast_assign(
|
|
|
|
__entry->dev = sc->mp->m_super->s_dev;
|
|
|
|
__entry->type = sc->sm->sm_type;
|
|
|
|
__entry->ret_ip = ret_ip;
|
|
|
|
),
|
2018-01-10 03:46:05 +08:00
|
|
|
TP_printk("dev %d:%d type %u ret_ip %pS",
|
2017-10-18 12:37:36 +08:00
|
|
|
MAJOR(__entry->dev), MINOR(__entry->dev),
|
|
|
|
__entry->type,
|
|
|
|
__entry->ret_ip)
|
|
|
|
);
|
2017-10-18 12:37:35 +08:00
|
|
|
|
2018-07-20 03:29:11 +08:00
|
|
|
TRACE_EVENT(xchk_btree_op_error,
|
2018-07-20 03:29:12 +08:00
|
|
|
TP_PROTO(struct xfs_scrub *sc, struct xfs_btree_cur *cur,
|
2017-10-18 12:37:37 +08:00
|
|
|
int level, int error, void *ret_ip),
|
|
|
|
TP_ARGS(sc, cur, level, error, ret_ip),
|
|
|
|
TP_STRUCT__entry(
|
|
|
|
__field(dev_t, dev)
|
|
|
|
__field(unsigned int, type)
|
|
|
|
__field(xfs_btnum_t, btnum)
|
|
|
|
__field(int, level)
|
|
|
|
__field(xfs_agnumber_t, agno)
|
|
|
|
__field(xfs_agblock_t, bno)
|
|
|
|
__field(int, ptr);
|
|
|
|
__field(int, error)
|
|
|
|
__field(void *, ret_ip)
|
|
|
|
),
|
|
|
|
TP_fast_assign(
|
2018-07-20 03:29:11 +08:00
|
|
|
xfs_fsblock_t fsbno = xchk_btree_cur_fsbno(cur, level);
|
2017-10-18 12:37:37 +08:00
|
|
|
|
|
|
|
__entry->dev = sc->mp->m_super->s_dev;
|
|
|
|
__entry->type = sc->sm->sm_type;
|
|
|
|
__entry->btnum = cur->bc_btnum;
|
|
|
|
__entry->level = level;
|
|
|
|
__entry->agno = XFS_FSB_TO_AGNO(cur->bc_mp, fsbno);
|
|
|
|
__entry->bno = XFS_FSB_TO_AGBNO(cur->bc_mp, fsbno);
|
|
|
|
__entry->ptr = cur->bc_ptrs[level];
|
|
|
|
__entry->error = error;
|
|
|
|
__entry->ret_ip = ret_ip;
|
|
|
|
),
|
2018-12-19 06:32:31 +08:00
|
|
|
TP_printk("dev %d:%d type %u btree %s level %d ptr %d agno %u agbno %u error %d ret_ip %pS",
|
2017-10-18 12:37:37 +08:00
|
|
|
MAJOR(__entry->dev), MINOR(__entry->dev),
|
|
|
|
__entry->type,
|
2018-12-19 06:32:31 +08:00
|
|
|
__print_symbolic(__entry->btnum, XFS_BTNUM_STRINGS),
|
2017-10-18 12:37:37 +08:00
|
|
|
__entry->level,
|
|
|
|
__entry->ptr,
|
|
|
|
__entry->agno,
|
|
|
|
__entry->bno,
|
|
|
|
__entry->error,
|
|
|
|
__entry->ret_ip)
|
|
|
|
);
|
|
|
|
|
2018-07-20 03:29:11 +08:00
|
|
|
TRACE_EVENT(xchk_ifork_btree_op_error,
|
2018-07-20 03:29:12 +08:00
|
|
|
TP_PROTO(struct xfs_scrub *sc, struct xfs_btree_cur *cur,
|
2017-10-18 12:37:37 +08:00
|
|
|
int level, int error, void *ret_ip),
|
|
|
|
TP_ARGS(sc, cur, level, error, ret_ip),
|
|
|
|
TP_STRUCT__entry(
|
|
|
|
__field(dev_t, dev)
|
|
|
|
__field(xfs_ino_t, ino)
|
|
|
|
__field(int, whichfork)
|
|
|
|
__field(unsigned int, type)
|
|
|
|
__field(xfs_btnum_t, btnum)
|
|
|
|
__field(int, level)
|
|
|
|
__field(int, ptr)
|
|
|
|
__field(xfs_agnumber_t, agno)
|
|
|
|
__field(xfs_agblock_t, bno)
|
|
|
|
__field(int, error)
|
|
|
|
__field(void *, ret_ip)
|
|
|
|
),
|
|
|
|
TP_fast_assign(
|
2018-07-20 03:29:11 +08:00
|
|
|
xfs_fsblock_t fsbno = xchk_btree_cur_fsbno(cur, level);
|
2017-10-18 12:37:37 +08:00
|
|
|
__entry->dev = sc->mp->m_super->s_dev;
|
|
|
|
__entry->ino = sc->ip->i_ino;
|
|
|
|
__entry->whichfork = cur->bc_private.b.whichfork;
|
|
|
|
__entry->type = sc->sm->sm_type;
|
|
|
|
__entry->btnum = cur->bc_btnum;
|
|
|
|
__entry->level = level;
|
|
|
|
__entry->ptr = cur->bc_ptrs[level];
|
|
|
|
__entry->agno = XFS_FSB_TO_AGNO(cur->bc_mp, fsbno);
|
|
|
|
__entry->bno = XFS_FSB_TO_AGBNO(cur->bc_mp, fsbno);
|
|
|
|
__entry->error = error;
|
|
|
|
__entry->ret_ip = ret_ip;
|
|
|
|
),
|
2018-12-19 06:32:31 +08:00
|
|
|
TP_printk("dev %d:%d ino 0x%llx fork %d type %u btree %s level %d ptr %d agno %u agbno %u error %d ret_ip %pS",
|
2017-10-18 12:37:37 +08:00
|
|
|
MAJOR(__entry->dev), MINOR(__entry->dev),
|
|
|
|
__entry->ino,
|
|
|
|
__entry->whichfork,
|
|
|
|
__entry->type,
|
2018-12-19 06:32:31 +08:00
|
|
|
__print_symbolic(__entry->btnum, XFS_BTNUM_STRINGS),
|
2017-10-18 12:37:37 +08:00
|
|
|
__entry->level,
|
|
|
|
__entry->ptr,
|
|
|
|
__entry->agno,
|
|
|
|
__entry->bno,
|
|
|
|
__entry->error,
|
|
|
|
__entry->ret_ip)
|
|
|
|
);
|
|
|
|
|
2018-07-20 03:29:11 +08:00
|
|
|
TRACE_EVENT(xchk_btree_error,
|
2018-07-20 03:29:12 +08:00
|
|
|
TP_PROTO(struct xfs_scrub *sc, struct xfs_btree_cur *cur,
|
2017-10-18 12:37:37 +08:00
|
|
|
int level, void *ret_ip),
|
|
|
|
TP_ARGS(sc, cur, level, ret_ip),
|
|
|
|
TP_STRUCT__entry(
|
|
|
|
__field(dev_t, dev)
|
|
|
|
__field(unsigned int, type)
|
|
|
|
__field(xfs_btnum_t, btnum)
|
|
|
|
__field(int, level)
|
|
|
|
__field(xfs_agnumber_t, agno)
|
|
|
|
__field(xfs_agblock_t, bno)
|
|
|
|
__field(int, ptr);
|
|
|
|
__field(void *, ret_ip)
|
|
|
|
),
|
|
|
|
TP_fast_assign(
|
2018-07-20 03:29:11 +08:00
|
|
|
xfs_fsblock_t fsbno = xchk_btree_cur_fsbno(cur, level);
|
2017-10-18 12:37:37 +08:00
|
|
|
__entry->dev = sc->mp->m_super->s_dev;
|
|
|
|
__entry->type = sc->sm->sm_type;
|
|
|
|
__entry->btnum = cur->bc_btnum;
|
|
|
|
__entry->level = level;
|
|
|
|
__entry->agno = XFS_FSB_TO_AGNO(cur->bc_mp, fsbno);
|
|
|
|
__entry->bno = XFS_FSB_TO_AGBNO(cur->bc_mp, fsbno);
|
|
|
|
__entry->ptr = cur->bc_ptrs[level];
|
|
|
|
__entry->ret_ip = ret_ip;
|
|
|
|
),
|
2018-12-19 06:32:31 +08:00
|
|
|
TP_printk("dev %d:%d type %u btree %s level %d ptr %d agno %u agbno %u ret_ip %pS",
|
2017-10-18 12:37:37 +08:00
|
|
|
MAJOR(__entry->dev), MINOR(__entry->dev),
|
|
|
|
__entry->type,
|
2018-12-19 06:32:31 +08:00
|
|
|
__print_symbolic(__entry->btnum, XFS_BTNUM_STRINGS),
|
2017-10-18 12:37:37 +08:00
|
|
|
__entry->level,
|
|
|
|
__entry->ptr,
|
|
|
|
__entry->agno,
|
|
|
|
__entry->bno,
|
|
|
|
__entry->ret_ip)
|
|
|
|
);
|
|
|
|
|
2018-07-20 03:29:11 +08:00
|
|
|
TRACE_EVENT(xchk_ifork_btree_error,
|
2018-07-20 03:29:12 +08:00
|
|
|
TP_PROTO(struct xfs_scrub *sc, struct xfs_btree_cur *cur,
|
2017-10-18 12:37:37 +08:00
|
|
|
int level, void *ret_ip),
|
|
|
|
TP_ARGS(sc, cur, level, ret_ip),
|
|
|
|
TP_STRUCT__entry(
|
|
|
|
__field(dev_t, dev)
|
|
|
|
__field(xfs_ino_t, ino)
|
|
|
|
__field(int, whichfork)
|
|
|
|
__field(unsigned int, type)
|
|
|
|
__field(xfs_btnum_t, btnum)
|
|
|
|
__field(int, level)
|
|
|
|
__field(xfs_agnumber_t, agno)
|
|
|
|
__field(xfs_agblock_t, bno)
|
|
|
|
__field(int, ptr);
|
|
|
|
__field(void *, ret_ip)
|
|
|
|
),
|
|
|
|
TP_fast_assign(
|
2018-07-20 03:29:11 +08:00
|
|
|
xfs_fsblock_t fsbno = xchk_btree_cur_fsbno(cur, level);
|
2017-10-18 12:37:37 +08:00
|
|
|
__entry->dev = sc->mp->m_super->s_dev;
|
|
|
|
__entry->ino = sc->ip->i_ino;
|
|
|
|
__entry->whichfork = cur->bc_private.b.whichfork;
|
|
|
|
__entry->type = sc->sm->sm_type;
|
|
|
|
__entry->btnum = cur->bc_btnum;
|
|
|
|
__entry->level = level;
|
|
|
|
__entry->agno = XFS_FSB_TO_AGNO(cur->bc_mp, fsbno);
|
|
|
|
__entry->bno = XFS_FSB_TO_AGBNO(cur->bc_mp, fsbno);
|
|
|
|
__entry->ptr = cur->bc_ptrs[level];
|
|
|
|
__entry->ret_ip = ret_ip;
|
|
|
|
),
|
2018-12-19 06:32:31 +08:00
|
|
|
TP_printk("dev %d:%d ino 0x%llx fork %d type %u btree %s level %d ptr %d agno %u agbno %u ret_ip %pS",
|
2017-10-18 12:37:37 +08:00
|
|
|
MAJOR(__entry->dev), MINOR(__entry->dev),
|
|
|
|
__entry->ino,
|
|
|
|
__entry->whichfork,
|
|
|
|
__entry->type,
|
2018-12-19 06:32:31 +08:00
|
|
|
__print_symbolic(__entry->btnum, XFS_BTNUM_STRINGS),
|
2017-10-18 12:37:37 +08:00
|
|
|
__entry->level,
|
|
|
|
__entry->ptr,
|
|
|
|
__entry->agno,
|
|
|
|
__entry->bno,
|
|
|
|
__entry->ret_ip)
|
|
|
|
);
|
|
|
|
|
2018-07-20 03:29:11 +08:00
|
|
|
DECLARE_EVENT_CLASS(xchk_sbtree_class,
|
2018-07-20 03:29:12 +08:00
|
|
|
TP_PROTO(struct xfs_scrub *sc, struct xfs_btree_cur *cur,
|
2017-10-18 12:37:37 +08:00
|
|
|
int level),
|
|
|
|
TP_ARGS(sc, cur, level),
|
|
|
|
TP_STRUCT__entry(
|
|
|
|
__field(dev_t, dev)
|
|
|
|
__field(int, type)
|
|
|
|
__field(xfs_btnum_t, btnum)
|
|
|
|
__field(xfs_agnumber_t, agno)
|
|
|
|
__field(xfs_agblock_t, bno)
|
|
|
|
__field(int, level)
|
|
|
|
__field(int, nlevels)
|
|
|
|
__field(int, ptr)
|
|
|
|
),
|
|
|
|
TP_fast_assign(
|
2018-07-20 03:29:11 +08:00
|
|
|
xfs_fsblock_t fsbno = xchk_btree_cur_fsbno(cur, level);
|
2017-10-18 12:37:37 +08:00
|
|
|
|
|
|
|
__entry->dev = sc->mp->m_super->s_dev;
|
|
|
|
__entry->type = sc->sm->sm_type;
|
|
|
|
__entry->btnum = cur->bc_btnum;
|
|
|
|
__entry->agno = XFS_FSB_TO_AGNO(cur->bc_mp, fsbno);
|
|
|
|
__entry->bno = XFS_FSB_TO_AGBNO(cur->bc_mp, fsbno);
|
|
|
|
__entry->level = level;
|
|
|
|
__entry->nlevels = cur->bc_nlevels;
|
|
|
|
__entry->ptr = cur->bc_ptrs[level];
|
|
|
|
),
|
2018-12-19 06:32:31 +08:00
|
|
|
TP_printk("dev %d:%d type %u btree %s agno %u agbno %u level %d nlevels %d ptr %d",
|
2017-10-18 12:37:37 +08:00
|
|
|
MAJOR(__entry->dev), MINOR(__entry->dev),
|
|
|
|
__entry->type,
|
2018-12-19 06:32:31 +08:00
|
|
|
__print_symbolic(__entry->btnum, XFS_BTNUM_STRINGS),
|
2017-10-18 12:37:37 +08:00
|
|
|
__entry->agno,
|
|
|
|
__entry->bno,
|
|
|
|
__entry->level,
|
|
|
|
__entry->nlevels,
|
|
|
|
__entry->ptr)
|
|
|
|
)
|
|
|
|
#define DEFINE_SCRUB_SBTREE_EVENT(name) \
|
2018-07-20 03:29:11 +08:00
|
|
|
DEFINE_EVENT(xchk_sbtree_class, name, \
|
2018-07-20 03:29:12 +08:00
|
|
|
TP_PROTO(struct xfs_scrub *sc, struct xfs_btree_cur *cur, \
|
2017-10-18 12:37:37 +08:00
|
|
|
int level), \
|
|
|
|
TP_ARGS(sc, cur, level))
|
|
|
|
|
2018-07-20 03:29:11 +08:00
|
|
|
DEFINE_SCRUB_SBTREE_EVENT(xchk_btree_rec);
|
|
|
|
DEFINE_SCRUB_SBTREE_EVENT(xchk_btree_key);
|
2017-10-18 12:37:37 +08:00
|
|
|
|
2018-07-20 03:29:11 +08:00
|
|
|
TRACE_EVENT(xchk_xref_error,
|
2018-07-20 03:29:12 +08:00
|
|
|
TP_PROTO(struct xfs_scrub *sc, int error, void *ret_ip),
|
2018-01-17 10:52:14 +08:00
|
|
|
TP_ARGS(sc, error, ret_ip),
|
|
|
|
TP_STRUCT__entry(
|
|
|
|
__field(dev_t, dev)
|
|
|
|
__field(int, type)
|
|
|
|
__field(int, error)
|
|
|
|
__field(void *, ret_ip)
|
|
|
|
),
|
|
|
|
TP_fast_assign(
|
|
|
|
__entry->dev = sc->mp->m_super->s_dev;
|
|
|
|
__entry->type = sc->sm->sm_type;
|
|
|
|
__entry->error = error;
|
|
|
|
__entry->ret_ip = ret_ip;
|
|
|
|
),
|
2018-12-19 06:32:29 +08:00
|
|
|
TP_printk("dev %d:%d type %u xref error %d ret_ip %pS",
|
2018-01-17 10:52:14 +08:00
|
|
|
MAJOR(__entry->dev), MINOR(__entry->dev),
|
|
|
|
__entry->type,
|
|
|
|
__entry->error,
|
|
|
|
__entry->ret_ip)
|
|
|
|
);
|
|
|
|
|
2018-05-14 21:34:35 +08:00
|
|
|
/* repair tracepoints */
|
|
|
|
#if IS_ENABLED(CONFIG_XFS_ONLINE_REPAIR)
|
|
|
|
|
2018-07-20 03:29:11 +08:00
|
|
|
DECLARE_EVENT_CLASS(xrep_extent_class,
|
2018-05-14 21:34:35 +08:00
|
|
|
TP_PROTO(struct xfs_mount *mp, xfs_agnumber_t agno,
|
|
|
|
xfs_agblock_t agbno, xfs_extlen_t len),
|
|
|
|
TP_ARGS(mp, agno, agbno, len),
|
|
|
|
TP_STRUCT__entry(
|
|
|
|
__field(dev_t, dev)
|
|
|
|
__field(xfs_agnumber_t, agno)
|
|
|
|
__field(xfs_agblock_t, agbno)
|
|
|
|
__field(xfs_extlen_t, len)
|
|
|
|
),
|
|
|
|
TP_fast_assign(
|
|
|
|
__entry->dev = mp->m_super->s_dev;
|
|
|
|
__entry->agno = agno;
|
|
|
|
__entry->agbno = agbno;
|
|
|
|
__entry->len = len;
|
|
|
|
),
|
|
|
|
TP_printk("dev %d:%d agno %u agbno %u len %u",
|
|
|
|
MAJOR(__entry->dev), MINOR(__entry->dev),
|
|
|
|
__entry->agno,
|
|
|
|
__entry->agbno,
|
|
|
|
__entry->len)
|
|
|
|
);
|
|
|
|
#define DEFINE_REPAIR_EXTENT_EVENT(name) \
|
2018-07-20 03:29:11 +08:00
|
|
|
DEFINE_EVENT(xrep_extent_class, name, \
|
2018-05-14 21:34:35 +08:00
|
|
|
TP_PROTO(struct xfs_mount *mp, xfs_agnumber_t agno, \
|
|
|
|
xfs_agblock_t agbno, xfs_extlen_t len), \
|
|
|
|
TP_ARGS(mp, agno, agbno, len))
|
2018-07-20 03:29:11 +08:00
|
|
|
DEFINE_REPAIR_EXTENT_EVENT(xrep_dispose_btree_extent);
|
|
|
|
DEFINE_REPAIR_EXTENT_EVENT(xrep_agfl_insert);
|
2018-05-14 21:34:35 +08:00
|
|
|
|
2018-07-20 03:29:11 +08:00
|
|
|
DECLARE_EVENT_CLASS(xrep_rmap_class,
|
2018-05-14 21:34:35 +08:00
|
|
|
TP_PROTO(struct xfs_mount *mp, xfs_agnumber_t agno,
|
|
|
|
xfs_agblock_t agbno, xfs_extlen_t len,
|
|
|
|
uint64_t owner, uint64_t offset, unsigned int flags),
|
|
|
|
TP_ARGS(mp, agno, agbno, len, owner, offset, flags),
|
|
|
|
TP_STRUCT__entry(
|
|
|
|
__field(dev_t, dev)
|
|
|
|
__field(xfs_agnumber_t, agno)
|
|
|
|
__field(xfs_agblock_t, agbno)
|
|
|
|
__field(xfs_extlen_t, len)
|
|
|
|
__field(uint64_t, owner)
|
|
|
|
__field(uint64_t, offset)
|
|
|
|
__field(unsigned int, flags)
|
|
|
|
),
|
|
|
|
TP_fast_assign(
|
|
|
|
__entry->dev = mp->m_super->s_dev;
|
|
|
|
__entry->agno = agno;
|
|
|
|
__entry->agbno = agbno;
|
|
|
|
__entry->len = len;
|
|
|
|
__entry->owner = owner;
|
|
|
|
__entry->offset = offset;
|
|
|
|
__entry->flags = flags;
|
|
|
|
),
|
|
|
|
TP_printk("dev %d:%d agno %u agbno %u len %u owner %lld offset %llu flags 0x%x",
|
|
|
|
MAJOR(__entry->dev), MINOR(__entry->dev),
|
|
|
|
__entry->agno,
|
|
|
|
__entry->agbno,
|
|
|
|
__entry->len,
|
|
|
|
__entry->owner,
|
|
|
|
__entry->offset,
|
|
|
|
__entry->flags)
|
|
|
|
);
|
|
|
|
#define DEFINE_REPAIR_RMAP_EVENT(name) \
|
2018-07-20 03:29:11 +08:00
|
|
|
DEFINE_EVENT(xrep_rmap_class, name, \
|
2018-05-14 21:34:35 +08:00
|
|
|
TP_PROTO(struct xfs_mount *mp, xfs_agnumber_t agno, \
|
|
|
|
xfs_agblock_t agbno, xfs_extlen_t len, \
|
|
|
|
uint64_t owner, uint64_t offset, unsigned int flags), \
|
|
|
|
TP_ARGS(mp, agno, agbno, len, owner, offset, flags))
|
2018-07-20 03:29:11 +08:00
|
|
|
DEFINE_REPAIR_RMAP_EVENT(xrep_alloc_extent_fn);
|
|
|
|
DEFINE_REPAIR_RMAP_EVENT(xrep_ialloc_extent_fn);
|
|
|
|
DEFINE_REPAIR_RMAP_EVENT(xrep_rmap_extent_fn);
|
|
|
|
DEFINE_REPAIR_RMAP_EVENT(xrep_bmap_extent_fn);
|
2018-05-14 21:34:35 +08:00
|
|
|
|
2018-07-20 03:29:11 +08:00
|
|
|
TRACE_EVENT(xrep_refcount_extent_fn,
|
2018-05-14 21:34:35 +08:00
|
|
|
TP_PROTO(struct xfs_mount *mp, xfs_agnumber_t agno,
|
|
|
|
struct xfs_refcount_irec *irec),
|
|
|
|
TP_ARGS(mp, agno, irec),
|
|
|
|
TP_STRUCT__entry(
|
|
|
|
__field(dev_t, dev)
|
|
|
|
__field(xfs_agnumber_t, agno)
|
|
|
|
__field(xfs_agblock_t, startblock)
|
|
|
|
__field(xfs_extlen_t, blockcount)
|
|
|
|
__field(xfs_nlink_t, refcount)
|
|
|
|
),
|
|
|
|
TP_fast_assign(
|
|
|
|
__entry->dev = mp->m_super->s_dev;
|
|
|
|
__entry->agno = agno;
|
|
|
|
__entry->startblock = irec->rc_startblock;
|
|
|
|
__entry->blockcount = irec->rc_blockcount;
|
|
|
|
__entry->refcount = irec->rc_refcount;
|
|
|
|
),
|
|
|
|
TP_printk("dev %d:%d agno %u agbno %u len %u refcount %u",
|
|
|
|
MAJOR(__entry->dev), MINOR(__entry->dev),
|
|
|
|
__entry->agno,
|
|
|
|
__entry->startblock,
|
|
|
|
__entry->blockcount,
|
|
|
|
__entry->refcount)
|
|
|
|
)
|
|
|
|
|
2018-07-20 03:29:11 +08:00
|
|
|
TRACE_EVENT(xrep_init_btblock,
|
2018-05-14 21:34:35 +08:00
|
|
|
TP_PROTO(struct xfs_mount *mp, xfs_agnumber_t agno, xfs_agblock_t agbno,
|
|
|
|
xfs_btnum_t btnum),
|
|
|
|
TP_ARGS(mp, agno, agbno, btnum),
|
|
|
|
TP_STRUCT__entry(
|
|
|
|
__field(dev_t, dev)
|
|
|
|
__field(xfs_agnumber_t, agno)
|
|
|
|
__field(xfs_agblock_t, agbno)
|
|
|
|
__field(uint32_t, btnum)
|
|
|
|
),
|
|
|
|
TP_fast_assign(
|
|
|
|
__entry->dev = mp->m_super->s_dev;
|
|
|
|
__entry->agno = agno;
|
|
|
|
__entry->agbno = agbno;
|
|
|
|
__entry->btnum = btnum;
|
|
|
|
),
|
2018-12-19 06:32:31 +08:00
|
|
|
TP_printk("dev %d:%d agno %u agbno %u btree %s",
|
2018-05-14 21:34:35 +08:00
|
|
|
MAJOR(__entry->dev), MINOR(__entry->dev),
|
|
|
|
__entry->agno,
|
|
|
|
__entry->agbno,
|
2018-12-19 06:32:31 +08:00
|
|
|
__print_symbolic(__entry->btnum, XFS_BTNUM_STRINGS))
|
2018-05-14 21:34:35 +08:00
|
|
|
)
|
2018-07-20 03:29:11 +08:00
|
|
|
TRACE_EVENT(xrep_findroot_block,
|
2018-05-14 21:34:35 +08:00
|
|
|
TP_PROTO(struct xfs_mount *mp, xfs_agnumber_t agno, xfs_agblock_t agbno,
|
|
|
|
uint32_t magic, uint16_t level),
|
|
|
|
TP_ARGS(mp, agno, agbno, magic, level),
|
|
|
|
TP_STRUCT__entry(
|
|
|
|
__field(dev_t, dev)
|
|
|
|
__field(xfs_agnumber_t, agno)
|
|
|
|
__field(xfs_agblock_t, agbno)
|
|
|
|
__field(uint32_t, magic)
|
|
|
|
__field(uint16_t, level)
|
|
|
|
),
|
|
|
|
TP_fast_assign(
|
|
|
|
__entry->dev = mp->m_super->s_dev;
|
|
|
|
__entry->agno = agno;
|
|
|
|
__entry->agbno = agbno;
|
|
|
|
__entry->magic = magic;
|
|
|
|
__entry->level = level;
|
|
|
|
),
|
|
|
|
TP_printk("dev %d:%d agno %u agbno %u magic 0x%x level %u",
|
|
|
|
MAJOR(__entry->dev), MINOR(__entry->dev),
|
|
|
|
__entry->agno,
|
|
|
|
__entry->agbno,
|
|
|
|
__entry->magic,
|
|
|
|
__entry->level)
|
|
|
|
)
|
2018-07-20 03:29:11 +08:00
|
|
|
TRACE_EVENT(xrep_calc_ag_resblks,
|
2018-05-14 21:34:35 +08:00
|
|
|
TP_PROTO(struct xfs_mount *mp, xfs_agnumber_t agno,
|
|
|
|
xfs_agino_t icount, xfs_agblock_t aglen, xfs_agblock_t freelen,
|
|
|
|
xfs_agblock_t usedlen),
|
|
|
|
TP_ARGS(mp, agno, icount, aglen, freelen, usedlen),
|
|
|
|
TP_STRUCT__entry(
|
|
|
|
__field(dev_t, dev)
|
|
|
|
__field(xfs_agnumber_t, agno)
|
|
|
|
__field(xfs_agino_t, icount)
|
|
|
|
__field(xfs_agblock_t, aglen)
|
|
|
|
__field(xfs_agblock_t, freelen)
|
|
|
|
__field(xfs_agblock_t, usedlen)
|
|
|
|
),
|
|
|
|
TP_fast_assign(
|
|
|
|
__entry->dev = mp->m_super->s_dev;
|
|
|
|
__entry->agno = agno;
|
|
|
|
__entry->icount = icount;
|
|
|
|
__entry->aglen = aglen;
|
|
|
|
__entry->freelen = freelen;
|
|
|
|
__entry->usedlen = usedlen;
|
|
|
|
),
|
|
|
|
TP_printk("dev %d:%d agno %d icount %u aglen %u freelen %u usedlen %u",
|
|
|
|
MAJOR(__entry->dev), MINOR(__entry->dev),
|
|
|
|
__entry->agno,
|
|
|
|
__entry->icount,
|
|
|
|
__entry->aglen,
|
|
|
|
__entry->freelen,
|
|
|
|
__entry->usedlen)
|
|
|
|
)
|
2018-07-20 03:29:11 +08:00
|
|
|
TRACE_EVENT(xrep_calc_ag_resblks_btsize,
|
2018-05-14 21:34:35 +08:00
|
|
|
TP_PROTO(struct xfs_mount *mp, xfs_agnumber_t agno,
|
|
|
|
xfs_agblock_t bnobt_sz, xfs_agblock_t inobt_sz,
|
|
|
|
xfs_agblock_t rmapbt_sz, xfs_agblock_t refcbt_sz),
|
|
|
|
TP_ARGS(mp, agno, bnobt_sz, inobt_sz, rmapbt_sz, refcbt_sz),
|
|
|
|
TP_STRUCT__entry(
|
|
|
|
__field(dev_t, dev)
|
|
|
|
__field(xfs_agnumber_t, agno)
|
|
|
|
__field(xfs_agblock_t, bnobt_sz)
|
|
|
|
__field(xfs_agblock_t, inobt_sz)
|
|
|
|
__field(xfs_agblock_t, rmapbt_sz)
|
|
|
|
__field(xfs_agblock_t, refcbt_sz)
|
|
|
|
),
|
|
|
|
TP_fast_assign(
|
|
|
|
__entry->dev = mp->m_super->s_dev;
|
|
|
|
__entry->agno = agno;
|
|
|
|
__entry->bnobt_sz = bnobt_sz;
|
|
|
|
__entry->inobt_sz = inobt_sz;
|
|
|
|
__entry->rmapbt_sz = rmapbt_sz;
|
|
|
|
__entry->refcbt_sz = refcbt_sz;
|
|
|
|
),
|
|
|
|
TP_printk("dev %d:%d agno %d bno %u ino %u rmap %u refcount %u",
|
|
|
|
MAJOR(__entry->dev), MINOR(__entry->dev),
|
|
|
|
__entry->agno,
|
|
|
|
__entry->bnobt_sz,
|
|
|
|
__entry->inobt_sz,
|
|
|
|
__entry->rmapbt_sz,
|
|
|
|
__entry->refcbt_sz)
|
|
|
|
)
|
2018-07-20 03:29:11 +08:00
|
|
|
TRACE_EVENT(xrep_reset_counters,
|
2018-05-14 21:34:35 +08:00
|
|
|
TP_PROTO(struct xfs_mount *mp),
|
|
|
|
TP_ARGS(mp),
|
|
|
|
TP_STRUCT__entry(
|
|
|
|
__field(dev_t, dev)
|
|
|
|
),
|
|
|
|
TP_fast_assign(
|
|
|
|
__entry->dev = mp->m_super->s_dev;
|
|
|
|
),
|
|
|
|
TP_printk("dev %d:%d",
|
|
|
|
MAJOR(__entry->dev), MINOR(__entry->dev))
|
|
|
|
)
|
|
|
|
|
2018-07-20 03:29:11 +08:00
|
|
|
TRACE_EVENT(xrep_ialloc_insert,
|
2018-05-14 21:34:35 +08:00
|
|
|
TP_PROTO(struct xfs_mount *mp, xfs_agnumber_t agno,
|
|
|
|
xfs_agino_t startino, uint16_t holemask, uint8_t count,
|
|
|
|
uint8_t freecount, uint64_t freemask),
|
|
|
|
TP_ARGS(mp, agno, startino, holemask, count, freecount, freemask),
|
|
|
|
TP_STRUCT__entry(
|
|
|
|
__field(dev_t, dev)
|
|
|
|
__field(xfs_agnumber_t, agno)
|
|
|
|
__field(xfs_agino_t, startino)
|
|
|
|
__field(uint16_t, holemask)
|
|
|
|
__field(uint8_t, count)
|
|
|
|
__field(uint8_t, freecount)
|
|
|
|
__field(uint64_t, freemask)
|
|
|
|
),
|
|
|
|
TP_fast_assign(
|
|
|
|
__entry->dev = mp->m_super->s_dev;
|
|
|
|
__entry->agno = agno;
|
|
|
|
__entry->startino = startino;
|
|
|
|
__entry->holemask = holemask;
|
|
|
|
__entry->count = count;
|
|
|
|
__entry->freecount = freecount;
|
|
|
|
__entry->freemask = freemask;
|
|
|
|
),
|
|
|
|
TP_printk("dev %d:%d agno %d startino %u holemask 0x%x count %u freecount %u freemask 0x%llx",
|
|
|
|
MAJOR(__entry->dev), MINOR(__entry->dev),
|
|
|
|
__entry->agno,
|
|
|
|
__entry->startino,
|
|
|
|
__entry->holemask,
|
|
|
|
__entry->count,
|
|
|
|
__entry->freecount,
|
|
|
|
__entry->freemask)
|
|
|
|
)
|
|
|
|
|
|
|
|
#endif /* IS_ENABLED(CONFIG_XFS_ONLINE_REPAIR) */
|
|
|
|
|
2017-10-18 12:37:34 +08:00
|
|
|
#endif /* _TRACE_XFS_SCRUB_TRACE_H */
|
|
|
|
|
|
|
|
#undef TRACE_INCLUDE_PATH
|
|
|
|
#define TRACE_INCLUDE_PATH .
|
|
|
|
#define TRACE_INCLUDE_FILE scrub/trace
|
|
|
|
#include <trace/define_trace.h>
|