Re: [PATCH 1/4] proc: add seq_put_decimal_ull_align to speed up /proc/pid/smaps

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Jan 29, 2018 at 10:10:42PM +0300, Alexey Dobriyan wrote:
> On Mon, Jan 29, 2018 at 12:00:40AM -0800, Andrei Vagin wrote:
> > seq_put_decimal_ull_align(m, str, val, width) is equivalent of
> > seq_printf(m, "%s%*d", str, width, val), but it works much faster.
> 
> It is called "minimum width", not alignment.

Yes, you are right. And it's used to align numbers in output files.

Maybe you could suggest a better name for this function?

Thanks,
Andrei



[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]

  Powered by Linux