[lttng-dev] Question about how to retrieve ip value of a syscall

Mathieu Desnoyers mathieu.desnoyers at efficios.com
Wed Sep 10 11:12:11 EDT 2014


----- Original Message -----

> From: "tarek slaymia" <tarek.slaymia at gmail.com>
> To: lttng-dev-request at lists.lttng.org, lttng-dev at lists.lttng.org
> Sent: Wednesday, August 20, 2014 7:15:21 PM
> Subject: [lttng-dev] Question about how to retrieve ip value of a syscall

> Hi all ,
> i tried to implement an event in statedump in order to compare the runtime
> syscall address and the syscall symbol address ( the same address displayed
> in ip field when i use lttng kprobe ).

> did you know how can i retrieve the syscall symbol value using my function in
> lttng-statedump-impl.c file ?
> i have an other issue when i tried to list all kernel event , the new event
> that i add in lttng-module isn't displayed . did i miss something ?

> you find in attachment the additional code .

Does the printk within lttng_enumerate_syscall_address_list() 
print anything on the console when you start tracing ? 

Try adding printk in your code to see what is happening. It's not executed often, 
so it should be easy to understand what is going wrong by adding printk statements. 

Thanks, 

Mathieu 

> BR

> _______________________________________________
> lttng-dev mailing list
> lttng-dev at lists.lttng.org
> http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

-- 
Mathieu Desnoyers 
EfficiOS Inc. 
http://www.efficios.com 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lttng.org/pipermail/lttng-dev/attachments/20140910/0dd09c78/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lttng-statedump.h
Type: text/x-chdr
Size: 5308 bytes
Desc: not available
URL: <http://lists.lttng.org/pipermail/lttng-dev/attachments/20140910/0dd09c78/attachment-0001.h>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lttng-statedump-impl.c
Type: text/x-c++src
Size: 16883 bytes
Desc: not available
URL: <http://lists.lttng.org/pipermail/lttng-dev/attachments/20140910/0dd09c78/attachment-0001.c>


More information about the lttng-dev mailing list