--- /dev/null
+<samba:parameter name="smbd profiling level"
+ context="G"
+ type="enum"
+ xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
+<description>
+ <para>
+ This parameter allows the administrator to enable profiling support.
+ </para>
+ <para>
+ Possible values are <constant>off</constant>,
+ <constant>count</constant> and <constant>on</constant>.
+ </para>
+</description>
+<value type="default">off</value>
+<value type="example">on</value>
+</samba:parameter>
lpcfg_do_global_parameter(lp_ctx, "keepalive", "300");
+ lpcfg_do_global_parameter(lp_ctx, "smbd profiling level", "off");
+
lpcfg_do_global_parameter(lp_ctx, "winbind cache time", "300");
lpcfg_do_global_parameter(lp_ctx, "level2 oplocks", "yes");
{-1, NULL}
};
+static const struct enum_list enum_smbd_profiling_level[] = {
+ {0, "off"}, {1, "count"}, {2, "on"}, {-1, NULL}
+};
+
/* ADS kerberos ticket verification options */
.enum_list = NULL,
.flags = FLAG_ADVANCED,
},
+ {
+ .label = "smbd profiling level",
+ .type = P_ENUM,
+ .p_class = P_GLOBAL,
+ .offset = GLOBAL_VAR(smbd_profiling_level),
+ .special = NULL,
+ .enum_list = enum_smbd_profiling_level,
+ .flags = FLAG_ADVANCED,
+ },
{
.label = "profile acls",
.type = P_BOOL,
Globals.passwd_chat_timeout = 2; /* 2 second default. */
Globals.nt_pipe_support = true; /* Do NT pipes by default. */
Globals.nt_status_support = true; /* Use NT status by default. */
+ Globals.smbd_profiling_level = 0;
Globals.stat_cache = true; /* use stat cache by default */
Globals.max_stat_cache_size = 256; /* 256k by default */
Globals.restrict_anonymous = 0;