~ubuntu-branches/ubuntu/vivid/samba/vivid

« back to all changes in this revision

Viewing changes to source3/utils/status_profile.c

  • Committer: Package Import Robot
  • Author(s): Chuck Short
  • Date: 2011-12-21 13:18:04 UTC
  • mfrom: (0.39.21 sid)
  • Revision ID: package-import@ubuntu.com-20111221131804-xtlr39wx6njehxxr
Tags: 2:3.6.1-3ubuntu1
* Merge from Debian testing.  Remaining changes:
  + debian/patches/VERSION.patch:
    - set SAMBA_VERSION_SUFFIX to Ubuntu.
  + debian/patches/error-trans.fix-276472:
    - Add the translation of Unix Error code -ENOTSUP to NT Error Code
    - NT_STATUS_NOT_SUPPORTED to prevent the Permission denied error.
  + debian/smb.conf:
    - add "(Samba, Ubuntu)" to server string.
    - comment out the default [homes] share, and add a comment about
      "valid users = %S" to show users how to restrict access to
      \\server\username to only username.
    - Set 'usershare allow guests', so that usershare admins are 
      allowed to create public shares in addition to authenticated
      ones.
    - add map to guest = Bad user, maps bad username to guest access.
  + debian/samba-common.config:
    - Do not change priority to high if dhclient3 is installed.
    - Use priority medium instead of high for the workgroup question.
  + debian/control:
    - Don't build against or suggest ctdb.
    - Add dependency on samba-common-bin to samba.
  + Add ufw integration:
    - Created debian/samba.ufw.profile
    - debian/rules, debian/samba.dirs, debian/samba.files: install
      profile
    - debian/control: have samba suggest ufw
  + Add apport hook:
    - Created debian/source_samba.py.
    - debian/rules, debian/samba.dirs, debian/samba-common-bin.files: install
  + Switch to upstart:
    - Add debian/samba.{nmbd,smbd}.upstart.
  + debian/samba.logrotate, debian/samba-common.dhcp, debian/samba.if-up:
    - Make them upstart compatible
  + debian/samba.postinst: 
    - Avoid scary pdbedit warnings on first import.
  + debian/samba-common.postinst: Add more informative error message for
    the case where smb.conf was manually deleted
  + debian/patches/fix-debuglevel-name-conflict.patch: don't use 'debug_level'
    as a global variable name in an NSS module 
  + Dropped:
    - debian/patches/error-trans.fix-276472
    - debian/patches/fix-debuglevel-name-conflict.patch

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
 */
20
20
 
21
21
#include "includes.h"
 
22
#include "smbprofile.h"
22
23
 
23
24
bool status_profile_dump(bool be_verbose);
24
25
bool status_profile_rates(bool be_verbose);
57
58
        profile_separator("System Calls");
58
59
        d_printf("opendir_count:                  %u\n", profile_p->syscall_opendir_count);
59
60
        d_printf("opendir_time:                   %u\n", profile_p->syscall_opendir_time);
 
61
        d_printf("fdopendir_count:                %u\n", profile_p->syscall_fdopendir_count);
 
62
        d_printf("fdopendir_time:                 %u\n", profile_p->syscall_fdopendir_time);
60
63
        d_printf("readdir_count:                  %u\n", profile_p->syscall_readdir_count);
61
64
        d_printf("readdir_time:                   %u\n", profile_p->syscall_readdir_time);
62
65
        d_printf("mkdir_count:                    %u\n", profile_p->syscall_mkdir_count);
81
84
        d_printf("pwrite_count:                   %u\n", profile_p->syscall_pwrite_count);
82
85
        d_printf("pwrite_time:                    %u\n", profile_p->syscall_pwrite_time);
83
86
        d_printf("pwrite_bytes:                   %u\n", profile_p->syscall_pwrite_bytes);
84
 
#ifdef WITH_SENDFILE
85
87
        d_printf("sendfile_count:                 %u\n", profile_p->syscall_sendfile_count);
86
88
        d_printf("sendfile_time:                  %u\n", profile_p->syscall_sendfile_time);
87
89
        d_printf("sendfile_bytes:                 %u\n", profile_p->syscall_sendfile_bytes);
88
 
#endif
89
90
        d_printf("lseek_count:                    %u\n", profile_p->syscall_lseek_count);
90
91
        d_printf("lseek_time:                     %u\n", profile_p->syscall_lseek_time);
91
92
        d_printf("rename_count:                   %u\n", profile_p->syscall_rename_count);
