Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
examples/power: fix overflowed value
[ upstream commit 7e7b7a1 ] Fix the data type of last_branches, last_branch_misses from uint32_t to uint64_t, and for hits_diff, miss_diff from int to int64_t respectively to fix possible overflow or truncation. Coverity issue: 337677 Fixes: 4b1a631 ("examples/vm_power: add oob monitoring functions") Signed-off-by: Reshma Pattan <reshma.pattan@intel.com> Reviewed-by: Anatoly Burakov <anatoly.burakov@intel.com>
- Loading branch information