add statistics of io-size and use macro to reduce code redundancy for seq_file