projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Implement lttng-mi for userspace-probe
[lttng-tools.git]
/
tests
/
unit
/
test_kernel_data.c
diff --git
a/tests/unit/test_kernel_data.c
b/tests/unit/test_kernel_data.c
index 6a35ea54a602489df1d35df9995a6f6cad5f8a14..412e4004f9d09fcea583d2a79a5dba773f974bf7 100644
(file)
--- a/
tests/unit/test_kernel_data.c
+++ b/
tests/unit/test_kernel_data.c
@@
-38,6
+38,7
@@
int lttng_opt_quiet = 1;
int lttng_opt_verbose;
int lttng_opt_mi;
int lttng_opt_quiet = 1;
int lttng_opt_verbose;
int lttng_opt_mi;
+struct notification_thread_handle *notification_thread_handle;
int ust_consumerd32_fd;
int ust_consumerd64_fd;
int ust_consumerd32_fd;
int ust_consumerd64_fd;
@@
-115,8
+116,11
@@
static void test_create_kernel_channel(void)
{
struct ltt_kernel_channel *chan;
struct lttng_channel attr;
{
struct ltt_kernel_channel *chan;
struct lttng_channel attr;
+ struct lttng_channel_extended extended;
memset(&attr, 0, sizeof(attr));
memset(&attr, 0, sizeof(attr));
+ memset(&extended, 0, sizeof(extended));
+ attr.attr.extended.ptr = &extended;
chan = trace_kernel_create_channel(&attr);
ok(chan != NULL, "Create kernel channel");
chan = trace_kernel_create_channel(&attr);
ok(chan != NULL, "Create kernel channel");
@@
-139,6
+143,7
@@
static void test_create_kernel_channel(void)
static void test_create_kernel_event(void)
{
static void test_create_kernel_event(void)
{
+ enum lttng_error_code ret;
struct ltt_kernel_event *event;
struct lttng_event ev;
struct ltt_kernel_event *event;
struct lttng_event ev;
@@
-149,8
+154,8
@@
static void test_create_kernel_event(void)
ev.type = LTTNG_EVENT_TRACEPOINT;
ev.loglevel_type = LTTNG_EVENT_LOGLEVEL_ALL;
ev.type = LTTNG_EVENT_TRACEPOINT;
ev.loglevel_type = LTTNG_EVENT_LOGLEVEL_ALL;
-
event = trace_kernel_create_event(&ev, NULL, NULL
);
- ok(
event != NULL
, "Create kernel event");
+
ret = trace_kernel_create_event(&ev, NULL, NULL, &event
);
+ ok(
ret == LTTNG_OK
, "Create kernel event");
if (!event) {
skip(1, "Event is null");
if (!event) {
skip(1, "Event is null");
This page took
0.02379 seconds
and
4
git commands to generate.