Skip to content
Commit a1e2fa03 authored by Ryan Roberts's avatar Ryan Roberts
Browse files

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's avatarRyan Roberts <ryan.roberts@arm.com>
parent 63b5b176
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment