[Bug 993] New: Provide a soft trace

http://bugs.orocos.org/show_bug.cgi?id=993

Summary: Provide a soft trace
Product: Toolchain
Version: master
Platform: All
OS/Version: GNU/Linux
Status: NEW
Severity: project
Priority: P3
Component: RTT
AssignedTo: orocos-dev [..] ...
ReportedBy: paul [dot] chavent [..] ...
CC: orocos-dev [..] ...
Estimated Hours: 0.0

Created attachment 825
--> http://bugs.orocos.org/attachment.cgi?id=825
Provide a soft trace thanks to lttng-ust

It's a first attempt to provide soft traces.

The attached patch contains a README in the rtt/traces directory.

The patch provides a new directory (rtt/traces) that contains the tracing
library. Besides that, it gives an example of tracepoint usage in
rtt/os/Thread.cpp by defining SCOPE_ON and SCOPE_OFF macro (depending on
compilation options).

The problem is that, at this point in the code, we don't know the name of the
TaskContext.

So, the first improvement could be :
- Move the "rtt/traces" code in os since the lttng-ust is not available under
all platforms (no windows support for instance).
- Solve the problem of trace owner (taskcontext name), or move the tracepoints
elsewhere.
- Provide a tracing service ?

This patch follow the forum's thread :
http://www.orocos.org/forum/rtt/rtt-dev/bug-989-new-error-handling-rttty...

[Bug 993] Provide a soft trace

http://bugs.orocos.org/show_bug.cgi?id=993

Chavent Paul <paul [dot] chavent [..] ...> changed:

What |Removed |Added
----------------------------------------------------------------------------
Attachment #825 is|0 |1
obsolete| |

[Bug 993] Provide a soft trace

http://bugs.orocos.org/show_bug.cgi?id=993

Peter Soetens <peter [..] ...> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |peter [..] ...

[Bug 993] Provide a soft trace

Hi devs

On 10/09/2012 10:30 PM, Peter Soetens wrote:
>
> http://bugs.orocos.org/show_bug.cgi?id=993
>
> Peter Soetens <peter [..] ...> changed:
>
> What |Removed |Added
> ----------------------------------------------------------------------------
> CC| |peter [..] ...
>