projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Cleanup: always use sysconf to get the page size
[lttng-tools.git]
/
src
/
bin
/
lttng
/
commands
/
create.c
diff --git
a/src/bin/lttng/commands/create.c
b/src/bin/lttng/commands/create.c
index 22d1790f726f6fed25df5f7d43082fe81d3e034e..b266c10a9397a8e250c0c156a5d7e2fef547db46 100644
(file)
--- a/
src/bin/lttng/commands/create.c
+++ b/
src/bin/lttng/commands/create.c
@@
-7,7
+7,6
@@
*/
#define _LGPL_SOURCE
*/
#define _LGPL_SOURCE
-#include <assert.h>
#include <ctype.h>
#include <popt.h>
#include <stdio.h>
#include <ctype.h>
#include <popt.h>
#include <stdio.h>
@@
-89,8
+88,8
@@
static int mi_created_session(const char *session_name)
struct lttng_session *sessions;
/* session_name should not be null */
struct lttng_session *sessions;
/* session_name should not be null */
-
assert
(session_name);
-
assert
(writer);
+
LTTNG_ASSERT
(session_name);
+
LTTNG_ASSERT
(writer);
count = lttng_list_sessions(&sessions);
if (count < 0) {
count = lttng_list_sessions(&sessions);
if (count < 0) {
@@
-132,7
+131,6
@@
end:
static
struct lttng_session_descriptor *create_session_descriptor(void)
{
static
struct lttng_session_descriptor *create_session_descriptor(void)
{
- int ret;
ssize_t uri_count;
enum output_type output_type;
struct lttng_uri *uris = NULL;
ssize_t uri_count;
enum output_type output_type;
struct lttng_uri *uris = NULL;
@@
-144,6
+142,7
@@
struct lttng_session_descriptor *create_session_descriptor(void)
output_type = OUTPUT_NONE;
} else if (opt_output_path) {
char *expanded_output_path;
output_type = OUTPUT_NONE;
} else if (opt_output_path) {
char *expanded_output_path;
+ int ret;
output_type = OUTPUT_LOCAL;
expanded_output_path = utils_expand_path(opt_output_path);
output_type = OUTPUT_LOCAL;
expanded_output_path = utils_expand_path(opt_output_path);
@@
-160,6
+159,8
@@
struct lttng_session_descriptor *create_session_descriptor(void)
goto end;
}
} else if (opt_url || opt_ctrl_url) {
goto end;
}
} else if (opt_url || opt_ctrl_url) {
+ int ret;
+
uri_str1 = opt_ctrl_url ? opt_ctrl_url : opt_url;
uri_str2 = opt_data_url;
uri_str1 = opt_ctrl_url ? opt_ctrl_url : opt_url;
uri_str2 = opt_data_url;
This page took
0.024858 seconds
and
4
git commands to generate.