• Christoph Hellwig's avatar
    xfs: use DECLARE_EVENT_CLASS · ea9a4888
    Christoph Hellwig authored
    Using DECLARE_EVENT_CLASS allows us to to use trace event code
    instead of duplicating it in the binary.  This was not available
    before 2.6.33 so it had to be done as a separate step once the
    prerequisite was merged.
    
    This only requires changes to xfs_trace.h and the results are
    rather impressive:
    
    hch@brick:~/work/linux-2.6/obj-kvm$ size fs/xfs/xfs.o*
    text	   data	    bss	    dec	    hex	filename
     607732	  41884	   3616	 653232	  9f7b0	fs/xfs/xfs.o
    1026732	  41884	   3808	1072424	 105d28	fs/xfs/xfs.o.old
    Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
    Signed-off-by: default avatarAlex Elder <aelder@sgi.com>
    ea9a4888
xfs_trace.h 43.6 KB