Ignore:
Timestamp:
Apr 25, 2007, 9:44:55 AM (14 years ago)
Author:
Paul Smedley
Message:

Code updated to Samba 3.0.25rc2 level

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/samba/source/smbd/server.c

    r1 r30  
    839839        static BOOL log_stdout = False;
    840840        static char *ports = NULL;
     841        static char *profile_level = NULL;
    841842        int opt;
    842843        poptContext pc;
     
    851852        {"build-options", 'b', POPT_ARG_NONE, NULL, 'b', "Print build options" },
    852853        {"port", 'p', POPT_ARG_STRING, &ports, 0, "Listen on the specified ports"},
     854        {"profiling-level", 'P', POPT_ARG_STRING, &profile_level, 0, "Set profiling level","PROFILE_LEVEL"},
    853855        POPT_COMMON_SAMBA
    854856        POPT_COMMON_DYNCONFIG
     
    982984                return -1;
    983985        }
     986        if (profile_level != NULL) {
     987                int pl = atoi(profile_level);
     988                struct process_id src;
     989
     990                DEBUG(1, ("setting profiling level: %s\n",profile_level));
     991                src.pid = getpid();
     992                set_profile_level(pl, src);
     993        }
    984994#endif
    985995
Note: See TracChangeset for help on using the changeset viewer.