sendfile profiling patch for utils/status.c

Gerald Carter jerry at samba.org
Mon Oct 7 15:39:00 GMT 2002


On Thu, 3 Oct 2002, Pierre Belanger wrote:

> Hello all,
> 
> I'm including a "tiny patch" for utils/status.c , in
> diff -u format ... Hope I did this right!
> 
> After applying the patch...
> 
>   # ./bin/smbstatus -P
>   {snip}
>   read_bytes:                     0
>   write_count:                    1
>   write_time:                     166
>   write_bytes:                    54
>   sendfile_count:                 4
>   sendfile_time:                  16262
>   sendfile_bytes:                 20480
>   lseek_count:                    2
>   lseek_time:                     18
>   rename_count:                   0
>   {snip}
> 
> The patch is attached in the mail. Fell free to all the
> required "printf" where I add them, after the write_bytes,
> or anywhere else...

Looks good to me.  Applied to Samba-2.2




jerry
 ---------------------------------------------------------------------
 Hewlett-Packard                                     http://www.hp.com
 SAMBA Team                                       http://www.samba.org
 --                                            http://www.plainjoe.org
 "SAMS Teach Yourself Samba in 24 Hours" 2ed.       ISBN 0-672-32269-2
 --"I never saved anything for the swim back." Ethan Hawk in Gattaca--




More information about the samba-technical mailing list