From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) by dpdk.org (Postfix) with ESMTP id 7346B5F24; Mon, 22 Apr 2019 23:17:07 +0200 (CEST) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id F19E0220CB; Mon, 22 Apr 2019 17:17:06 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Mon, 22 Apr 2019 17:17:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding:content-type; s=mesmtp; bh=no0ME9RKKbyjRS9UhPlG/FHJlmb5jp4ogKUry1MNzv0=; b=gRPE33wxJ1u2 F4w5V7MAayugHfPzsNTK58C2qxLncUWcoOQtpKMnAkUvqcd2WtVjwt5gicW5VS8s BXtHimvPmkQ0viXtRQeSODMbOnhh5xcV6QWXk4qxbEwoH5z2q/QjsXHtD5OZ/ku/ ZgiU80V+H8vWa6IGziNxgev/CWrNy1g= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=no0ME9RKKbyjRS9UhPlG/FHJlmb5jp4ogKUry1MNz v0=; b=sJ5DzzG2Btjo7ofFPbhsCH9/x1FaexCNEVSph5bma3AHMqDltk41QxDBR 8HVGVzzmuqH6J3K11CyOuSsoj/660JU+EaMNjE1Wvgk6ivB0hidnmLK6YCS8uD5o ZBrcUpapb1IzMi/b2iRLT46Aqp1Ki5RfHP7JBjA7FWpLVSi3PQ62eZgSBmGrNr6Y N4r7ceYEMR8YPAeuJiKAPBK7ZJJCJ6K3ktVDidsGH+AdOs9z016cLWmRoQqiFheX flNOcwEiCmuGHE1XhFvtZfcG2NpHfs1n4V4GNHku14hCSOyue0Qir3T/tzFZ6FmO HZLWjwziGfmxdwf2xze13L4HHWVYQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduuddrgeeigdduheduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufffkfgjfhgggfgtsehtufertddttddvnecuhfhrohhmpefvhhhomhgr shcuofhonhhjrghlohhnuceothhhohhmrghssehmohhnjhgrlhhonhdrnhgvtheqnecukf hppeekfedrudduhedrudehhedrudefkeenucfrrghrrghmpehmrghilhhfrhhomhepthhh ohhmrghssehmohhnjhgrlhhonhdrnhgvthenucevlhhushhtvghrufhiiigvpedt X-ME-Proxy: Received: from xps.localnet (acaen-257-1-30-138.w83-115.abo.wanadoo.fr [83.115.155.138]) by mail.messagingengine.com (Postfix) with ESMTPA id C9968E4067; Mon, 22 Apr 2019 17:17:04 -0400 (EDT) From: Thomas Monjalon To: Reshma Pattan Cc: dev@dpdk.org, "Burakov, Anatoly" , david.hunt@intel.com, stable@dpdk.org Date: Mon, 22 Apr 2019 23:17:02 +0200 Message-ID: <3620274.d8bBrH1FgA@xps> In-Reply-To: <93cb87d3-cfcb-2bbc-ace1-e7ea12375bd3@intel.com> References: <20190411111336.2790-1-reshma.pattan@intel.com> <93cb87d3-cfcb-2bbc-ace1-e7ea12375bd3@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-dev] [PATCH] examples/vm_power_manager: fix overflowed value X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Apr 2019 21:17:07 -0000 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 issue: 337677 > > Fixes: 4b1a631b8a ("examples/vm_power: add oob monitoring functions") > > CC: david.hunt@intel.com > > CC: stable@dpdk.org > > > > Signed-off-by: Reshma Pattan > > Reviewed-by: Anatoly Burakov Applied, thanks From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id 0CCA4A05D3 for ; Mon, 22 Apr 2019 23:17:10 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id CB03B1B105; Mon, 22 Apr 2019 23:17:08 +0200 (CEST) Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) by dpdk.org (Postfix) with ESMTP id 7346B5F24; Mon, 22 Apr 2019 23:17:07 +0200 (CEST) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id F19E0220CB; Mon, 22 Apr 2019 17:17:06 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Mon, 22 Apr 2019 17:17:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding:content-type; s=mesmtp; bh=no0ME9RKKbyjRS9UhPlG/FHJlmb5jp4ogKUry1MNzv0=; b=gRPE33wxJ1u2 F4w5V7MAayugHfPzsNTK58C2qxLncUWcoOQtpKMnAkUvqcd2WtVjwt5gicW5VS8s BXtHimvPmkQ0viXtRQeSODMbOnhh5xcV6QWXk4qxbEwoH5z2q/QjsXHtD5OZ/ku/ ZgiU80V+H8vWa6IGziNxgev/CWrNy1g= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=no0ME9RKKbyjRS9UhPlG/FHJlmb5jp4ogKUry1MNz v0=; b=sJ5DzzG2Btjo7ofFPbhsCH9/x1FaexCNEVSph5bma3AHMqDltk41QxDBR 8HVGVzzmuqH6J3K11CyOuSsoj/660JU+EaMNjE1Wvgk6ivB0hidnmLK6YCS8uD5o ZBrcUpapb1IzMi/b2iRLT46Aqp1Ki5RfHP7JBjA7FWpLVSi3PQ62eZgSBmGrNr6Y N4r7ceYEMR8YPAeuJiKAPBK7ZJJCJ6K3ktVDidsGH+AdOs9z016cLWmRoQqiFheX flNOcwEiCmuGHE1XhFvtZfcG2NpHfs1n4V4GNHku14hCSOyue0Qir3T/tzFZ6FmO HZLWjwziGfmxdwf2xze13L4HHWVYQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduuddrgeeigdduheduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufffkfgjfhgggfgtsehtufertddttddvnecuhfhrohhmpefvhhhomhgr shcuofhonhhjrghlohhnuceothhhohhmrghssehmohhnjhgrlhhonhdrnhgvtheqnecukf hppeekfedrudduhedrudehhedrudefkeenucfrrghrrghmpehmrghilhhfrhhomhepthhh ohhmrghssehmohhnjhgrlhhonhdrnhgvthenucevlhhushhtvghrufhiiigvpedt X-ME-Proxy: Received: from xps.localnet (acaen-257-1-30-138.w83-115.abo.wanadoo.fr [83.115.155.138]) by mail.messagingengine.com (Postfix) with ESMTPA id C9968E4067; Mon, 22 Apr 2019 17:17:04 -0400 (EDT) From: Thomas Monjalon To: Reshma Pattan Cc: dev@dpdk.org, "Burakov, Anatoly" , david.hunt@intel.com, stable@dpdk.org Date: Mon, 22 Apr 2019 23:17:02 +0200 Message-ID: <3620274.d8bBrH1FgA@xps> In-Reply-To: <93cb87d3-cfcb-2bbc-ace1-e7ea12375bd3@intel.com> References: <20190411111336.2790-1-reshma.pattan@intel.com> <93cb87d3-cfcb-2bbc-ace1-e7ea12375bd3@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="UTF-8" Subject: Re: [dpdk-dev] [PATCH] examples/vm_power_manager: fix overflowed value X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Message-ID: <20190422211702.0SwWJRzYWZjklNOA8PnKJ_PiWRNJWVFLCxHOVwbsP9A@z> 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 issue: 337677 > > Fixes: 4b1a631b8a ("examples/vm_power: add oob monitoring functions") > > CC: david.hunt@intel.com > > CC: stable@dpdk.org > > > > Signed-off-by: Reshma Pattan > > Reviewed-by: Anatoly Burakov Applied, thanks