diff options
author | Darrick J. Wong <djwong@kernel.org> | 2023-03-15 17:30:33 -0700 |
---|---|---|
committer | Darrick J. Wong <djwong@kernel.org> | 2023-03-19 09:55:49 -0700 |
commit | e6fbb7167ed005783ac5aef3e75699f45ffe2af8 (patch) | |
tree | 0b7f1fa039eb5c411841e3f23d341ef72dbb17c1 /fs/xfs/xfs_trace.h | |
parent | 9eb775968b68d049fb3b00353f12cd10308527c7 (diff) | |
download | linux-stable-e6fbb7167ed005783ac5aef3e75699f45ffe2af8.tar.gz linux-stable-e6fbb7167ed005783ac5aef3e75699f45ffe2af8.tar.bz2 linux-stable-e6fbb7167ed005783ac5aef3e75699f45ffe2af8.zip |
xfs: add tracepoints for each of the externally visible allocators
There are now five separate space allocator interfaces exposed to the
rest of XFS for five different strategies to find space. Add
tracepoints for each of them so that I can tell from a trace dump
exactly which ones got called and what happened underneath them. Add a
sixth so it's more obvious if an allocation actually happened.
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Diffstat (limited to 'fs/xfs/xfs_trace.h')
-rw-r--r-- | fs/xfs/xfs_trace.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/fs/xfs/xfs_trace.h b/fs/xfs/xfs_trace.h index 7dc0fd6a6504..9c0006c55fec 100644 --- a/fs/xfs/xfs_trace.h +++ b/fs/xfs/xfs_trace.h @@ -1883,6 +1883,13 @@ DEFINE_ALLOC_EVENT(xfs_alloc_vextent_noagbp); DEFINE_ALLOC_EVENT(xfs_alloc_vextent_loopfailed); DEFINE_ALLOC_EVENT(xfs_alloc_vextent_allfailed); +DEFINE_ALLOC_EVENT(xfs_alloc_vextent_this_ag); +DEFINE_ALLOC_EVENT(xfs_alloc_vextent_start_ag); +DEFINE_ALLOC_EVENT(xfs_alloc_vextent_first_ag); +DEFINE_ALLOC_EVENT(xfs_alloc_vextent_exact_bno); +DEFINE_ALLOC_EVENT(xfs_alloc_vextent_near_bno); +DEFINE_ALLOC_EVENT(xfs_alloc_vextent_finish); + TRACE_EVENT(xfs_alloc_cur_check, TP_PROTO(struct xfs_mount *mp, xfs_btnum_t btnum, xfs_agblock_t bno, xfs_extlen_t len, xfs_extlen_t diff, bool new), |