cli: Fix --append mode for "fastpath plan exec"
It turns out that when in append mode, extra duplicate entries would be
added to various output csv files. For UniqueCSVFile, entries are
supposed to be cached so that if they are added multiple times, no extra
entry is added, but their ID is simply returned from the cache. But this
mechanism was not working over invocation boundaries. So first of all,
fix it so we populate the cache when starting up in append mode.
Some issues remained though; it turns out that
CONFIG.kernel_sysctl_full_hash is not stable; it includes some variables
from the kernel that change frequently. So let's change the DB schema
and stop tracking that.
Additionally, the CPU table couldn't discern unique entries so let's fix
the schema by adding the logical CPU index, then make the CPU csv file a
UniqueCSVFile.
Signed-off-by:
Ryan Roberts <ryan.roberts@arm.com>
Loading
Please register or sign in to comment