Re: [PATCH 07/20] xfs: create tracepoints for online repair

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Mar 26, 2018 at 04:56:39PM -0700, Darrick J. Wong wrote:
> From: Darrick J. Wong <darrick.wong@xxxxxxxxxx>
> 
> These tracepoints will be used to debug the online repair routines.
> 
> Signed-off-by: Darrick J. Wong <darrick.wong@xxxxxxxxxx>

Cant really say anything about the tracepoint contents themselves
at this point. One minor nit:

....
> +	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)

This is the normal TP_printk parameter stacking format, but....

> +)
> +
> +TRACE_EVENT(xfs_repair_init_btblock,
> +	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;
> +	),
> +	TP_printk("dev %d:%d agno %u agbno %u btnum %d",
> +		  MAJOR(__entry->dev), MINOR(__entry->dev), __entry->agno,
> +		  __entry->agbno, __entry->btnum)

from here on you pack mulitple parameters to a line, which is
different to everything else in the tracepoint code. Can you unpack
them?

Otherwise:

Reviewed-by: Dave Chinner <dchinner@xxxxxxxxxx>

/me is wondering if we're getting to the point where we need to
split up xfs_trace.h?

Cheers,

Dave.
-- 
Dave Chinner
david@xxxxxxxxxxxxx
--
To unsubscribe from this list: send the line "unsubscribe linux-xfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [XFS Filesystem Development (older mail)]     [Linux Filesystem Development]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux RAID]     [Linux SCSI]


  Powered by Linux