const struct lttng_directory_handle *chunk_directory_handle;
int chunk_dirfd;
const char *chunk_name;
- bool chunk_name_overriden;
+ bool chunk_name_overridden;
uint64_t chunk_id;
time_t creation_timestamp;
char creation_timestamp_buffer[ISO8601_STR_LEN];
}
chunk_status = lttng_trace_chunk_get_name(chunk, &chunk_name,
- &chunk_name_overriden);
+ &chunk_name_overridden);
if (chunk_status != LTTNG_TRACE_CHUNK_STATUS_OK &&
chunk_status != LTTNG_TRACE_CHUNK_STATUS_NONE) {
ERR("Failed to get name of trace chunk");
ret = -LTTNG_ERR_FATAL;
goto error;
}
- if (chunk_name_overriden) {
+ if (chunk_name_overridden) {
ret = lttng_strncpy(msg.u.create_trace_chunk.override_name,
chunk_name,
sizeof(msg.u.create_trace_chunk.override_name));
time_t creation_timestamp;
const char *chunk_name;
size_t chunk_name_length;
- bool overriden_name;
+ bool overridden_name;
lttng_dynamic_buffer_init(&payload);
}
status = lttng_trace_chunk_get_name(
- chunk, &chunk_name, &overriden_name);
+ chunk, &chunk_name, &overridden_name);
if (status != LTTNG_TRACE_CHUNK_STATUS_OK &&
status != LTTNG_TRACE_CHUNK_STATUS_NONE) {
ret = -1;
goto end;
}
- chunk_name_length = overriden_name ? (strlen(chunk_name) + 1) : 0;
+ chunk_name_length = overridden_name ? (strlen(chunk_name) + 1) : 0;
msg = (typeof(msg)){
.chunk_id = htobe64(chunk_id),
.creation_timestamp = htobe64((uint64_t) creation_timestamp),
* (relayd_id unset).
*
* `override_name` is left NULL (all-zeroes) if the
- * chunk's name is not overriden.
+ * chunk's name is not overridden.
*/
LTTNG_OPTIONAL_COMM(uint64_t) LTTNG_PACKED relayd_id;
char override_name[LTTNG_NAME_MAX];
struct lttng_dynamic_pointer_array top_level_directories;
/* Is contained within an lttng_trace_chunk_registry_element? */
bool in_registry_element;
- bool name_overriden;
+ bool name_overridden;
char *name;
/* An unset id means the chunk is anonymous. */
LTTNG_OPTIONAL(uint64_t) id;
LTTNG_HIDDEN
enum lttng_trace_chunk_status lttng_trace_chunk_get_name(
struct lttng_trace_chunk *chunk, const char **name,
- bool *name_overriden)
+ bool *name_overridden)
{
enum lttng_trace_chunk_status status = LTTNG_TRACE_CHUNK_STATUS_OK;
pthread_mutex_lock(&chunk->lock);
- if (name_overriden) {
- *name_overriden = chunk->name_overriden;
+ if (name_overridden) {
+ *name_overridden = chunk->name_overridden;
}
if (!chunk->name) {
status = LTTNG_TRACE_CHUNK_STATUS_NONE;
}
free(chunk->name);
chunk->name = new_name;
- chunk->name_overriden = true;
+ chunk->name_overridden = true;
end_unlock:
pthread_mutex_unlock(&chunk->lock);
end:
}
assert(trace_chunk->mode.value == TRACE_CHUNK_MODE_OWNER);
- assert(!trace_chunk->name_overriden);
+ assert(!trace_chunk->name_overridden);
/*
* The fist trace chunk of a session is directly output to the
LTTNG_HIDDEN
enum lttng_trace_chunk_status lttng_trace_chunk_get_name(
struct lttng_trace_chunk *chunk, const char **name,
- bool *name_overriden);
+ bool *name_overridden);
LTTNG_HIDDEN
enum lttng_trace_chunk_status lttng_trace_chunk_override_name(