400
401
        d_printf("run_elections_time:             %u\n", profile_p->run_elections_time);
401
402
        d_printf("election_count:                 %u\n", profile_p->election_count);
402
403
        d_printf("election_time:                  %u\n", profile_p->election_time);
 
404
        profile_separator("SMB2 Calls");
 
405
        d_printf("smb2_negprot_count:             %u\n", profile_p->smb2_negprot_count);
 
406
        d_printf("smb2_negprot_time:              %u\n", profile_p->smb2_negprot_time);
 
407
        d_printf("smb2_sesssetup_count:           %u\n", profile_p->smb2_sesssetup_count);
 
408
        d_printf("smb2_sesssetup_time:            %u\n", profile_p->smb2_sesssetup_time);
 
409
        d_printf("smb2_logoff_count:              %u\n", profile_p->smb2_logoff_count);
 
410
        d_printf("smb2_logoff_time:               %u\n", profile_p->smb2_logoff_time);
 
411
        d_printf("smb2_tcon_count:                %u\n", profile_p->smb2_tcon_count);
 
412
        d_printf("smb2_tcon_time:                 %u\n", profile_p->smb2_tcon_time);
 
413
        d_printf("smb2_tdis_count:                %u\n", profile_p->smb2_tdis_count);
 
414
        d_printf("smb2_tdis_time:                 %u\n", profile_p->smb2_tdis_time);
 
415
        d_printf("smb2_create_count:              %u\n", profile_p->smb2_create_count);
 
416
        d_printf("smb2_create_time:               %u\n", profile_p->smb2_create_time);
 
417
        d_printf("smb2_close_count:               %u\n", profile_p->smb2_close_count);
 
418
        d_printf("smb2_close_time:                %u\n", profile_p->smb2_close_time);
 
419
        d_printf("smb2_flush_count:               %u\n", profile_p->smb2_flush_count);
 
420
        d_printf("smb2_flush_time:                %u\n", profile_p->smb2_flush_time);
 
421
        d_printf("smb2_read_count:                %u\n", profile_p->smb2_read_count);
 
422
        d_printf("smb2_read_time:                 %u\n", profile_p->smb2_read_time);
 
423
        d_printf("smb2_write_count:               %u\n", profile_p->smb2_write_count);
 
424
        d_printf("smb2_write_time:                %u\n", profile_p->smb2_write_time);
 
425
        d_printf("smb2_lock_count:                %u\n", profile_p->smb2_lock_count);
 
426
        d_printf("smb2_lock_time:                 %u\n", profile_p->smb2_lock_time);
 
427
        d_printf("smb2_ioctl_count:               %u\n", profile_p->smb2_ioctl_count);
 
428
        d_printf("smb2_ioctl_time:                %u\n", profile_p->smb2_ioctl_time);
 
429
        d_printf("smb2_cancel_count:              %u\n", profile_p->smb2_cancel_count);
 
430
        d_printf("smb2_cancel_time:               %u\n", profile_p->smb2_cancel_time);
 
431
        d_printf("smb2_keepalive_count:           %u\n", profile_p->smb2_keepalive_count);
 
432
        d_printf("smb2_keepalive_time:            %u\n", profile_p->smb2_keepalive_time);
 
433
        d_printf("smb2_find_count:                %u\n", profile_p->smb2_find_count);
 
434
        d_printf("smb2_find_time:                 %u\n", profile_p->smb2_find_time);
 
435
        d_printf("smb2_notify_count:              %u\n", profile_p->smb2_notify_count);
 
436
        d_printf("smb2_notify_time:               %u\n", profile_p->smb2_notify_time);
 
437
        d_printf("smb2_getinfo_count:             %u\n", profile_p->smb2_getinfo_count);
 
438
        d_printf("smb2_getinfo_time:              %u\n", profile_p->smb2_getinfo_time);
 
439
        d_printf("smb2_setinfo_count:             %u\n", profile_p->smb2_setinfo_count);
 
440
        d_printf("smb2_setinfo_time:              %u\n", profile_p->smb2_setinfo_time);
 
441
        d_printf("smb2_break_count:               %u\n", profile_p->smb2_break_count);
 
442
        d_printf("smb2_break_time:                %u\n", profile_p->smb2_break_time);
 
443
 
403
444
#else /* WITH_PROFILE */
 
445
 
404
446
        fprintf(stderr, "Profile data unavailable\n");
405
447
#endif /* WITH_PROFILE */
406
448