projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: Add vpid, vppid and vtid info in add-context help
[lttng-tools.git]
/
src
/
bin
/
lttng-sessiond
/
save.c
diff --git
a/src/bin/lttng-sessiond/save.c
b/src/bin/lttng-sessiond/save.c
index fd6c5d894e6f9a7ef099ba3a01088bb114bd870b..8afdbb5002bcb9a7e0bf8ef1d3871ed6e1c7d300 100644
(file)
--- a/
src/bin/lttng-sessiond/save.c
+++ b/
src/bin/lttng-sessiond/save.c
@@
-25,7
+25,6
@@
#include <common/defaults.h>
#include <common/error.h>
#include <common/config/config.h>
#include <common/defaults.h>
#include <common/error.h>
#include <common/config/config.h>
-#include <common/config/config-session-internal.h>
#include <common/utils.h>
#include <common/runas.h>
#include <lttng/save-internal.h>
#include <common/utils.h>
#include <common/runas.h>
#include <lttng/save-internal.h>
@@
-259,8
+258,12
@@
const char *get_ust_context_type_string(
case LTTNG_UST_CONTEXT_PTHREAD_ID:
context_type_string = config_event_context_pthread_id;
break;
case LTTNG_UST_CONTEXT_PTHREAD_ID:
context_type_string = config_event_context_pthread_id;
break;
+ case LTTNG_UST_CONTEXT_PERF_THREAD_COUNTER:
+ context_type_string = config_event_context_perf_thread_counter;
+ break;
default:
context_type_string = NULL;
default:
context_type_string = NULL;
+ break;
}
return context_type_string;
}
return context_type_string;
@@
-679,7
+682,7
@@
int save_kernel_context(struct config_writer *writer,
goto end;
}
goto end;
}
- if (ctx->ctx == LTTNG_KERNEL_CONTEXT_PERF_COUNTER) {
+ if (ctx->ctx == LTTNG_KERNEL_CONTEXT_PERF_C
PU_C
OUNTER) {
ret = config_writer_open_element(writer, config_element_perf);
if (ret) {
ret = LTTNG_ERR_SAVE_IO_FAIL;
ret = config_writer_open_element(writer, config_element_perf);
if (ret) {
ret = LTTNG_ERR_SAVE_IO_FAIL;
@@
-1478,7
+1481,8
@@
int save_session(struct ltt_session *session,
config_file_path[len] = '\0';
if (!access(config_file_path, F_OK) && !attr->overwrite) {
config_file_path[len] = '\0';
if (!access(config_file_path, F_OK) && !attr->overwrite) {
- /* A file with the same name already exists, skip */
+ /* File exists, notify the user since the overwrite flag is off. */
+ ret = LTTNG_ERR_SAVE_FILE_EXIST;
goto end;
}
goto end;
}
@@
-1523,7
+1527,7
@@
int save_session(struct ltt_session *session,
}
ret = config_writer_write_element_bool(writer, config_element_started,
}
ret = config_writer_write_element_bool(writer, config_element_started,
- session->
enabled
);
+ session->
active
);
if (ret) {
ret = LTTNG_ERR_SAVE_IO_FAIL;
goto end;
if (ret) {
ret = LTTNG_ERR_SAVE_IO_FAIL;
goto end;
This page took
0.025172 seconds
and
4
git commands to generate.