[lttng-dev] [PATCH lttng-ust] Add trace instrumentation for some pthread functions.

Stefan Seefeld stefan_seefeld at mentor.com
Wed Aug 7 09:14:19 EDT 2013


Mathieu,

please find attached a revised patch.

On 08/06/2013 09:32 PM, Mathieu Desnoyers wrote:
>
> +#include <lttng/tracepoint.h>
> +
> +TRACEPOINT_EVENT(ust_pthread, pthread_mutex_lock_req,
> +	TP_ARGS(pthread_mutex_t *, mutex),
> +	TP_FIELDS(
> +		ctf_integer_hex(unsigned long, mutex, (unsigned long) mutex)
> I'm curious (and I honestly don't remember): does it work if we put
> "void *" as type rather than "unsigned long" here ?

It seems to work fine - I applied the suggested change (see the current
patch) and I see the same traces.

    Stefan

-- 
Stefan Seefeld
CodeSourcery / Mentor Graphics
http://www.mentor.com/embedded-software/

-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch
Type: text/x-patch
Size: 7548 bytes
Desc: not available
URL: <http://lists.lttng.org/pipermail/lttng-dev/attachments/20130807/a272e684/attachment.bin>


More information about the lttng-dev mailing list