X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=tests%2Fcompile%2Ftest-app-ctx%2Fhello.c;h=da347714d5d8fc68906bc38ebcc75ca1406bf9e2;hb=74c3f8e27f5b750b71136ce1737972c28f288540;hp=6e16b12fac871b19e011fc60f03a6433b6df0990;hpb=8936b6c0add7eb6706e0a1ca50e03c446dda4006;p=lttng-ust.git diff --git a/tests/compile/test-app-ctx/hello.c b/tests/compile/test-app-ctx/hello.c index 6e16b12f..da347714 100644 --- a/tests/compile/test-app-ctx/hello.c +++ b/tests/compile/test-app-ctx/hello.c @@ -35,6 +35,7 @@ struct mmsghdr; static __thread unsigned int test_count; +static void test_inc_count(void) { test_count++; @@ -242,20 +243,23 @@ void test_get_value(struct lttng_ust_ctx_field *field, } } +static char myprovider_name[] = "$app.myprovider"; struct lttng_ust_context_provider myprovider = { .struct_size = sizeof(struct lttng_ust_context_provider), - .name = "$app.myprovider", + .name = myprovider_name, .get_size = test_get_size, .record = test_record, .get_value = test_get_value, }; +static void inthandler(int sig) { printf("in SIGUSR1 handler\n"); tracepoint(ust_tests_hello, tptest_sighandler); } +static int init_int_handler(void) { int result; @@ -283,8 +287,6 @@ int init_int_handler(void) return 0; } -void test_inc_count(void); - int main(int argc, char **argv) { int i, netint;