Re: [dpdk-dev] [PATCH] examples/vm_power_manager: fix overflowed value

2019-04-22 Thread Thomas Monjalon
11/04/2019 14:07, Burakov, Anatoly: > On 11-Apr-19 12:13 PM, Reshma Pattan wrote: > > Fix the data type of last_branches, last_branch_misses > > from unit32_t to uint64_t, and for hits_diff, miss_diff > > from int to int64_t respectively to fix possible > > overflow or truncation. > > > > Coverity

Re: [dpdk-dev] [PATCH] examples/vm_power_manager: fix overflowed value

2019-04-11 Thread Burakov, Anatoly
On 11-Apr-19 12:13 PM, Reshma Pattan wrote: Fix the data type of last_branches, last_branch_misses from unit32_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: 4b1a631b8a ("examples/vm_power: add oo

[dpdk-dev] [PATCH] examples/vm_power_manager: fix overflowed value

2019-04-11 Thread Reshma Pattan
Fix the data type of last_branches, last_branch_misses from unit32_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: 4b1a631b8a ("examples/vm_power: add oob monitoring functions") CC: david.h...@intel.