[lttng-dev] User Space Tracing

2018-09-27 Thread John O'Sullivan
I am really struggling trying to get user space tracing working predictably and consistently and would appreciate some help. I created a trace event called kvm_server:new_connection_tracepoint (see attached), I then use lttng-gen-tp to generate the .c and .h files which I link to the program a

Re: [lttng-dev] User Space Tracing

2018-09-27 Thread Philippe Proulx
In `resolution_management_tp.tp`, can you try using the exact same `TP_ARGS` content for both `TRACEPOINT_EVENT_INSTANCE` (also matching the `TP_ARGS` content of `TRACEPOINT_EVENT_CLASS`)? It's the only difference I can see. Philippe Proulx Philippe Proulx On Thu, Sep 27, 2018 at 12:15 PM John O

Re: [lttng-dev] User Space Tracing

2018-09-27 Thread Mathieu Desnoyers
Good catch Philippe, I pushed a commit that enforces validation of event class/instance prototypes (TP_ARGS()) at compile-time. It is pushed into lttng-ust master as: commit c75c0422c64f33c0102e1778cecc812c58b700e5 Author: Mathieu Desnoyers Date: Thu Sep 27 15:21:16 2018 -0400 Fix: check