From: tracecompass-dev-bounces@xxxxxxxxxxx <tracecompass-dev-bounces@xxxxxxxxxxx> on behalf of tracecompass developer discussions <tracecompass-dev@xxxxxxxxxxx> Sent: Wednesday, March 4, 2020 8:28 PM To: tracecompass developer discussions <tracecompass-dev@xxxxxxxxxxx> Subject: Re: [tracecompass-dev] Multiple state providers
Hi Genevieve,
For the state system described using XML, is there a way and example that I can use a stack to push and pop the value of an attribute? E.g. when an event happen, I want to push the current attribute value (old) to a stack and update the attribute with
the new value. After another event, I want to pop the value from a stack and use it as the current attribute value. It seems lots of application, e.g. call stack, are like this behavior and it could be a very useful feature, if it is not there.
Yes you definitely can! As long as each of your XML analysis has a different ID, the ID being the one from the state provider or pattern element, so you have a line like this in your XML:
On 3/2/20 4:13 PM, tracecompass developer discussions wrote:
We are experimenting tracecompass XML-based data-driven analysis. Can we create two or multiple XML files, each with its own provider (unique named) and then imported to the tracecompass to process a trace. Basically, are we allowed to have two
or more state systems for the same trace.