Bladeren bron

xfs: use DECLARE_EVENT_CLASS

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: Christoph Hellwig <hch@lst.de>
Signed-off-by: Alex Elder <aelder@sgi.com>
Christoph Hellwig 15 jaren geleden
bovenliggende
commit
ea9a48881e
1 gewijzigde bestanden met toevoegingen van 501 en 456 verwijderingen
  1. 501 456
      fs/xfs/linux-2.6/xfs_trace.h

File diff suppressed because it is too large
+ 501 - 456
fs/xfs/linux-2.6/xfs_trace.h


Some files were not shown because too many files changed in this diff