* the date and time will be used for the directory name.
*
* This is a blocking call meaning that it will return only if the snapshot is
- * completed or an error occured. For now, no-wait is not supported but we keep
+ * completed or an error occurred. For now, no-wait is not supported but we keep
* a parameter for that future case. The wait param is ignored.
*
* Return 0 on success or else a negative LTTNG_ERR* code.
LTTNG_ERR_PID_TRACKED = 114, /* PID already tracked */
LTTNG_ERR_PID_NOT_TRACKED = 115, /* PID not tracked */
LTTNG_ERR_INVALID_CHANNEL_DOMAIN = 116, /* Invalid channel domain */
- LTTNG_ERR_OVERFLOW = 117, /* Overflow occured. */
+ LTTNG_ERR_OVERFLOW = 117, /* Overflow occurred. */
LTTNG_ERR_SESSION_NOT_STARTED = 118, /* Session not started */
LTTNG_ERR_LIVE_SESSION = 119, /* Live session unsupported */
LTTNG_ERR_PER_PID_SESSION = 120, /* Per-PID sessions unsupported */
ret = delete_dir_recursive(subpath);
free(subpath);
if (ret) {
- /* Error occured, abort traversal. */
+ /* Error occurred, abort traversal. */
goto end;
}
} else if (S_ISREG(st.st_mode)) {
ret = ret ? ret : LTTNG_ERR_MI_IO_FAIL;
}
- /* Overwrite ret if an error occured in disable_events */
+ /* Overwrite ret if an error occurred in disable_events */
ret = command_ret ? command_ret : ret;
poptFreeContext(pc);
ret = ret ? ret : LTTNG_ERR_MI_IO_FAIL;
}
- /* Overwrite ret if an error occured during set_session() */
+ /* Overwrite ret if an error occurred during set_session() */
ret = command_ret ? command_ret : ret;
poptFreeContext(pc);
free(session_name);
}
- /* Overwrite ret if an error occured during handle_command */
+ /* Overwrite ret if an error occurred during handle_command */
ret = command_ret ? command_ret : ret;
poptFreeContext(pc);
return ret;
* "", only the global entries are relayed.
*
* Returns 0 on success. Negative values are error codes. If the return value
- * is positive, it represents the line number on which a parsing error occured.
+ * is positive, it represents the line number on which a parsing error occurred.
*/
LTTNG_HIDDEN
int config_get_section_entries(const char *path, const char *section,
len = ctx->on_buffer_ready(stream, ctx);
/*
* We don't check the return value here since if we get
- * a negative len, it means an error occured thus we
+ * a negative len, it means an error occurred thus we
* simply remove it from the poll set and free the
* stream.
*/
len = ctx->on_buffer_ready(stream, ctx);
/*
* We don't check the return value here since if we get
- * a negative len, it means an error occured thus we
+ * a negative len, it means an error occurred thus we
* simply remove it from the poll set and free the
* stream.
*/
[ ERROR_INDEX(LTTNG_ERR_PID_TRACKED) ] = "PID already tracked",
[ ERROR_INDEX(LTTNG_ERR_PID_NOT_TRACKED) ] = "PID not tracked",
[ ERROR_INDEX(LTTNG_ERR_INVALID_CHANNEL_DOMAIN) ] = "Invalid channel domain",
- [ ERROR_INDEX(LTTNG_ERR_OVERFLOW) ] = "Overflow occured",
+ [ ERROR_INDEX(LTTNG_ERR_OVERFLOW) ] = "Overflow occurred",
[ ERROR_INDEX(LTTNG_ERR_SESSION_NOT_STARTED) ] = "Session not started",
[ ERROR_INDEX(LTTNG_ERR_LIVE_SESSION) ] = "Live sessions are not supported",
[ ERROR_INDEX(LTTNG_ERR_PER_PID_SESSION) ] = "Per-PID tracing sessions are not supported",
}
if (discarded < stream->last_discarded_events) {
/*
- * Overflow has occured. We assume only one wrap-around
- * has occured.
+ * Overflow has occurred. We assume only one wrap-around
+ * has occurred.
*/
stream->chan->discarded_events += (1ULL << (CAA_BITS_PER_LONG - 1)) -
stream->last_discarded_events + discarded;
* Upon success, they return the "count" received as parameter.
* They can return a negative value if an error occurs.
* If a value lower than the requested "count" is returned, it means an
- * error occured.
+ * error occurred.
* The error can be checked by querying errno.
*/
LTTNG_HIDDEN
* Upon success, they return the "count" received as parameter.
* They can return a negative value if an error occurs.
* If a value lower than the requested "count" is returned, it means an
- * error occured.
+ * error occurred.
* The error can be checked by querying errno.
*/
LTTNG_HIDDEN
}
if (discarded < stream->last_discarded_events) {
/*
- * Overflow has occured. We assume only one wrap-around
- * has occured.
+ * Overflow has occurred. We assume only one wrap-around
+ * has occurred.
*/
stream->chan->discarded_events +=
(1ULL << (CAA_BITS_PER_LONG - 1)) -