#include "lib/util/sys_rw.h"
#include <sys/eventfd.h>
#include <libaio.h>
+#include "smbprofile.h"
static int event_fd = -1;
static io_context_t io_ctx;
piocb = &state->event_iocb;
- clock_gettime_mono(&state->start);
+ PROFILE_TIMESTAMP(&state->start);
ret = io_submit(io_ctx, 1, &piocb);
if (ret < 0) {
tevent_req_error(req, -ret);
piocb = &state->event_iocb;
- clock_gettime_mono(&state->start);
+ PROFILE_TIMESTAMP(&state->start);
ret = io_submit(io_ctx, 1, &piocb);
if (ret < 0) {
tevent_req_error(req, -ret);
piocb = &state->event_iocb;
- clock_gettime_mono(&state->start);
+ PROFILE_TIMESTAMP(&state->start);
ret = io_submit(io_ctx, 1, &piocb);
if (ret < 0) {
tevent_req_error(req, -ret);
DEBUG(10, ("aio_linux_done called with flags=%d\n",
(int)flags));
- clock_gettime_mono(&end);
+ PROFILE_TIMESTAMP(&end);
/* Read the number of events available. */
if (sys_read(event_fd, &num_events, sizeof(num_events)) !=