]> git.apps.os.sepia.ceph.com Git - xfsprogs-dev.git/commit
xfs: consolidate btree block allocation tracepoints
authorDarrick J. Wong <djwong@kernel.org>
Mon, 22 Apr 2024 17:00:56 +0000 (10:00 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Mon, 3 Jun 2024 18:37:37 +0000 (11:37 -0700)
commit600309797414b8d67a931dee9a5ae5ab5a271cb2
tree111d39017837531c8e0cd37f5bbbf1a7946fecc1
parent4f05dd7f1ffd8518763a0bb9a659af3e91b33639
xfs: consolidate btree block allocation tracepoints

Source kernel commit: 2ed0b2c7f33159825af1a1a83face66edb52348a

Don't waste tracepoint segment memory on per-btree block allocation
tracepoints when we can do it from the generic btree code.

With this patch applied, two tracepoints are collapsed into one
tracepoint, with the following effects on objdump -hx xfs.ko output:

Before:

10 __tracepoints_ptrs 00000b38  0000000000000000  0000000000000000  001412f0  2**2
14 __tracepoints_strings 00005433  0000000000000000  0000000000000000  001689a0  2**5
29 __tracepoints 00010d30  0000000000000000  0000000000000000  0023fe00  2**5

After:

10 __tracepoints_ptrs 00000b34  0000000000000000  0000000000000000  001417b0  2**2
14 __tracepoints_strings 00005413  0000000000000000  0000000000000000  00168e80  2**5
29 __tracepoints 00010cd0  0000000000000000  0000000000000000  00240760  2**5

Column 3 is the section size in bytes; removing these two tracepoints
reduces the size of the ELF segments by 132 bytes.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Carlos Maiolino <cmaiolino@redhat.com>
include/xfs_trace.h
libxfs/xfs_btree.c
libxfs/xfs_refcount_btree.c
libxfs/xfs_rmap_btree.c