projects
/
lttng-ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
API refactoring: introduce probe context
[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 be63ecbc2dcfe1ef2a3c2af53a9ecbbc8f0674dc..85df998486c3c56f6d2a7980e9e4b88e97de75c5 100644
(file)
--- a/
tests/compile/test-app-ctx/hello.c
+++ b/
tests/compile/test-app-ctx/hello.c
@@
-25,7
+25,7
@@
struct mmsghdr;
#include <stdlib.h>
#include <stdbool.h>
#include <stdlib.h>
#include <stdbool.h>
-#define TRACEPOINT_DEFINE
+#define
LTTNG_UST_
TRACEPOINT_DEFINE
#include "ust_tests_hello.h"
#include <lttng/ust-events.h>
#include "ust_tests_hello.h"
#include <lttng/ust-events.h>
@@
-42,7
+42,9
@@
void test_inc_count(void)
}
static
}
static
-size_t test_get_size(void *priv __attribute__((unused)), size_t offset)
+size_t test_get_size(void *priv __attribute__((unused)),
+ struct lttng_ust_probe_ctx *probe_ctx __attribute__((unused)),
+ 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;
@@
-104,6
+106,7
@@
size_t test_get_size(void *priv __attribute__((unused)), size_t offset)
static
void test_record(void *priv __attribute__((unused)),
static
void test_record(void *priv __attribute__((unused)),
+ struct lttng_ust_probe_ctx *probe_ctx __attribute__((unused)),
struct lttng_ust_ring_buffer_ctx *ctx,
struct lttng_ust_channel_buffer *lttng_chan_buf)
{
struct lttng_ust_ring_buffer_ctx *ctx,
struct lttng_ust_channel_buffer *lttng_chan_buf)
{
@@
-197,6
+200,7
@@
void test_record(void *priv __attribute__((unused)),
static
void test_get_value(void *priv __attribute__((unused)),
static
void test_get_value(void *priv __attribute__((unused)),
+ struct lttng_ust_probe_ctx *probe_ctx __attribute__((unused)),
struct lttng_ust_ctx_value *value)
{
int sel = test_count % _NR_LTTNG_UST_DYNAMIC_TYPES;
struct lttng_ust_ctx_value *value)
{
int sel = test_count % _NR_LTTNG_UST_DYNAMIC_TYPES;
@@
-256,7
+260,7
@@
static
void inthandler(int sig __attribute__((unused)))
{
printf("in SIGUSR1 handler\n");
void inthandler(int sig __attribute__((unused)))
{
printf("in SIGUSR1 handler\n");
- tracepoint(ust_tests_hello, tptest_sighandler);
+
lttng_ust_
tracepoint(ust_tests_hello, tptest_sighandler);
}
static
}
static
@@
-314,7
+318,7
@@
int main(int argc, char **argv)
fprintf(stderr, "Tracing... ");
for (i = 0; i < 1000000; i++) {
netint = htonl(i);
fprintf(stderr, "Tracing... ");
for (i = 0; i < 1000000; i++) {
netint = htonl(i);
- tracepoint(ust_tests_hello, tptest, i, netint, values,
+
lttng_ust_
tracepoint(ust_tests_hello, tptest, i, netint, values,
text, strlen(text), dbl, flt, mybool);
test_inc_count();
//usleep(100000);
text, strlen(text), dbl, flt, mybool);
test_inc_count();
//usleep(100000);
This page took
0.024669 seconds
and
4
git commands to generate.