projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
build: Add missing DEFINE_LTTNG_UST_SIGBUS_STATE();
[lttng-tools.git]
/
tests
/
regression
/
tools
/
live
/
live_test.c
diff --git
a/tests/regression/tools/live/live_test.c
b/tests/regression/tools/live/live_test.c
index ee75c04f7ade0e0044a9636d1360b21f0ecd6d4a..a9adc5946d967b9c606469b661912fd314917b41 100644
(file)
--- a/
tests/regression/tools/live/live_test.c
+++ b/
tests/regression/tools/live/live_test.c
@@
-6,7
+6,6
@@
*/
#include <assert.h>
*/
#include <assert.h>
-#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@
-24,6
+23,7
@@
#include <tap/tap.h>
#include <lttng/lttng.h>
#include <tap/tap.h>
#include <lttng/lttng.h>
+#include <lttng/ust-sigbus.h>
#include <urcu/list.h>
#include <common/common.h>
#include <urcu/list.h>
#include <common/common.h>
@@
-31,6
+31,7
@@
#include <bin/lttng-relayd/lttng-viewer-abi.h>
#include <common/index/ctf-index.h>
#include <bin/lttng-relayd/lttng-viewer-abi.h>
#include <common/index/ctf-index.h>
+#include <common/compat/errno.h>
#include <common/compat/endian.h>
#define SESSION1 "test1"
#include <common/compat/endian.h>
#define SESSION1 "test1"
@@
-41,6
+42,8
@@
#define NUM_TESTS 11
#define mmap_size 524288
#define NUM_TESTS 11
#define mmap_size 524288
+DEFINE_LTTNG_UST_SIGBUS_STATE();
+
static int control_sock;
struct live_session *session;
static int control_sock;
struct live_session *session;
@@
-97,7
+100,7
@@
ssize_t lttng_live_send(int fd, const void *buf, size_t len)
}
static
}
static
-int connect_viewer(char *hostname)
+int connect_viewer(c
onst c
har *hostname)
{
struct hostent *host;
struct sockaddr_in server_addr;
{
struct hostent *host;
struct sockaddr_in server_addr;
@@
-138,6
+141,7
@@
end:
return ret;
}
return ret;
}
+static
int establish_connection(void)
{
struct lttng_viewer_cmd cmd;
int establish_connection(void)
{
struct lttng_viewer_cmd cmd;
@@
-182,6
+186,7
@@
error:
/*
* Returns the number of sessions, should be 1 during the unit test.
*/
/*
* Returns the number of sessions, should be 1 during the unit test.
*/
+static
int list_sessions(uint64_t *session_id)
{
struct lttng_viewer_cmd cmd;
int list_sessions(uint64_t *session_id)
{
struct lttng_viewer_cmd cmd;
@@
-229,6
+234,7
@@
error:
return -1;
}
return -1;
}
+static
int create_viewer_session(void)
{
struct lttng_viewer_cmd cmd;
int create_viewer_session(void)
{
struct lttng_viewer_cmd cmd;
@@
-267,6
+273,7
@@
error:
return -1;
}
return -1;
}
+static
int attach_session(uint64_t id)
{
struct lttng_viewer_cmd cmd;
int attach_session(uint64_t id)
{
struct lttng_viewer_cmd cmd;
@@
-356,6
+363,7
@@
error:
return -1;
}
return -1;
}
+static
int get_metadata(void)
{
struct lttng_viewer_cmd cmd;
int get_metadata(void)
{
struct lttng_viewer_cmd cmd;
@@
-451,6
+459,7
@@
error:
return -1;
}
return -1;
}
+static
int get_next_index(void)
{
struct lttng_viewer_cmd cmd;
int get_next_index(void)
{
struct lttng_viewer_cmd cmd;
@@
-616,6
+625,7
@@
error:
return -1;
}
return -1;
}
+static
int detach_viewer_session(uint64_t id)
{
struct lttng_viewer_cmd cmd;
int detach_viewer_session(uint64_t id)
{
struct lttng_viewer_cmd cmd;
This page took
0.024543 seconds
and
4
git commands to generate.