projects
/
lttng-ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Refactoring: context structures
[lttng-ust.git]
/
tests
/
compile
/
test-app-ctx
/
hello.c
diff --git
a/tests/compile/test-app-ctx/hello.c
b/tests/compile/test-app-ctx/hello.c
index 3d026095039091c6610e00557303c3ee3c9c78b2..20df12db0e80bb4b0d2cc001d7f8e04c4e6de180 100644
(file)
--- a/
tests/compile/test-app-ctx/hello.c
+++ b/
tests/compile/test-app-ctx/hello.c
@@
-41,7
+41,7
@@
void test_inc_count(void)
}
static
}
static
-size_t test_get_size(struct lttng_ctx_field *field, size_t offset)
+size_t test_get_size(struct lttng_
ust_
ctx_field *field, size_t offset)
{
int sel = test_count % _NR_LTTNG_UST_DYNAMIC_TYPES;
size_t size = 0;
{
int sel = test_count % _NR_LTTNG_UST_DYNAMIC_TYPES;
size_t size = 0;
@@
-102,7
+102,7
@@
size_t test_get_size(struct lttng_ctx_field *field, size_t offset)
}
static
}
static
-void test_record(struct lttng_ctx_field *field,
+void test_record(struct lttng_
ust_
ctx_field *field,
struct lttng_ust_lib_ring_buffer_ctx *ctx,
struct lttng_channel *chan)
{
struct lttng_ust_lib_ring_buffer_ctx *ctx,
struct lttng_channel *chan)
{
@@
-206,8
+206,8
@@
void test_record(struct lttng_ctx_field *field,
}
static
}
static
-void test_get_value(struct lttng_ctx_field *field,
- struct lttng_ctx_value *value)
+void test_get_value(struct lttng_
ust_
ctx_field *field,
+ struct lttng_
ust_
ctx_value *value)
{
int sel = test_count % _NR_LTTNG_UST_DYNAMIC_TYPES;
{
int sel = test_count % _NR_LTTNG_UST_DYNAMIC_TYPES;
@@
-254,6
+254,7
@@
void test_get_value(struct lttng_ctx_field *field,
}
struct lttng_ust_context_provider myprovider = {
}
struct lttng_ust_context_provider myprovider = {
+ .struct_size = sizeof(struct lttng_ust_context_provider),
.name = "$app.myprovider",
.get_size = test_get_size,
.record = test_record,
.name = "$app.myprovider",
.get_size = test_get_size,
.record = test_record,
This page took
0.027277 seconds
and
4
git commands to generate.