<div dir="ltr"><div><div>Hi,<br><br></div>can we retrieve kernel data structures addresses or contents using LTTng ?<br><br></div>regards.<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/6/23 Mathieu Desnoyers <span dir="ltr"><<a href="mailto:mathieu.desnoyers@efficios.com" target="_blank">mathieu.desnoyers@efficios.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">* Jessica Foest (<a href="mailto:jessica.foest@gmail.com">jessica.foest@gmail.com</a>) wrote:<br>
> Hi,<br>
> i tried to apply kprobe to a system call , so i used probe and function<br>
> option :<br>
><br>
> lttng enable-event aname -k --probe sys_open+0x0<br>
> this command returns ip value<br>
><br>
> lttng enable-event aname -k --function sys_open<br>
> this command returns ip and parent_ip values .<br>
><br>
> what does these values ip and parent_ip means ?<br>
<br>
</div>ip: instruction pointer of the function,<br>
parent_ip: instruction pointer of the caller.<br>
<div class="im"><br>
><br>
> I try to apply probe and function options to some kernel symbols like<br>
> initialized date (like xen_vcpu_info symbol), read only data (like<br>
> linux_prob_banner symbol) and code (like reserve_ebda_region symbol) it<br>
> displays to me : Enable kernel event failed ,warning some command went(s)<br>
> wrong.<br>
> Did i make a mistake or it's a limitation in LTTng ?<br>
<br>
</div>It's kprobes: you can only add breakpoints to code, not data.<br>
<br>
Thanks,<br>
<br>
Mathieu<br>
<br>
> regards.<br>
<br>
> _______________________________________________<br>
> lttng-dev mailing list<br>
> <a href="mailto:lttng-dev@lists.lttng.org">lttng-dev@lists.lttng.org</a><br>
> <a href="http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev" target="_blank">http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev</a><br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
--<br>
Mathieu Desnoyers<br>
EfficiOS Inc.<br>
<a href="http://www.efficios.com" target="_blank">http://www.efficios.com</a><br>
<br>
_______________________________________________<br>
lttng-dev mailing list<br>
<a href="mailto:lttng-dev@lists.lttng.org">lttng-dev@lists.lttng.org</a><br>
<a href="http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev" target="_blank">http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev</a><br>
</font></span></blockquote></div><br></div>