Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit ab51dca9 authored by Connor O'Brien's avatar Connor O'Brien
Browse files

libtimeinstate: initialize current freq before starting tracking



Currently, our BPF programs start with no knowledge of current CPU
frequency and tracking cannot begin for a cluster until a frequency
transition happens & makes this information available. On cuttlefish,
CPU frequency never changes, so tracking never starts & cuttlefish
can't be used for testing this feature.
To resolve this, pass the BPF programs initial frequency information
read from the scaling_cur_freq sysfs nodes.

Test: libtimeinstate_test passes on cuttlefish
Test: confirm that uid_time_in_state BPF map contains data on
cuttlefish
Bug: 138317993
Signed-off-by: default avatarConnor O'Brien <connoro@google.com>

Change-Id: I5b24c1311e1b58b73c7e32f41c2d99c5ab344549
parent c6f093ab
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment