[lttng-dev] Need help in UST

Suchakrapani Datt Sharma suchakrapani.sharma at polymtl.ca
Thu Mar 20 09:21:36 EDT 2014


Hi,

Quoting Ningaraj Revoor <ningarajsr at gmail.com>:

> Hi All,
>
> I am new to Linux and i tried using Lttng on my ubuntu box(12.04),
> i have installed lttng-tools on my machine and tried using lttng.
> Kernel tracing works for me but i am not able get UST done. i have created
> a demo app and added instrumentation code for that(using lttng-gen-tp). i
> tried referring lot of online documents(followed all steps) but UST still
> not working for me.

What kind of errors are there?

> I am not sure what i am missing, will be helpful if you can provide
> pointers to some document which gives correct steps to follow

I think the lttng-ust manual is quite comprehensive already - 
http://lttng.org/files/doc/man-pages/man3/lttng-ust.3.html

You can also have a look at [1] and see how Simon instrumented httpd. There is a
clean and instrumented thttpd version you can get at [2] and observe how
instrumentation was done.

[1]
https://github.com/simark/httpd/commit/2c6d73c47156350233b346e9eaa49ffb07a58e6e
[2] http://step.polymtl.ca/~suchakra/osfy/



More information about the lttng-dev mailing list