tmf: Add the notions of timestamp and PID to ISymbolProvider
authorAlexandre Montplaisir <alexmonthy@efficios.com>
Tue, 5 Apr 2016 19:44:37 +0000 (15:44 -0400)
committerAlexandre Montplaisir <alexmonthy@efficios.com>
Sat, 9 Apr 2016 11:15:20 +0000 (07:15 -0400)
commitc6cf2455b1fe5cc0929ded1bc581cb74ce770c72
tree1911838adaff3ff2d1eeca93fac1ef60f51e1267
parentfc136627683f0136925c306112af91c20df7d7fd
tmf: Add the notions of timestamp and PID to ISymbolProvider

To support completely generic symbol resolution, the methods in
ISymbolProvider needs to consider two new concepts: the timestamp
of the query, and the process ID.

Process ID:
  One trace can contain events from multiple processes. Even if
  they all execute the same executable, the memory addresses, being
  virtual, are specific to each process. The provider may need to know
  the query is for which process in particular.

Timestamp:
  Since libraries can be loaded and unloaded at runtime, with calls to
  dlopen() and dlclose() for example, one address may refer to
  different libraries at different moments in a trace. The provider
  then needs to know the timestamp of the query, so it can refer to the
  correct library if needed.

To ease the transition, we can introduce the new method as default
methods that will ignore the new parameters by default.

Change-Id: I6ec8aa5d97c690d84a9864af15f99a3ec9f4aa3d
Signed-off-by: Alexandre Montplaisir <alexmonthy@efficios.com>
Reviewed-on: https://git.eclipse.org/r/69969
Reviewed-by: Hudson CI
tmf/org.eclipse.tracecompass.tmf.ui/src/org/eclipse/tracecompass/tmf/ui/symbols/ISymbolProvider.java
This page took 0.024978 seconds and 5 git commands to generate.