vlib: refactor trajectory trace debug feature 28/31528/4
authorBenoît Ganne <bganne@cisco.com>
Thu, 4 Mar 2021 13:31:03 +0000 (14:31 +0100)
committerDamjan Marion <dmarion@me.com>
Sat, 1 May 2021 11:42:37 +0000 (11:42 +0000)
trajectory trace has been broken for a while because we used to save the
buffer trajectory in a vector pointed to in opaque2. This does not work
well when opaque2 is copied (eg. because of a clone) as 2 buffers end up
sharing the same vector.
This dedicates a full cacheline in the buffer metadata instead when
trajectory is compiled in. No dynamic allocation, no sharing, no tears.

Type: refactor

Change-Id: I6a028ca1b48d38f393a36979e5e452c2dd48ad3f
Signed-off-by: Benoît Ganne <bganne@cisco.com>

No differences found