X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=hello%2Fhello.c;h=0735fd6b6004a518d2c37f11c11623c2d97f2d3f;hb=59b161cdfcaad93fee295add37090a3d991e7aa8;hp=990a7fa36041ee47211f4c2a34cd42a58b138295;hpb=183646e613012a150edf2aa814e9bc44fd67e089;p=ust.git diff --git a/hello/hello.c b/hello/hello.c index 990a7fa..0735fd6 100644 --- a/hello/hello.c +++ b/hello/hello.c @@ -1,9 +1,23 @@ #include #include +#include "../libmarkers/marker.h" + +void probe(const struct marker *mdata, + void *probe_private, void *call_private, + const char *fmt, va_list *args) +{ + printf("In probe\n"); +} + int main() { printf("Hello, World!\n"); + + marker_probe_register("abc", "testmark", "", probe, NULL); + + trace_mark(abc, testmark, "", MARK_NOARGS); + scanf("%*s"); return 0;