浏览代码

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 年之前
父节点
当前提交
ea9a48881e
共有 1 个文件被更改,包括 501 次插入456 次删除
  1. 501 456
      fs/xfs/linux-2.6/xfs_trace.h

文件差异内容过多而无法显示
+ 501 - 456
fs/xfs/linux-2.6/xfs_trace.h


部分文件因为文件数量过多而无法显示