Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp640989pxb; Wed, 27 Jan 2021 17:44:12 -0800 (PST) X-Google-Smtp-Source: ABdhPJw1VOVCTRXlLdstReoyxaF1Noy1P2w27NIEti9ck3XlgbzhXgCfJ3T4TUGj44/jNdKrnMK/ X-Received: by 2002:aa7:c2ce:: with SMTP id m14mr11248057edp.76.1611798252385; Wed, 27 Jan 2021 17:44:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611798252; cv=none; d=google.com; s=arc-20160816; b=lmrFZHZ+G/9CGSqvV7VvCseBblWfPJ9hzJhyveLyrXXIGFS3RuKQyfeuaa13tuKDn8 uJ+uKak59RvcmKUduAOmWzcvtxRFk57juWO+RCin68/xiUA8ThPJP7Rr3JG60m/FYz0p 5oUl2KRcpZorr0jk+DEPPg/pPch5SKar2ZWIDRkRj/oM2h7YT+lS/3F3kASU0a7fiPk3 01LaV8QYJXlAgVriaqy6BoVvgr19D762y1iSpUnvazp/F9ma+k+VNrYbqI4IbiJ1l7Ix cLzGLTlvBysQnnGND6E8ZUj0sReTHpcH6VxhQIsGKqyyu6VuIGybPqZJMj21JeoFc2Sh btGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:ironport-sdr:ironport-sdr; bh=u655iIpsHeJ27gduJR5q59aJzwxlHGZ4lwp5AFe7HdY=; b=gc6SG+2NbMvlwX1NOgz5PubDuR5gdEqVJdoV+NZtzyhRzfKMmxuBwRx5DRBE7uxy2q QVu5qCHgyu/rEbiK+soI4GlcRnem14mEPejci9T2kCpILtnp+z6/feq4qMC4dnS6pDyk 3VYeWoSjJes6XGSH1AI9ByisnLkVzbUG/WwEqenf9pRCmW31OFCUPqJV3OVjjgbBhZnr 9Rq0bvvseES2GRk7px85U/G9wDWaVKfZ9xCkhuR2Xom8kb2UzaRZxtLJKUDDvSMkqskQ 1HIlYoRsF/7fPyJM6ddv8m76GwQ5CDywhBNl67DfBRebWBlA8XeuwojFwDChmJ4f8EHJ 90ZQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y21si1636746ejf.161.2021.01.27.17.43.47; Wed, 27 Jan 2021 17:44:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231153AbhA1B1u (ORCPT + 99 others); Wed, 27 Jan 2021 20:27:50 -0500 Received: from mga12.intel.com ([192.55.52.136]:27363 "EHLO mga12.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229709AbhA1B1s (ORCPT ); Wed, 27 Jan 2021 20:27:48 -0500 IronPort-SDR: 0uzsh/dP5+qR7PH2N15E4H15miijJkH/O5K6eNFhlazMqaMhxE2rv+WpVVXzR5M4Uq4YyMP2La 1OnpwSXzkMkg== X-IronPort-AV: E=McAfee;i="6000,8403,9877"; a="159335530" X-IronPort-AV: E=Sophos;i="5.79,381,1602572400"; d="scan'208";a="159335530" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Jan 2021 17:26:02 -0800 IronPort-SDR: Kq78ATGb6zSuQed5PKw0bvAiX9cHwz4b4UTgafQsDmhHO9VX4lPah7PJoWsjLn9GScl4l4mH9v T0778ZGgfMug== X-IronPort-AV: E=Sophos;i="5.79,381,1602572400"; d="scan'208";a="362651210" Received: from yjin15-mobl1.ccr.corp.intel.com (HELO [10.238.4.27]) ([10.238.4.27]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Jan 2021 17:25:59 -0800 Subject: Re: [PATCH v8] perf stat: Fix wrong skipping for per-die aggregation To: Jiri Olsa Cc: acme@kernel.org, jolsa@kernel.org, peterz@infradead.org, mingo@redhat.com, alexander.shishkin@linux.intel.com, Linux-kernel@vger.kernel.org, ak@linux.intel.com, kan.liang@intel.com, yao.jin@intel.com, ying.huang@intel.com References: <20210125233525.13706-1-yao.jin@linux.intel.com> <20210127220827.GB284633@krava> From: "Jin, Yao" Message-ID: <58796d6e-fceb-ea1f-3a83-543569d5625c@linux.intel.com> Date: Thu, 28 Jan 2021 09:25:57 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.7.0 MIME-Version: 1.0 In-Reply-To: <20210127220827.GB284633@krava> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Jiri, On 1/28/2021 6:08 AM, Jiri Olsa wrote: >> @@ -1385,7 +1386,8 @@ void evsel__exit(struct evsel *evsel) >> zfree(&evsel->group_name); >> zfree(&evsel->name); >> zfree(&evsel->pmu_name); >> - zfree(&evsel->per_pkg_mask); > sorry I did not notice before, but I think we need to call > zero_per_pkg in here, otherwise we're leaking keys > > jirka > Sorry, I forgot to add the release code here. :( I will rename zero_per_pkg to evsel__zero_per_pkg and move it to evsel.c and call evsel__zero_per_pkg in evsel__exit(). Thanks Jin Yao