test: fix disable at end of psb-tnt-psb.ptt

Change-Id: I555369241777b9e91791b2d23e8ad8fc7fca5e6f
Signed-off-by: Markus Metzger <markus.t.metzger@intel.com>
test: more loop variations

Add more tests around TNT by extending the loop.ptt test.

Change-Id: I31690291723d473a7854e221aab39d54918811a2
Signed-off-by: Markus Metzger <markus.t.metzger@intel.com>
libipt: model enable state on query start

When starting the query interface after sync'ing, the decoder's flags are
clear indicating that tracing is enabled.

This is not correct; tracing is only enabled if we got a FUP in PSB+;
fix it.  Since we require a full IP after sync, it suffices to check
whether we currently have an IP.

Change-Id: Ib0a46b7bf34f248dabad4eb11240fa48c243df72
Signed-off-by: Markus Metzger <markus.t.metzger@intel.com>
libipt: keep track of FUP in PSB+

Add a decoder flag to indicate whether the last PSB+ contained a FUP.

Change-Id: Ib5af785d4c0a92b713e6d77d3c331570b4e831a7
Signed-off-by: Markus Metzger <markus.t.metzger@intel.com>
libipt: extract PSB event preparation

Extract the preparation of a PSB event into a separate function.
This function:

  - turns paging into async paging events
  - sets the status update bit

Change-Id: Idb67242c0685ba4dadd8226b8ab6b79c94d68ba4
Signed-off-by: Markus Metzger <markus.t.metzger@intel.com>