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

Stefan Seefeld stefan_seefeld at mentor.com
Wed Aug 7 10:05:27 EDT 2013


On 08/07/2013 09:14 AM, Stefan Seefeld wrote:
> 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.

Sorry, the patch was incomplete. Here is the complete one (including the
revised ust_pthread.h code.

    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: 7492 bytes
Desc: not available
URL: <http://lists.lttng.org/pipermail/lttng-dev/attachments/20130807/3bb956d2/attachment.bin>


More information about the lttng-dev mailing list