It will need access to its fields soon.
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
#include <tdb.h>
#include "lib/util/time.h"
+struct smbd_server_connection;
struct tevent_context;
#ifdef WITH_PROFILE
return true;
}
-void smbprofile_dump(void);
+void smbprofile_dump(struct smbd_server_connection *sconn);
void smbprofile_cleanup(pid_t pid, pid_t dst);
void smbprofile_stats_accumulate(struct profile_stats *acc,
return;
}
-static inline void smbprofile_dump(void)
+static inline void smbprofile_dump(struct smbd_server_connection *sconn)
{
return;
}
struct timeval current_time,
void *private_data)
{
- smbprofile_dump();
+ smbprofile_dump(NULL);
}
void smbprofile_dump_schedule_timer(void)
return 0;
}
-void smbprofile_dump(void)
+void smbprofile_dump(struct smbd_server_connection *sconn)
{
pid_t pid = 0;
TDB_DATA key = { .dptr = (uint8_t *)&pid, .dsize = sizeof(pid) };
client = NULL;
netlogon_creds_cli_close_global_db();
TALLOC_FREE(global_smbXsrv_client);
- smbprofile_dump();
+ smbprofile_dump(NULL);
global_messaging_context_free();
global_event_context_free();
TALLOC_FREE(smbd_memcache_ctx);
* We need to flush our state after sleeping
* (hopefully a long time).
*/
- smbprofile_dump();
+ smbprofile_dump(NULL);
/*
* future profiling events should trigger timers
* on our main event context.