diff options
author | Christoph Hellwig <hch@infradead.org> | 2008-10-30 01:55:13 -0400 |
---|---|---|
committer | Lachlan McIlroy <lachlan@sgi.com> | 2008-10-30 01:55:13 -0400 |
commit | 8c4ed633e65d0bd0a25d45aad9b4646e3236cad7 (patch) | |
tree | 36877f1d34c0dbd20cfd0315112d62dbf4571b80 /fs/xfs/xfs_btree.h | |
parent | 854929f05831d3a290a802815ee955b96c740c61 (diff) |
[XFS] make btree tracing generic
Make the existing bmap btree tracing generic so that it applies to all
btree types.
Some fragments lifted from a patch by Dave Chinner.
SGI-PV: 985583
SGI-Modid: xfs-linux-melb:xfs-kern:32187a
Signed-off-by: Christoph Hellwig <hch@infradead.org>
Signed-off-by: Lachlan McIlroy <lachlan@sgi.com>
Signed-off-by: Bill O'Donnell <billodo@sgi.com>
Signed-off-by: David Chinner <david@fromorbit.com>
Diffstat (limited to 'fs/xfs/xfs_btree.h')
-rw-r--r-- | fs/xfs/xfs_btree.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/fs/xfs/xfs_btree.h b/fs/xfs/xfs_btree.h index 57d3bd37526e..0647a0eff0de 100644 --- a/fs/xfs/xfs_btree.h +++ b/fs/xfs/xfs_btree.h | |||
@@ -182,6 +182,25 @@ do { \ | |||
182 | struct xfs_btree_ops { | 182 | struct xfs_btree_ops { |
183 | /* cursor operations */ | 183 | /* cursor operations */ |
184 | struct xfs_btree_cur *(*dup_cursor)(struct xfs_btree_cur *); | 184 | struct xfs_btree_cur *(*dup_cursor)(struct xfs_btree_cur *); |
185 | |||
186 | /* btree tracing */ | ||
187 | #ifdef XFS_BTREE_TRACE | ||
188 | void (*trace_enter)(struct xfs_btree_cur *, const char *, | ||
189 | char *, int, int, __psunsigned_t, | ||
190 | __psunsigned_t, __psunsigned_t, | ||
191 | __psunsigned_t, __psunsigned_t, | ||
192 | __psunsigned_t, __psunsigned_t, | ||
193 | __psunsigned_t, __psunsigned_t, | ||
194 | __psunsigned_t, __psunsigned_t); | ||
195 | void (*trace_cursor)(struct xfs_btree_cur *, __uint32_t *, | ||
196 | __uint64_t *, __uint64_t *); | ||
197 | void (*trace_key)(struct xfs_btree_cur *, | ||
198 | union xfs_btree_key *, __uint64_t *, | ||
199 | __uint64_t *); | ||
200 | void (*trace_record)(struct xfs_btree_cur *, | ||
201 | union xfs_btree_rec *, __uint64_t *, | ||
202 | __uint64_t *, __uint64_t *); | ||
203 | #endif | ||
185 | }; | 204 | }; |
186 | 205 | ||
187 | /* | 206 | /* |